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

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc
    from Rev 618 to Rev 619
    Reverse comparison

Rev 618 → Rev 619

/trunk/orpsocv2/rtl/verilog/or1200/or1200_alu.v
127,10 → 127,14
`endif
`ifdef OR1200_IMPL_ALU_COMP3
assign a_eq_b = !(|result_sum);
// signed compare when comp_op[3] is set
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])):
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] );
`endif
`ifdef OR1200_IMPL_SUB
/trunk/orpsocv2/sw/tests/or1200/sim/or1200-sf.S
64,8 → 64,10
 
/* =================================================== [ start ] === */
 
#define SHOULD_BE_SET l.bnf _fail
#define SHOULDNT_BE_SET l.bf _fail
#define SHOULD_BE_SET l.bnf _fail ; \
l.nop 0
#define SHOULDNT_BE_SET l.bf _fail ; \
l.nop 0
 
#define MOVE_TO_R4R5_AND_REPORT(a,b) \
l.movhi r3,hi(a) ; \
206,8 → 208,20
SHOULD_BE_GREATER_THAN_UNSIGNED(UINT_MAX,UINT_MAX_MIN1)
 
SHOULD_BE_GREATER_THAN_UNSIGNED(UINT_MAX,0)
 
SHOULD_BE_GREATER_THAN_UNSIGNED(0x80000001, 0x80000000)
 
SHOULD_BE_LESS_THAN_UNSIGNED(0x80000000, 0x80000001)
SHOULD_BE_GREATER_THAN_UNSIGNED(0x80000000,0x7fffffff)
 
SHOULD_BE_LESS_THAN_UNSIGNED(0x7fffffff, 0x80000000)
 
SHOULD_BE_GREATER_THAN_UNSIGNED(0x7fffffff, 0x7ffffffe)
 
SHOULD_BE_LESS_THAN_UNSIGNED(0x7ffffffe, 0x7fffffff)
 
_finish:
l.movhi r3, hi(0x8000000d)
l.ori r3, r3, lo(0x8000000d)

powered by: WebSVN 2.1.0

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