3 views

Uploaded by CArl Simpson Lennon

trerytye

- p271DynamOprFusion.pdf
- Microwave Bloc Diagram [3]
- Quartus Tutorial LPM
- Instructable
- dsp tms320
- GateSim_sanjose04
- Central Processing Unit
- CPU, The Brain of the Computer
- Code Converters Mux
- PIC16c57c
- Vloglab_v201901.pdf
- business glossary
- Hcf4051be - Mux
- Blackfin Processor
- IJCSCE.SI812120
- buet_cse_graduate_syllabus.docx
- The Intel® Processor Diagnostic Tool Help
- ALU.pdf
- Computer Hardware 1
- THDB_ADA_UserGuide_v1.2.2

You are on page 1of 6

The ALU can perform many different kinds of operations: arithmetic (+, -, *, /), logic operations (AND, OR, Negate (NOT)), and shift and rotate operation, but we will be dealing with the following in this assignment: f1 f0 Operation 0 0 a + b + cin 0 1 1 0 1 1 The table shows the following operations:

NOT a a AND b a OR b

adding a and b, and the carry in, cin negating a bitwise ANDing a and b bitwise ORing a and b

The ability of the ALU to do the different kinds of operations is derived from a many-to-one switch - the multiplexer. The ALU performs every possible operation on its inputs and then uses multiplexers to pick out the desired result.

THE DESIGN

To implement this 1-bit ALU, we will have the following inputs and outputs:

Three data inputs: a, b, and cin, which is the carry in (needed to do addition). Two control inputs: f1, f0. Two outputs: zi (the result of the operation) and cout, the carry out (needed to do addition).

Since we want to choose between one of four possible operations, we can use a 4-1 MUX.

How It Works:

The circuit first computes all the possible outcomes: a+b, NOT(a), (a AND b), and (a OR b). The desired result is then selected using a multiplexer. The control signal of the multiplexer will be the operation code in the computer instruction (stored in the IR instruction register). The control signal is programmed into the multiplexer using the control inputs the control inputs and their functions are explained in more detail on the next page.

THE CONTROL INPUTS: To select the desired operation among the 4 different possible operations, we will need to input our operation code using 2 "function" bits:

00 will mean: operand1 + operand2 ( a + b ) 01 will mean NOT(operand1) ( NOT a ) 10 will mean operand1 AND operand2 ( a AND b ) 11 will mean operand1 OR operand2 ( a OR b )

The Multiplexer: The multiplexer uses the control inputs to select the desired output.

f1 0 0 1 1

f2 0 1 0 1

zi D0 D1 D2 D3

zi = f1 f0 D0 + f1 f0 D1 + f1 f0 D2 + f1 f0 D3

Note: D0, D1, D2 and D3 are the outputs from the different gates, respectively.

The Full Adder: When the control inputs/function bits are set to 00, the data inputs a and b are added. Truth table for Full Adder: Function 1: a+b a 0 1 1 0 0 1 1

f1 0 0 0 0 0 0 0

f0 0 0 0 0 0 0 0

cin 0 0 0 1 1 1 1

b 1 0 1 0 1 0 1

D0 1 1 0 1 0 0 1

cout 0 0 1 0 1 1 1

The NOT Gate: When the function bits are set to 01, the complement of input a is found. Truth table for NOT Gate: f1 0 0 0 0 f0 1 1 1 1 a 0 0 1 1 b 0 1 0 1 D1 1 1 0 0

The AND Gate: When the function bits are set to 10, the result of the operation (a AND b) is found. Truth table for AND Gate: Function 3: (a) AND (b) a 0 0 1 1

f1 1 1 1 1

f0 0 0 0 0

b 0 1 0 1

D2 0 0 0 1

The OR Gate: When the function bits are set to 11, the result of (a OR b) is found. Truth table for OR Gate: Function 4: (a) OR (b) a 0 0 1 1

f1 1 1 1 1

f0 1 1 1 1

b 0 1 0 1

D3 0 1 1 1

The above design is for a 1-bit ALU. An 8-bit ALU can be built from 8 identical 1-bit ALUs connected together in cascade. An 8-bit ALU can be used to perform many kinds of operations on 8-bit numbers. When cascading 1-bit ALUs, the carry output of each ALU is the carry input of the following ALU.

- p271DynamOprFusion.pdfUploaded byJessica Thompson
- Microwave Bloc Diagram [3]Uploaded byapotrekonan
- Quartus Tutorial LPMUploaded byVương Công Định
- InstructableUploaded bySamuel
- dsp tms320Uploaded byGaurav Kulkarni
- GateSim_sanjose04Uploaded bydvijayakumar_85
- Central Processing UnitUploaded byFiIIS
- CPU, The Brain of the ComputerUploaded byamin jamal
- Code Converters MuxUploaded byMaitrik Shah
- PIC16c57cUploaded byanon_782941
- Vloglab_v201901.pdfUploaded by蔡仲耘
- business glossaryUploaded byapi-345349300
- Hcf4051be - MuxUploaded byMatheus Fonseca
- Blackfin ProcessorUploaded byKameshSonti
- IJCSCE.SI812120Uploaded byJacob Chako
- buet_cse_graduate_syllabus.docxUploaded byMst Rokeya Khatun
- The Intel® Processor Diagnostic Tool HelpUploaded byAlPedini
- ALU.pdfUploaded byAravindhan Saravanan
- Computer Hardware 1Uploaded bysid18june1996
- THDB_ADA_UserGuide_v1.2.2Uploaded byZarnescu George
- dldchp4Uploaded byAbdullah KhiChi
- DC LabwithoutReadingsUploaded bydhileepan Dilip
- FPR_10_1.lectUploaded byshishu
- may10sem1Uploaded bydheerajvishwakarma
- DE LAB MANUAL.docUploaded byManaswini Chadalavada
- Computer Systems 3Uploaded byPhan Giang Châu
- THDJr SciDAC-Workshop Jun05Uploaded byaaadyant
- pmsUploaded byNic Ric
- Report on cpuUploaded bybabu
- Hc900 Controller BrochureUploaded bythanh_cdt01

- COE 381 Microprocessors -- Dr. Boateng v2Uploaded byCArl Simpson Lennon
- Ee 365 Electrical Services Design. Reviewed Complete (1)Uploaded byCArl Simpson Lennon
- 47395671 Fundamental of MIcroelectronics Bahzad Razavi Chapter 7 Solution Manual (1)Uploaded byprateekbaldwa
- SpecialfdggfUploaded byCArl Simpson Lennon
- Sol Skills AssessmentUploaded byjeff_wsu
- Sol Skills AssessmentUploaded byjeff_wsu
- Sol Skills AssessmentUploaded byjeff_wsu
- Numerical AssignmentUploaded byCArl Simpson Lennon

- Interview MES Pharma - Mr Roche ESPUploaded byFelix_schoeller3122
- Lay Tai Lieu Tren WebUploaded byDang Quang Trung
- Pilot Pioneer Operation Guide V9.2Uploaded byEfosa Aigbe
- 42634 Yale Affinity RfidUploaded byPriska Kalista
- Ch. 3Uploaded byAnamika Rai Pandey
- Peoplesoft PropertiesUploaded byArpan Ganguly
- AJAX FAQUploaded byRavikumarmaddi
- CD266 ExercisesUploaded bykirangasmar
- AMIT KUMAR MISHRA.pdfUploaded bykarthik141091
- Camera 1Uploaded bymorskiq88
- V-Station_Operators_ManualUploaded byLeo Eskila
- New Parametric Workflow Based on Validated Day-lighting SimulationUploaded byAyman Wagdy
- 2g Trial Tbf Timer Bsc Apo1-Sulampapua_v001Uploaded byMuhammad Rizki
- SFCF.book eBookUploaded byabcdcattiger
- Large Insurance Company: Data WarehouseUploaded bymstegen
- CoCubes IT MagazineUploaded byBala Murugan
- iTunes DiagnosticsUploaded byemiliano1984
- Sharlikrans Compatibility Patches at Skyrim Nexus - mods and community.pdfUploaded byNikosIoannou
- DCS Write UpUploaded bypoochipandy
- uUploaded byMuhamad Frihastanto
- Programmable Keyboard-Display Interface - 8279Uploaded byapi-27259648
- HomeUploaded byPramod Kumar
- RE_611_tech_757454_ENbUploaded bytafseerahmed
- Team Ignition Report4Uploaded bySumanth Bs
- Ra 10175Uploaded byJhonuard Aguhar
- dbms.docxUploaded byᗬᗴᐻ ᔤᗩᕼᕢᖆᘍ
- Project OnUploaded byAakash Sheelvant
- a4 Pages From Photoshop_cc_eeeeeee_the_missing_manual-Oreilly (1)Uploaded byalexandru_gheo
- Hdx7000 DatasheetUploaded byJuan Pablo
- Midterm KadamUploaded byKavita Kadam