This repository was archived by the owner on Aug 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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- */
3824localparam LoadWord = 6'b100011 ; // this should be some number that gives us enough options to have all of our commands
3925localparam StoreWord = 6'b101011 ;
4026localparam Jump = 6'b000010 ;
@@ -51,6 +37,19 @@ reg [5:0] command;
5137
5238reg [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
5554always @(posedge clk) begin
5655if (counter == 2 )
Original file line number Diff line number Diff line change 11241d3ffc
2- 00000000
2+ 241d3ffc
3300000000
4400000000
5500000000
You can’t perform that action at this time.
0 commit comments