URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/or1200/rtl/verilog
- from Rev 802 to Rev 804
- ↔ Reverse comparison
Rev 802 → Rev 804
/or1200_alu.v
169,6 → 169,11
assign {cy_sum, result_sum} = (a + b_mux) + carry_in; |
// Numbers either both +ve and bit 31 of result set |
assign ov_sum = ((!a[width-1] & !b_mux[width-1]) & result_sum[width-1]) | |
`ifdef OR1200_IMPL_SUB |
// Subtract larger negative from smaller positive |
((!a[width-1] & b_mux[width-1]) & result_sum[width-1] & |
alu_op==`OR1200_ALUOP_SUB) | |
`endif |
// or both -ve and bit 31 of result clear |
((a[width-1] & b_mux[width-1]) & !result_sum[width-1]); |
assign result_and = a & b; |