diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-08-30 11:12:16 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-08-30 11:12:16 +0200 |
commit | cefe09b8d41285d3ece4ab0efcfe6aea1a259cd8 (patch) | |
tree | 8056bff2919e2033d8831382504658c0ceaf26fc /picorv32.v | |
parent | a6210c06d4c1fef1fb6e72aec7b87a88a6f2f8f4 (diff) | |
download | picorv32-cefe09b8d41285d3ece4ab0efcfe6aea1a259cd8.tar.gz picorv32-cefe09b8d41285d3ece4ab0efcfe6aea1a259cd8.zip |
Minor fixes/cleanups in mul reset logic
Diffstat (limited to 'picorv32.v')
-rw-r--r-- | picorv32.v | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1862,7 +1862,7 @@ module picorv32_pcpi_mul #( always @(posedge clk) begin pcpi_wr <= 0; pcpi_ready <= 0; - if (mul_finish) begin + if (mul_finish && resetn) begin pcpi_wr <= 1; pcpi_ready <= 1; pcpi_rd <= instr_any_mulh ? rd >> 32 : rd; @@ -1928,6 +1928,11 @@ module picorv32_pcpi_fast_mul ( end active2 <= active1; shift_out <= instr_any_mulh; + + if (!resetn) begin + active1 <= 0; + active2 <= 0; + end end assign pcpi_wr = active2; |