Skip to content

Commit ae40bc8

Browse files
properly connect ir write to fetch module
1 parent 3f91f75 commit ae40bc8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/top.v

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module top ( input wire clk
66

77
wire cfsm__pc_update;
88
wire cfsm__reg_write;
9+
wire cfsm__ir_write;
910
pc_src_t cfsm__pc_src;
1011
result_src_t cfsm__result_src;
1112

@@ -31,8 +32,7 @@ module top ( input wire clk
3132
wire alu__zero_flag;
3233

3334
adr_src_t cfsm__adr_src;
34-
wire __tmp_IRWrite
35-
, __tmp_MemWrite
35+
wire __tmp_MemWrite
3636
, __tmp_Branch;
3737
wire [1:0] __tmp_ALUSrcA
3838
, __tmp_ALUSrcB;
@@ -47,7 +47,7 @@ module top ( input wire clk
4747
, .reset ( reset )
4848
, .zero_flag ( alu__zero_flag )
4949
, .AdrSrc ( cfsm__adr_src )
50-
, .IRWrite ( __tmp_IRWrite )
50+
, .IRWrite ( cfsm__ir_write )
5151
, .RegWrite ( cfsm__reg_write )
5252
, .PCUpdate ( cfsm__pc_update )
5353
, .pc_src ( cfsm__pc_src )
@@ -65,6 +65,7 @@ module top ( input wire clk
6565
, .reset ( reset )
6666
, .cfsm__pc_update ( cfsm__pc_update )
6767
, .cfsm__pc_src ( cfsm__pc_src )
68+
, .cfsm__ir_write ( cfsm__ir_write )
6869
, .imm_ext ( imm_ext )
6970

7071
// outputs

0 commit comments

Comments
 (0)