Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit a2c0915

Browse files
committed
I hope BBen Hill is watching
1 parent 3542581 commit a2c0915

9 files changed

Lines changed: 434315 additions & 35652 deletions

File tree

StateMachine.v

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@ module StateMachine
2121
output reg [2:0] ALU3,
2222
output reg [1:0] Mux6
2323
);
24-
25-
/*
26-
reg PC; // this controls whether the PC flip flop is enabled
27-
reg Mux1; // Mux1 controller
28-
reg Mux2; // Mux2 controller
29-
reg MemWrEn; // is memory write enable on or off
30-
reg Dec1; // Dec1 controller
31-
reg [1:0] Mux3;
32-
reg [1:0] Mux4;
33-
reg RegFWrEn;
34-
reg Mux5;
35-
reg [2:0] ALU3;
36-
reg [1:0] Mux6;
37-
*/
3824
localparam LoadWord = 6'b100011; // this should be some number that gives us enough options to have all of our commands
3925
localparam StoreWord = 6'b101011;
4026
localparam Jump = 6'b000010;
@@ -51,6 +37,19 @@ reg [5:0] command;
5137

5238
reg [5:0] counter = 6'b000000;
5339

40+
initial Mux2 = 0;
41+
initial Dec1 = 0;
42+
initial PCcontrol = 0 ;
43+
initial Mux1 = 0 ;
44+
initial Mux2 = 0 ;
45+
initial MemWrEn = 0 ;
46+
initial Dec1 =0 ;
47+
initial Mux3 =2'b00 ;
48+
initial Mux4 = 2'b00 ;
49+
initial RegFWrEn = 0 ;
50+
initial Mux5 = 1 ;
51+
initial ALU3 = 3'b000 ; // should be whatever control number add is
52+
initial Mux6 = 2'b00 ;
5453

5554
always @(posedge clk) begin
5655
if (counter == 2)

Test.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
241d3ffc
2-
00000000
2+
241d3ffc
33
00000000
44
00000000
55
00000000

0 commit comments

Comments
 (0)