SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
IS 139 ­ Introduction of Computer Architecture 
 
Assignment 1 ­ ALU Design 
 
Design and implement a simple 4­bit Arithmetic and Logic Unit (ALU) than can perform the 
following arithmetic and logical operations: ADDITION, SUBTRACTION, AND & OR 
 
Figure below shows the input & output specification of such an ALU: 
 
 
 
● A and B represent your two 4­bit input operands e.g. 0010 & 1100 
● Op (Operation) represents the control input to the ALU that specifies the operation to be 
performed by the ALU i.e. addition, subtraction, and & or 
● Result is the 4­bit output of the ALU depending on the two input values (A & B) and the 
control signals (Op) 
 
Deliverables 
 
A functioning logic circuit of the specified ALU implemented in Deeds () that is able to perform 
the specified operations on its two 4 bit input values. 
 
For example, given inputs values 0010 and 0011 with the operation set as addition (e.g. 00) your 
ALU circuit should correctly output 0101 which is the result of adding the two inputs 
 
Note: For some values of the input in the arithmetic operations there is a possibility of having an 
overflow condition (where the result does not fit in 4 bits) leading to incorrect results. For the 
purposes of this assignment you can ignore those cases and just output those 4 bits  
 
 
Recommended Steps 
 
● Choose and assign each operation (i.e. addition, subtraction etc) a unique operation code 
(i.e. 00, 01) to signify the function the ALU should perform 
● Design & implement a 1 bit ALU which can perform all the operations on 1 bit inputs 
● Combine together 4 of such 1 bit ALUs for a final 4 bit ALU 
 
Bonus 
 
Implement and add to the ALU the ability to detect an overflow condition. The ALU should have 
an additional one bit output (OF) which is set when there is an overflow as a result of the 
performed arithmetic operation. 
 
NOTE: An overflow occurs when the most significant bit is changed by adding two numbers with 
the same sign (or subtracting two numbers with opposite signs) ­ or in other words when adding 
two positive numbers result in a negative number & addinf two negative numbers result in a 
positive number. 
 

Contenu connexe

Tendances

Digital logic gates
Digital logic gatesDigital logic gates
Digital logic gates
jsearle11
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
Shankar Gangaju
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
kusuma11
 

Tendances (20)

Cadancesimulation
CadancesimulationCadancesimulation
Cadancesimulation
 
2 bit alu
2 bit alu2 bit alu
2 bit alu
 
ECE 467 Final Project
ECE 467 Final Project ECE 467 Final Project
ECE 467 Final Project
 
IS 151 Lecture 8
IS 151 Lecture 8IS 151 Lecture 8
IS 151 Lecture 8
 
111 120
111 120111 120
111 120
 
Digital design chap 3
Digital design   chap 3Digital design   chap 3
Digital design chap 3
 
VLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALUVLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALU
 
Digital logic gates
Digital logic gatesDigital logic gates
Digital logic gates
 
Half adder layout design
Half adder layout designHalf adder layout design
Half adder layout design
 
CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design )
CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design ) CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design )
CHAPTER 6: Function of Combination Logic From Flyod ( Digital Logic Design )
 
Half Adder_Digital logic_
Half Adder_Digital logic_Half Adder_Digital logic_
Half Adder_Digital logic_
 
IS 151 Lecture 9
IS 151 Lecture 9IS 151 Lecture 9
IS 151 Lecture 9
 
encoder
encoder encoder
encoder
 
Designing of 8 BIT Arithmetic and Logical Unit and implementing on Xilinx Ver...
Designing of 8 BIT Arithmetic and Logical Unit and implementing on Xilinx Ver...Designing of 8 BIT Arithmetic and Logical Unit and implementing on Xilinx Ver...
Designing of 8 BIT Arithmetic and Logical Unit and implementing on Xilinx Ver...
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
 
Abc2
Abc2Abc2
Abc2
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
 
Computer logic and gates
Computer logic and gatesComputer logic and gates
Computer logic and gates
 

En vedette

Hydro electric power plant lecture
Hydro electric power plant lectureHydro electric power plant lecture
Hydro electric power plant lecture
c3b2a1
 
Cse viii-advanced-computer-architectures-06cs81-solution
Cse viii-advanced-computer-architectures-06cs81-solutionCse viii-advanced-computer-architectures-06cs81-solution
Cse viii-advanced-computer-architectures-06cs81-solution
Shobha Kumar
 

En vedette (20)

Cyber law assignment
Cyber law assignmentCyber law assignment
Cyber law assignment
 
M.Tech: Advanced Computer Architecture Assignment II
M.Tech: Advanced Computer Architecture Assignment IIM.Tech: Advanced Computer Architecture Assignment II
M.Tech: Advanced Computer Architecture Assignment II
 
Cyber law assignment
Cyber law assignmentCyber law assignment
Cyber law assignment
 
Assignment of cyber crimes for oumh1203
Assignment of cyber crimes for oumh1203Assignment of cyber crimes for oumh1203
Assignment of cyber crimes for oumh1203
 
Nadeem cyber law assignment
Nadeem cyber law assignmentNadeem cyber law assignment
Nadeem cyber law assignment
 
Criminal law and cyber
Criminal law and cyberCriminal law and cyber
Criminal law and cyber
 
Design and Fabrication of 4-bit processor
Design and Fabrication of  4-bit processorDesign and Fabrication of  4-bit processor
Design and Fabrication of 4-bit processor
 
Kai hwang solution
Kai hwang solutionKai hwang solution
Kai hwang solution
 
Shifters
ShiftersShifters
Shifters
 
4 bit counter
4 bit counter4 bit counter
4 bit counter
 
phase shifter
phase shifterphase shifter
phase shifter
 
8 Bit A L U
8 Bit  A L U8 Bit  A L U
8 Bit A L U
 
Advanced Computer Architecture Chapter 123 Problems Solution
Advanced Computer Architecture Chapter 123 Problems SolutionAdvanced Computer Architecture Chapter 123 Problems Solution
Advanced Computer Architecture Chapter 123 Problems Solution
 
8 bit single cycle processor
8 bit single cycle processor8 bit single cycle processor
8 bit single cycle processor
 
Advanced Comuter Architecture Ch6 Problem Solutions
Advanced Comuter Architecture Ch6 Problem SolutionsAdvanced Comuter Architecture Ch6 Problem Solutions
Advanced Comuter Architecture Ch6 Problem Solutions
 
8 bit alu design
8 bit alu design8 bit alu design
8 bit alu design
 
Hydro electric power plant lecture
Hydro electric power plant lectureHydro electric power plant lecture
Hydro electric power plant lecture
 
Hydro Power Plant
Hydro Power PlantHydro Power Plant
Hydro Power Plant
 
Hydro power plant
Hydro power plantHydro power plant
Hydro power plant
 
Cse viii-advanced-computer-architectures-06cs81-solution
Cse viii-advanced-computer-architectures-06cs81-solutionCse viii-advanced-computer-architectures-06cs81-solution
Cse viii-advanced-computer-architectures-06cs81-solution
 

Similaire à IS 139 Assignment 1

- Problem Design a simple ALU using VHDL capable of performing the o.pdf
 - Problem Design a simple ALU using VHDL capable of performing the o.pdf - Problem Design a simple ALU using VHDL capable of performing the o.pdf
- Problem Design a simple ALU using VHDL capable of performing the o.pdf
alliedelectronics
 
Components logic gates
Components   logic gatesComponents   logic gates
Components logic gates
sld1950
 
Alu design-project
Alu design-projectAlu design-project
Alu design-project
alphankg1
 
PLC: Uso de funciones de secuenciador SQO en control industrial
PLC: Uso de funciones de secuenciador SQO en control industrialPLC: Uso de funciones de secuenciador SQO en control industrial
PLC: Uso de funciones de secuenciador SQO en control industrial
SANTIAGO PABLO ALBERTO
 

Similaire à IS 139 Assignment 1 (20)

PLC HO4.pdf
PLC HO4.pdfPLC HO4.pdf
PLC HO4.pdf
 
- Problem Design a simple ALU using VHDL capable of performing the o.pdf
 - Problem Design a simple ALU using VHDL capable of performing the o.pdf - Problem Design a simple ALU using VHDL capable of performing the o.pdf
- Problem Design a simple ALU using VHDL capable of performing the o.pdf
 
Hardware Design of an or Arithmetic Logic Unit.ppt
Hardware Design of an or  Arithmetic Logic Unit.pptHardware Design of an or  Arithmetic Logic Unit.ppt
Hardware Design of an or Arithmetic Logic Unit.ppt
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)
 
ALU arithmetic logic unit
ALU  arithmetic logic unitALU  arithmetic logic unit
ALU arithmetic logic unit
 
unit 3.pptx
unit 3.pptxunit 3.pptx
unit 3.pptx
 
Basic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixProBasic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixPro
 
Ladder
LadderLadder
Ladder
 
Components logic gates
Components   logic gatesComponents   logic gates
Components logic gates
 
Question Bank Programmable Logic Controller
Question Bank Programmable Logic ControllerQuestion Bank Programmable Logic Controller
Question Bank Programmable Logic Controller
 
Presentation 4.pptx
Presentation 4.pptxPresentation 4.pptx
Presentation 4.pptx
 
Alu design-project
Alu design-projectAlu design-project
Alu design-project
 
Bt0064 logic design1
Bt0064 logic design1Bt0064 logic design1
Bt0064 logic design1
 
PLC arithmatic functions
PLC arithmatic functionsPLC arithmatic functions
PLC arithmatic functions
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
 
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
 
Ch2 Logic Gates.ppt
Ch2 Logic Gates.pptCh2 Logic Gates.ppt
Ch2 Logic Gates.ppt
 
Ch5_MorrisMano.pptx
Ch5_MorrisMano.pptxCh5_MorrisMano.pptx
Ch5_MorrisMano.pptx
 
PLC: Uso de funciones de secuenciador SQO en control industrial
PLC: Uso de funciones de secuenciador SQO en control industrialPLC: Uso de funciones de secuenciador SQO en control industrial
PLC: Uso de funciones de secuenciador SQO en control industrial
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085
 

Plus de wajanga (20)

IS 151 Lecture 3
IS 151 Lecture 3IS 151 Lecture 3
IS 151 Lecture 3
 
IS 151 Lecture 2
IS 151 Lecture 2IS 151 Lecture 2
IS 151 Lecture 2
 
IS 151 Lecture 1
IS 151 Lecture 1IS 151 Lecture 1
IS 151 Lecture 1
 
IS 151 Outline 2014
IS 151 Outline 2014IS 151 Outline 2014
IS 151 Outline 2014
 
IS 139 Assignment 3
IS 139 Assignment 3IS 139 Assignment 3
IS 139 Assignment 3
 
IS 139 Lecture 7
IS 139 Lecture 7IS 139 Lecture 7
IS 139 Lecture 7
 
IS 139 Lecture 6
IS 139 Lecture 6IS 139 Lecture 6
IS 139 Lecture 6
 
IS 139 Assignment 2
IS 139 Assignment 2IS 139 Assignment 2
IS 139 Assignment 2
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5
 
IS 139 Lecture 4
IS 139 Lecture 4IS 139 Lecture 4
IS 139 Lecture 4
 
IS 139 Lecture 3
IS 139 Lecture 3IS 139 Lecture 3
IS 139 Lecture 3
 
IS 139 Lecture 1
IS 139 Lecture 1IS 139 Lecture 1
IS 139 Lecture 1
 
IS 139 Lecture 2
IS 139 Lecture 2IS 139 Lecture 2
IS 139 Lecture 2
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
 
IS 151 Lecture 10
IS 151 Lecture 10IS 151 Lecture 10
IS 151 Lecture 10
 
IS 151 Lecture 7
IS 151 Lecture 7IS 151 Lecture 7
IS 151 Lecture 7
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6
 
IS 151 Lecture 5
IS 151 Lecture 5IS 151 Lecture 5
IS 151 Lecture 5
 
IS 151 lecture 4
IS 151   lecture 4IS 151   lecture 4
IS 151 lecture 4
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Dernier (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

IS 139 Assignment 1