Skip to content

Commit

Permalink
or1200: fix serial multiply/divide bug
Browse files Browse the repository at this point in the history
  • Loading branch information
julius committed Sep 1, 2011
1 parent d24b217 commit bc9b53b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rtl/verilog/or1200_mult_mac.v
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ module or1200_mult_mac(
mul_free <= 1'b1;
end

assign mul_stall = (|serial_mul_cnt);
assign mul_stall = (|serial_mul_cnt) | (alu_op_mul & !ex_freeze_r);

`else

Expand Down Expand Up @@ -411,11 +411,10 @@ module or1200_mult_mac(
div_free <= 1'b0;
end
else if (div_free | !ex_freeze) begin
//div_quot_r <= div_quot[63:0];
div_free <= 1'b1;
end

assign div_stall = (|div_cntr);
assign div_stall = (|div_cntr) | (!ex_freeze_r & alu_op_div);


`else // !`ifdef OR1200_DIV_SERIAL
Expand Down

0 comments on commit bc9b53b

Please sign in to comment.