# test zero-delay ALU
# don't have OP_SUB, so use any other
- result = yield from run_op(dut, 5, 3, MicrOp.OP_NOP)
+ result = yield from run_op(dut, 5, 3, MicrOp.OP_CMP)
print("alu_sim sub", result)
assert (result == 2)
# In the test ALU, any operation other than ADD, MUL, EXTS or SHR
# is zero-delay, and do a subtraction.
# 5 - 2 = 3
- yield from op.issue([5, 2], MicrOp.OP_NOP, [3],
+ yield from op.issue([5, 2], MicrOp.OP_CMP, [3],
src_delays=[0, 1], dest_delays=[2])
# test all combinations of masked input ports
# sign_extend(0x80) = 0xFF80