Updated instruction counter to have an enable/disable port

This commit is contained in:
riley committed 2026-11-11 15:24:41 +11:00
1 parent d2ba06b255
commit 2f3ecb9a3c
3 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -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);