{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture25

# lecture25 - CMPT 150 The ALU Memory Page 1 CMPT 150 The ALU...

This preview shows pages 1–2. Sign up to view the full content.

CMPT 150 The ALU & Memory Page 1 Logic Micro-operations box5 We want to specify Boolean logic operations on strings of bits stored in registers box5 E.g. C barb2left A B box5 Other operations: box5 logical AND box5 logical OR box5 logical XOR box5 A’ logical complement CMPT 150 The ALU & Memory Page 2 Implementing the Logic Unit box5 Even though AND, OR, and NOT are complete, we’ll also implement XOR because it is a popular logic function box5 One bit of logical unit using gates and a mux: S 1 S 0 0 1 2 3 4x1 Mux S 1 S 0 Output 0 0 R = A B 0 1 R = A B 1 0 R = A B 1 1 R = A’ CMPT 150 The ALU & Memory Page 3 Combined Arithmetic/Logic Unit (ALU) box5 We have now developed two separate combinational circuits that do: box5 8 arithmetic micro-operations box5 box5 4 logic micro-operations box5 box5 Can use a mux to choose whether we want to do arithmetic or logic S 2 operation 0 1 Arithmetic Logic CMPT 150 The ALU & Memory Page 4 Combined Arithmetic/Logic Unit (ALU) S 2x1 Arithmetic unit 0 1 Mux Logic

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

lecture25 - CMPT 150 The ALU Memory Page 1 CMPT 150 The ALU...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online