LadyBug ALU Instructions explained
In this ALU, we included some parts, such as a decoder. The decoder, choose instructions for us. We use a 2 bit input called Op (operation) for choosing operations.
The operations are:
00: It does bitwiseANDon operands A and B.01: It does bitwiseORon operands A and B.10: It adds B to A.11: It subtracts B from A.
We used 4 hex digit displays, to show what happens when we use these operations, and this is how final ALU’s IC looks like:
