An attempt was made to fix errors with this. There is an issue with either branching and/or register dependencies

This commit is contained in:
riley committed 2026-11-12 16:06:49 +11:00
1 parent 6191f51672
commit aee68f4664
5 files changed
+61 -92

No files matched your search

+3 -3
View File
@@ -10,10 +10,10 @@ module instruction_counter #(parameter width=5)(
logic [2**width-1:0] pc;
always_ff @(posedge clk or posedge rst) begin
if (~en) begin
// Skip any cycles where we are disabled
end else if (rst) begin
if (rst) begin
pc <= {(2**width){1'b0}};
end else if (~en) begin
// Skip any cycles where we are disabled
end else if (we) begin
pc <= W;
end else begin