ALU Flashcards
Week 5-10 (4 cards)
1
Q
describe the ALU
A
- implements a set of logic commands
- allows for the selection of which commands should be output
- fixed set of functions:
- each function can take at most two multi-bit arguments
2. outputs the result of the boolean function and a set of flags
- each function can take at most two multi-bit arguments
2
Q
ALU design issue
A
hardware/software trade-off
- hardware = faster but more expensive
- software = slower less expensive
3
Q
what are the ALU control bit functions
A
- za = zero input a
- na = negate input a
- zb = zero input b
- nb = negate input b
- f = select beterrn & and +
- no = negate output
4
Q
describe our version of the ALU
A
- simple: no multiplication/ division, no floating point, no exponentiation
- logic circuits for ADD & AND
- logic circuits to select between them
- logic circutis that can negate or zero an input (x 2)
- logic circuit to negate the output
- logic circuit to handle flags