Updated assignment 2 dependency modules (currently 8 errors in compile)

This commit is contained in:
TroubleElectrical committed 2026-10-13 12:23:52 +11:00
1 parent 8675f5b8ee
commit e57e8f362a
17 files changed
+412 -14

No files matched your search

+4 -4
View File
@@ -8,14 +8,14 @@ module instruction_counter #(parameter width=5)(
);
logic [2**width-1:0] pc;
always_ff (@posedge clk) begin
always_ff @(posedge clk) begin
if (we) begin
pc <= W
else
pc <= W;
end else begin
pc <= pc + 4;
end
end
assign addr = pc;
endmodule
`endif
`endif