Added explicit rst input to RAM and PC as well as the MIPS processor.
This commit is contained in:
4 files changed
+24
-21
No files matched your search
@@ -13,7 +13,7 @@
|
||||
|
||||
|
||||
module assignment2 #(width=5, ramsz=9, romsz=10) (
|
||||
input logic [0:0] clk
|
||||
input logic [0:0] clk, input logic [0:0] rst
|
||||
`ifdef QUARTUS_SYNTH
|
||||
,
|
||||
input logic [4:0] HID_Register,
|
||||
@@ -56,12 +56,12 @@ module assignment2 #(width=5, ramsz=9, romsz=10) (
|
||||
logic [2**width-1:0] rd_alu;
|
||||
logic [2**width-1:0] rt_alu;
|
||||
|
||||
instruction_counter #(width) PC (clk, pc_we, pc_addr_write, pc_addr);
|
||||
instruction_counter #(width) PC (clk, rst, pc_we, pc_addr_write, pc_addr);
|
||||
|
||||
rom #(romsz, width) ROM (pc_addr, instruction);
|
||||
|
||||
logic [2**width-1:0] rd_mem;
|
||||
ram #(ramsz, width) RAM (clk, rd_alu, M2W, rt, rd_mem);
|
||||
ram #(ramsz, width) RAM (clk, rst, rd_alu, M2W, rt, rd_mem);
|
||||
|
||||
control_unit CONTROL_UNIT (instruction[31:26], instruction[5:0],
|
||||
M2R, M2W, B, ALU_FN, ALU_SRC, RDST, RW
|
||||
|
||||
Reference in new issue
Block a user