OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/orpsocv2
    from Rev 671 to Rev 672
    Reverse comparison

Rev 671 → Rev 672

/rtl/verilog/or1200/or1200_alu.v
131,10 → 131,8
assign a_lt_b = comp_op[3] ? ((a[width-1] & !b[width-1]) |
(!a[width-1] & !b[width-1] & result_sum[width-1])|
(a[width-1] & b[width-1] & result_sum[width-1])):
// a < b if (a - b) subtraction wrapped and a[width-1] wasn't set
(result_sum[width-1] & !a[width-1]) |
// or if (a - b) wrapped and both a[width-1] and b[width-1] were set
(result_sum[width-1] & a[width-1] & b[width-1] );
(a < b);
 
`endif
`ifdef OR1200_IMPL_SUB
/sw/tests/or1200/sim/or1200-sf.S
222,6 → 222,8
 
SHOULD_BE_LESS_THAN_UNSIGNED(0x7ffffffe, 0x7fffffff)
 
SHOULD_BE_LESS_THAN_UNSIGNED(0x2024fae0, 0xfef03220)
 
_finish:
l.movhi r3, hi(0x8000000d)
l.ori r3, r3, lo(0x8000000d)
232,4 → 234,4
_fail:
l.ori r3, r0, 0x1
l.nop 0x1

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.