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:
5 files changed
+61
-92
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user