Updated instruction counter to have an enable/disable port
This commit is contained in:
3 files changed
+6
-4
No files matched your search
@@ -56,7 +56,7 @@ 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, rst, pc_we, pc_addr_write, pc_addr);
|
||||
instruction_counter #(width) PC (clk, rst, 1'b1, pc_we, pc_addr_write, pc_addr);
|
||||
|
||||
`ifdef QUARTUS_SYNTH
|
||||
rom #("../../asm/bin/ELEC4720-2026s2-Ass-02-Demo.hex", romsz, width) ROM (pc_addr[romsz-1:0], instruction);
|
||||
|
||||
Reference in new issue
Block a user