# set up instruction, pick fn unit
comb += e.nia.eq(0) # XXX TODO (or remove? not sure yet)
fu = op.function_unit
- with m.If((fu == Function.NONE) |
- (op.internal_op == InternalOp.OP_ATTN)):
- comb += do.insn_type.eq(op.internal_op)
- with m.Else():
+ with m.If((fu == Function.NONE) &
+ (op.internal_op != InternalOp.OP_ATTN)):
comb += do.insn_type.eq(InternalOp.OP_ILLEGAL)
+ with m.Else():
+ comb += do.insn_type.eq(op.internal_op)
comb += do.fn_unit.eq(fu)
# registers a, b, c and out and out2 (LD/ST EA)