Skip to content

Commit ea62aea

Browse files
author
Sharukh Hasan
committed
added wires and skeleton components to sisc.v
1 parent dd3a3eb commit ea62aea

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

ctrl.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// ECE:3350 SISC computer project
22
// finite state machine
3+
// Sharukh Hasan & Mark Parise
34

45
`timescale 1ns/100ps
56

sisc.v

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// ECE:3350 SISC computer project
2+
// sisc.v
3+
// Sharukh Hasan & Mark Parise
4+
5+
`timescale 1ns/100ps
6+
7+
module sisc (clk, rst_f, ir);
8+
input [31:0] ir;
9+
input clk, rst_f;
10+
11+
// datapath
12+
wire [31:0] rsa;
13+
wire [31:0] rsb;
14+
wire [31:0] mux32_out;
15+
wire [31:0] alu_result;
16+
wire [31:0] in_b;
17+
wire [3:0] mux4_result;
18+
wire [3:0] cc;
19+
wire [3:0] stat_out;
20+
wire [1:0] alu_op;
21+
wire rf_we;
22+
wire wb_sel;
23+
wire rd_sel;
24+
wire imm_sel;
25+
wire sub;
26+
wire cc_en;
27+
wire [1:0] log_ctl;
28+
wire shf_ctl;
29+
30+
// components
31+
32+
// mux4
33+
mux4 _mux4(
34+
35+
);
36+
37+
// rf
38+
rf _rf(
39+
40+
);
41+
42+
// alu
43+
alu _alu(
44+
45+
);
46+
47+
// mux32
48+
mux32 _mux32(
49+
50+
);
51+
52+
// statreg
53+
statreg _statreg(
54+
55+
);
56+
57+
// ctrl
58+
ctrl _ctrl(
59+
60+
);
61+
62+
63+
endmodule

0 commit comments

Comments
 (0)