Minor bugfix/cleanup (mostly for formal verification)

This commit is contained in:
Clifford Wolf 2016-09-03 14:40:13 +02:00
parent 0906b1b4b4
commit d5b7e9e175
1 changed files with 1 additions and 1 deletions

View File

@ -1197,7 +1197,7 @@ module picorv32 #(
end end
always @(posedge clk) begin always @(posedge clk) begin
if (cpuregs_write) if (resetn && cpuregs_write)
cpuregs[latched_rd] <= cpuregs_wrdata; cpuregs[latched_rd] <= cpuregs_wrdata;
end end