Chargement…
Chargement…
The opcode selects arithmetic, logic, shifts, or comparison.
Behavior
op=000..111 selects ADD, SUB, AND, OR, XOR, SHL, SHR, signed SLT.zero and negative always describe the result.carry and overflow are meaningful for ADD and SUB.| Signal | Direction | Width | Description |
|---|---|---|---|
a, b | Input | 8 bits | Operands |
op | Input | 3 bits | Operation code |
result | Output | 8 bits | Result |
zero, negative, carry, overflow | Output | 1 bit | Flags |