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:
    1. each function can take at most two multi-bit arguments
      2. outputs the result of the boolean function and a set of flags
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ALU design issue

A

hardware/software trade-off
- hardware = faster but more expensive
- software = slower less expensive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the ALU control bit functions

A
  1. za = zero input a
  2. na = negate input a
  3. zb = zero input b
  4. nb = negate input b
  5. f = select beterrn & and +
  6. no = negate output
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly