Skip to content

Commit 56bbf40

Browse files
author
Sharukh Hasan
committed
added possible implementation of ir
1 parent 083f9a5 commit 56bbf40

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

sisc.v

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
`timescale 1ns/100ps
66

7-
module sisc (clk, rst_f, ir);
8-
//input [31:0] ir;
7+
module sisc (clk, rst_f);
98
input clk, rst_f;
109

1110
// datapath
@@ -34,6 +33,7 @@ module sisc (clk, rst_f, ir);
3433
wire pc_rst;
3534
wire pc_write;
3635
wire pc_sel;
36+
wire ir_load;
3737

3838

3939

@@ -106,9 +106,12 @@ module sisc (clk, rst_f, ir);
106106
br _br(.pc_inc (pc_inc[15:0]),
107107
.imm (IR[15:0]),
108108
.br_sel (br_sel),
109-
.br_addr (branch_address[15:0]));
109+
.br_addr (branch_address));
110110

111-
ir _ir();
111+
ir _ir(.clk (clk),
112+
.ir_load (ir_load),
113+
.read_data (IR[31:0]),
114+
.instr (IR[31:0]));
112115

113116

114117
endmodule

0 commit comments

Comments
 (0)