Chargement…
Chargement…
The ALU performs 4 operations on two 8-bit operands based on i_op:
"00": addition"01": subtraction"10": logical AND"11": logical ORThe o_carry flag is active for arithmetic operations. The circuit is purely combinational.
| Signal | Direction | Width | Description |
|---|---|---|---|
i_a | Input | 8 bits | Operand A |
i_b | Input | 8 bits | Operand B |
i_op | Input | 2 bits | Opcode |
o_result | Output | 8 bits | Result |
o_carry | Output | 1 bit | Carry / borrow |