Presentation is loading. Please wait.

Presentation is loading. Please wait.

EEE2243 Digital System Design Chapter 5: Arithmetic Logic Unit by Muhazam Mustapha, March 2012.

Similar presentations


Presentation on theme: "EEE2243 Digital System Design Chapter 5: Arithmetic Logic Unit by Muhazam Mustapha, March 2012."— Presentation transcript:

1 EEE2243 Digital System Design Chapter 5: Arithmetic Logic Unit by Muhazam Mustapha, March 2012

2 Learning Outcome By the end of this chapter, students are expected to understand the design, operation and block diagram ALU

3 Chapter Content Arithmetic and Logic Unit

4 Arithmetic Logic Unit

5 ALU ALU is a component that can perform any of various arithmetic (add, subtract, increment, etc.) and logic (AND, OR, etc.) operations, based on control inputs It is the most direct and immediate application of the datapath components

6 ALU Vahid 4.7 pg 207 Symbol AB Operation selector Flags Result Operands

7 ALU by Multiplexer ALU design with multiplexer for each operation may require too many wires and may draw too much power Vahid Figure 4.58

8 ALU by AL Extender A smarter ALU design uses a single adder but preceded by a series of muxes that modify the operands in some way before sending it to the adder Vahid Figure 4.59

9 ALU by AL Extender xyz=000: Want S=A+B – just pass a to ia, b to ib, and set cin=0 xyz=001: Want S=A-B – pass a to ia, b to ib, and set cin=1 xyz=010: Want S=A+1 – pass a to ia, set ib=0, and set cin=1 xyz=011: Want S=A – pass a to ia, set ib=0, and set cin=0 xyz=100: Want S=A AND B – set ia=a*b, b=0, and cin=0 others: likewise Based on above, create logic for ia(x,y,z,a,b) and ib(x,y,z,a,b) for each abext, and create logic for cin(x,y,z), to complete design of the AL- extender component


Download ppt "EEE2243 Digital System Design Chapter 5: Arithmetic Logic Unit by Muhazam Mustapha, March 2012."

Similar presentations


Ads by Google