SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
- Problem: Design a simple ALU using VHDL capable of performing the operations listed on
the table on the left. - The ALU shall be capable of operating on 12-bit, two's complement binary
numbers and activate flags for overflow (O), carry (C), zero (Z), and sign (S) conditions. -
Operations shall be specified via a 4-bit opcode (OC) fed to the ALU along with the operands.
Operands shall be fed to the ALU in the form of 16-bit values in a sequence of one or two cycles,
producing results in the next cycle. - Results shall be in the form [status)[result], where [status] is
a 4-bit code in the form [OCZS] in the four most significant bits and a 12-bit result in the
remaining bits. - Two-operand functions: Require two input cycles. The first cycle feeds operand
A aligned in bits 11 down to 0. Bits 15 down to 12 will include a NOP opcode in the form 1111.
Operand B shall be fed in the same fashion as operand A, replacing the NOP bits with the
opcode of the requested operation.
- Specitying a NOP in the 2nd cycle shall produce an error result Your task is to design and
simulate this ALU with all flags set and an all ones result - One-operand functions: Operate only
on A with opcode - Implement your ALU using VHDL. Simulate its operation specified in the
first cycle instead of NOP. Entering a twousing a file-fed testbench. Verify that the ALU
produces operand opcode in the 1st cycle causes the operand to be correct results for all
supported operations, including the operated on itself. For example, specitying opcode 0011
(MUL) status flags being set correctly for each operation. in the 1 st cycle produces AA=A2 -
Your ALU shall be optimized for speed and perlorm each - Flags shall function as follows:
operation within a single clock cycle. The multiplication - Overliow (OF): Shall be set when the
result of an operation operation should be implemented using a combinational overtlows the
range of values that can be represented in the circuit or a pipeline, as appropriate. ALU output. -
Carry (CF): Shall be set when an operation generates a carry. - Ensure that the input and output
signals are properly out of the most significant bit position. synchronized with the rising edge of
the clock signal. - Zero (ZF): shall be set when the result of an operation is zero. - You should
provide a report with a brief description of your - Sign (SF): Shall be set when the result of an
operation is design, your VHDL code, the simulation results, and a brief negative. discussion of
any challenges or issues that you - Example: Adding A=4A6h to B=54Bh encountered during the
design process. - Cycle 0: F4A6h - The instructor will provide a file with 256 random test -
Cycle 1:054Bh vectors and operations to assess the functionality of your The next cycle (Cycle
2) shall produce the result 19F1 design.

Contenu connexe

Similaire à - Problem Design a simple ALU using VHDL capable of performing the o.pdf

Similaire à - Problem Design a simple ALU using VHDL capable of performing the o.pdf (20)

Chapter5 dek3133
Chapter5 dek3133Chapter5 dek3133
Chapter5 dek3133
 
8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.ppt8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.ppt
 
CSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docx
CSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docxCSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docx
CSCMPE 3430, sp16 – Assignment 5 (30 points total) Due S.docx
 
Bt0064 logic design1
Bt0064 logic design1Bt0064 logic design1
Bt0064 logic design1
 
Sequential and combinational alu
Sequential and combinational alu Sequential and combinational alu
Sequential and combinational alu
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
Chapter 11 - Laboratory Experiments with Standard ICs and FPGAs.pdf
Chapter 11 - Laboratory Experiments with Standard ICs and FPGAs.pdfChapter 11 - Laboratory Experiments with Standard ICs and FPGAs.pdf
Chapter 11 - Laboratory Experiments with Standard ICs and FPGAs.pdf
 
Components logic gates
Components   logic gatesComponents   logic gates
Components logic gates
 
Deld lab manual
Deld lab manualDeld lab manual
Deld lab manual
 
Uc 2(vii)
Uc 2(vii)Uc 2(vii)
Uc 2(vii)
 
computer architecture notes
computer architecture notes computer architecture notes
computer architecture notes
 
101495802 ee2258-lm-1
101495802 ee2258-lm-1101495802 ee2258-lm-1
101495802 ee2258-lm-1
 
fyp....fyp.....fyp.....
fyp....fyp.....fyp.....fyp....fyp.....fyp.....
fyp....fyp.....fyp.....
 
Sequential Logic
Sequential LogicSequential Logic
Sequential Logic
 
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
 
Computer design and architecture with simple cpu
Computer design and architecture with simple cpuComputer design and architecture with simple cpu
Computer design and architecture with simple cpu
 
7-Segment Display
7-Segment Display7-Segment Display
7-Segment Display
 
unit 3.pptx
unit 3.pptxunit 3.pptx
unit 3.pptx
 
Ec1201
Ec1201Ec1201
Ec1201
 
8051.pdf
8051.pdf8051.pdf
8051.pdf
 

Plus de alliedelectronics

(2 pts) A private high school is interested in predicting which stude.pdf
 (2 pts) A private high school is interested in predicting which stude.pdf (2 pts) A private high school is interested in predicting which stude.pdf
(2 pts) A private high school is interested in predicting which stude.pdfalliedelectronics
 
- Your answer is incorrect. Try again. The following table lists the .pdf
 - Your answer is incorrect. Try again. The following table lists the .pdf - Your answer is incorrect. Try again. The following table lists the .pdf
- Your answer is incorrect. Try again. The following table lists the .pdfalliedelectronics
 
- We know that there are downsides of having the Internet backbone op.pdf
 - We know that there are downsides of having the Internet backbone op.pdf - We know that there are downsides of having the Internet backbone op.pdf
- We know that there are downsides of having the Internet backbone op.pdfalliedelectronics
 
- Key Terms 13rine the follimiaus terank 1. H Ineneostasis 2. Hormon.pdf
 - Key Terms 13rine the follimiaus terank 1. H Ineneostasis 2. Hormon.pdf - Key Terms 13rine the follimiaus terank 1. H Ineneostasis 2. Hormon.pdf
- Key Terms 13rine the follimiaus terank 1. H Ineneostasis 2. Hormon.pdfalliedelectronics
 
- Explain how rainbows form (white light from the Sun spreading into .pdf
 - Explain how rainbows form (white light from the Sun spreading into .pdf - Explain how rainbows form (white light from the Sun spreading into .pdf
- Explain how rainbows form (white light from the Sun spreading into .pdfalliedelectronics
 
- Dentifying Syrphid Fly Larvae - Ground Beetle Adult Attacking - Gro.pdf
 - Dentifying Syrphid Fly Larvae - Ground Beetle Adult Attacking - Gro.pdf - Dentifying Syrphid Fly Larvae - Ground Beetle Adult Attacking - Gro.pdf
- Dentifying Syrphid Fly Larvae - Ground Beetle Adult Attacking - Gro.pdfalliedelectronics
 
- Explain how senses impact behavior. Demonstrate your knowledge of h.pdf
 - Explain how senses impact behavior. Demonstrate your knowledge of h.pdf - Explain how senses impact behavior. Demonstrate your knowledge of h.pdf
- Explain how senses impact behavior. Demonstrate your knowledge of h.pdfalliedelectronics
 
+COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE .pdf
 +COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE .pdf +COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE .pdf
+COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE .pdfalliedelectronics
 
(Thpe inlegers or decinas ] The propotion of human pregnancies hat la.pdf
 (Thpe inlegers or decinas ] The propotion of human pregnancies hat la.pdf (Thpe inlegers or decinas ] The propotion of human pregnancies hat la.pdf
(Thpe inlegers or decinas ] The propotion of human pregnancies hat la.pdfalliedelectronics
 
(10 points) The home states of a certain group of peopi are distribut.pdf
 (10 points) The home states of a certain group of peopi are distribut.pdf (10 points) The home states of a certain group of peopi are distribut.pdf
(10 points) The home states of a certain group of peopi are distribut.pdfalliedelectronics
 
(Related to Checkpoint 9.2) (Yield to maturity) The market price is $.pdf
 (Related to Checkpoint 9.2) (Yield to maturity) The market price is $.pdf (Related to Checkpoint 9.2) (Yield to maturity) The market price is $.pdf
(Related to Checkpoint 9.2) (Yield to maturity) The market price is $.pdfalliedelectronics
 
(PopulationQuantitative Genetics) A (dominant) and a (recessive) are.pdf
 (PopulationQuantitative Genetics) A (dominant) and a (recessive) are.pdf (PopulationQuantitative Genetics) A (dominant) and a (recessive) are.pdf
(PopulationQuantitative Genetics) A (dominant) and a (recessive) are.pdfalliedelectronics
 
(Mendelian Genetics) Can independent assortment be demonstrated in a .pdf
 (Mendelian Genetics) Can independent assortment be demonstrated in a .pdf (Mendelian Genetics) Can independent assortment be demonstrated in a .pdf
(Mendelian Genetics) Can independent assortment be demonstrated in a .pdfalliedelectronics
 
(Measuring growth) Thomas, Inc.s rotum on equity is 14 percont and m.pdf
 (Measuring growth) Thomas, Inc.s rotum on equity is 14 percont and m.pdf (Measuring growth) Thomas, Inc.s rotum on equity is 14 percont and m.pdf
(Measuring growth) Thomas, Inc.s rotum on equity is 14 percont and m.pdfalliedelectronics
 
(Measuring growth) Thomas, Inc.s return on equity is 16 percent and .pdf
 (Measuring growth) Thomas, Inc.s return on equity is 16 percent and .pdf (Measuring growth) Thomas, Inc.s return on equity is 16 percent and .pdf
(Measuring growth) Thomas, Inc.s return on equity is 16 percent and .pdfalliedelectronics
 
(g) From working the speed of sound problems above you may see a r.pdf
 (g) From working the speed of sound problems above you may see a r.pdf (g) From working the speed of sound problems above you may see a r.pdf
(g) From working the speed of sound problems above you may see a r.pdfalliedelectronics
 
(Figure Fiscal Policy II) Use Figure Fiscal Policy II. Suppose that.pdf
 (Figure Fiscal Policy II) Use Figure Fiscal Policy II. Suppose that.pdf (Figure Fiscal Policy II) Use Figure Fiscal Policy II. Suppose that.pdf
(Figure Fiscal Policy II) Use Figure Fiscal Policy II. Suppose that.pdfalliedelectronics
 
(5 points) The average American woman has her first child at the age .pdf
 (5 points) The average American woman has her first child at the age .pdf (5 points) The average American woman has her first child at the age .pdf
(5 points) The average American woman has her first child at the age .pdfalliedelectronics
 
(b) Suppose we have two countries, England and Spain, which each have.pdf
 (b) Suppose we have two countries, England and Spain, which each have.pdf (b) Suppose we have two countries, England and Spain, which each have.pdf
(b) Suppose we have two countries, England and Spain, which each have.pdfalliedelectronics
 
(b) Consider a set of processes with the CPU-burst and arrival times .pdf
 (b) Consider a set of processes with the CPU-burst and arrival times .pdf (b) Consider a set of processes with the CPU-burst and arrival times .pdf
(b) Consider a set of processes with the CPU-burst and arrival times .pdfalliedelectronics
 

Plus de alliedelectronics (20)

(2 pts) A private high school is interested in predicting which stude.pdf
 (2 pts) A private high school is interested in predicting which stude.pdf (2 pts) A private high school is interested in predicting which stude.pdf
(2 pts) A private high school is interested in predicting which stude.pdf
 
- Your answer is incorrect. Try again. The following table lists the .pdf
 - Your answer is incorrect. Try again. The following table lists the .pdf - Your answer is incorrect. Try again. The following table lists the .pdf
- Your answer is incorrect. Try again. The following table lists the .pdf
 
- We know that there are downsides of having the Internet backbone op.pdf
 - We know that there are downsides of having the Internet backbone op.pdf - We know that there are downsides of having the Internet backbone op.pdf
- We know that there are downsides of having the Internet backbone op.pdf
 
- Key Terms 13rine the follimiaus terank 1. H Ineneostasis 2. Hormon.pdf
 - Key Terms 13rine the follimiaus terank 1. H Ineneostasis 2. Hormon.pdf - Key Terms 13rine the follimiaus terank 1. H Ineneostasis 2. Hormon.pdf
- Key Terms 13rine the follimiaus terank 1. H Ineneostasis 2. Hormon.pdf
 
- Explain how rainbows form (white light from the Sun spreading into .pdf
 - Explain how rainbows form (white light from the Sun spreading into .pdf - Explain how rainbows form (white light from the Sun spreading into .pdf
- Explain how rainbows form (white light from the Sun spreading into .pdf
 
- Dentifying Syrphid Fly Larvae - Ground Beetle Adult Attacking - Gro.pdf
 - Dentifying Syrphid Fly Larvae - Ground Beetle Adult Attacking - Gro.pdf - Dentifying Syrphid Fly Larvae - Ground Beetle Adult Attacking - Gro.pdf
- Dentifying Syrphid Fly Larvae - Ground Beetle Adult Attacking - Gro.pdf
 
- Explain how senses impact behavior. Demonstrate your knowledge of h.pdf
 - Explain how senses impact behavior. Demonstrate your knowledge of h.pdf - Explain how senses impact behavior. Demonstrate your knowledge of h.pdf
- Explain how senses impact behavior. Demonstrate your knowledge of h.pdf
 
+COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE .pdf
 +COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE .pdf +COMPUTE FOR YOUR BASIC EARNING PER SHARE  BASIC EARNINGS PER SHARE .pdf
+COMPUTE FOR YOUR BASIC EARNING PER SHARE BASIC EARNINGS PER SHARE .pdf
 
(Thpe inlegers or decinas ] The propotion of human pregnancies hat la.pdf
 (Thpe inlegers or decinas ] The propotion of human pregnancies hat la.pdf (Thpe inlegers or decinas ] The propotion of human pregnancies hat la.pdf
(Thpe inlegers or decinas ] The propotion of human pregnancies hat la.pdf
 
(10 points) The home states of a certain group of peopi are distribut.pdf
 (10 points) The home states of a certain group of peopi are distribut.pdf (10 points) The home states of a certain group of peopi are distribut.pdf
(10 points) The home states of a certain group of peopi are distribut.pdf
 
(Related to Checkpoint 9.2) (Yield to maturity) The market price is $.pdf
 (Related to Checkpoint 9.2) (Yield to maturity) The market price is $.pdf (Related to Checkpoint 9.2) (Yield to maturity) The market price is $.pdf
(Related to Checkpoint 9.2) (Yield to maturity) The market price is $.pdf
 
(PopulationQuantitative Genetics) A (dominant) and a (recessive) are.pdf
 (PopulationQuantitative Genetics) A (dominant) and a (recessive) are.pdf (PopulationQuantitative Genetics) A (dominant) and a (recessive) are.pdf
(PopulationQuantitative Genetics) A (dominant) and a (recessive) are.pdf
 
(Mendelian Genetics) Can independent assortment be demonstrated in a .pdf
 (Mendelian Genetics) Can independent assortment be demonstrated in a .pdf (Mendelian Genetics) Can independent assortment be demonstrated in a .pdf
(Mendelian Genetics) Can independent assortment be demonstrated in a .pdf
 
(Measuring growth) Thomas, Inc.s rotum on equity is 14 percont and m.pdf
 (Measuring growth) Thomas, Inc.s rotum on equity is 14 percont and m.pdf (Measuring growth) Thomas, Inc.s rotum on equity is 14 percont and m.pdf
(Measuring growth) Thomas, Inc.s rotum on equity is 14 percont and m.pdf
 
(Measuring growth) Thomas, Inc.s return on equity is 16 percent and .pdf
 (Measuring growth) Thomas, Inc.s return on equity is 16 percent and .pdf (Measuring growth) Thomas, Inc.s return on equity is 16 percent and .pdf
(Measuring growth) Thomas, Inc.s return on equity is 16 percent and .pdf
 
(g) From working the speed of sound problems above you may see a r.pdf
 (g) From working the speed of sound problems above you may see a r.pdf (g) From working the speed of sound problems above you may see a r.pdf
(g) From working the speed of sound problems above you may see a r.pdf
 
(Figure Fiscal Policy II) Use Figure Fiscal Policy II. Suppose that.pdf
 (Figure Fiscal Policy II) Use Figure Fiscal Policy II. Suppose that.pdf (Figure Fiscal Policy II) Use Figure Fiscal Policy II. Suppose that.pdf
(Figure Fiscal Policy II) Use Figure Fiscal Policy II. Suppose that.pdf
 
(5 points) The average American woman has her first child at the age .pdf
 (5 points) The average American woman has her first child at the age .pdf (5 points) The average American woman has her first child at the age .pdf
(5 points) The average American woman has her first child at the age .pdf
 
(b) Suppose we have two countries, England and Spain, which each have.pdf
 (b) Suppose we have two countries, England and Spain, which each have.pdf (b) Suppose we have two countries, England and Spain, which each have.pdf
(b) Suppose we have two countries, England and Spain, which each have.pdf
 
(b) Consider a set of processes with the CPU-burst and arrival times .pdf
 (b) Consider a set of processes with the CPU-burst and arrival times .pdf (b) Consider a set of processes with the CPU-burst and arrival times .pdf
(b) Consider a set of processes with the CPU-burst and arrival times .pdf
 

Dernier

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 

Dernier (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 

- Problem Design a simple ALU using VHDL capable of performing the o.pdf

  • 1. - Problem: Design a simple ALU using VHDL capable of performing the operations listed on the table on the left. - The ALU shall be capable of operating on 12-bit, two's complement binary numbers and activate flags for overflow (O), carry (C), zero (Z), and sign (S) conditions. - Operations shall be specified via a 4-bit opcode (OC) fed to the ALU along with the operands. Operands shall be fed to the ALU in the form of 16-bit values in a sequence of one or two cycles, producing results in the next cycle. - Results shall be in the form [status)[result], where [status] is a 4-bit code in the form [OCZS] in the four most significant bits and a 12-bit result in the remaining bits. - Two-operand functions: Require two input cycles. The first cycle feeds operand A aligned in bits 11 down to 0. Bits 15 down to 12 will include a NOP opcode in the form 1111. Operand B shall be fed in the same fashion as operand A, replacing the NOP bits with the opcode of the requested operation. - Specitying a NOP in the 2nd cycle shall produce an error result Your task is to design and simulate this ALU with all flags set and an all ones result - One-operand functions: Operate only on A with opcode - Implement your ALU using VHDL. Simulate its operation specified in the first cycle instead of NOP. Entering a twousing a file-fed testbench. Verify that the ALU produces operand opcode in the 1st cycle causes the operand to be correct results for all supported operations, including the operated on itself. For example, specitying opcode 0011 (MUL) status flags being set correctly for each operation. in the 1 st cycle produces AA=A2 - Your ALU shall be optimized for speed and perlorm each - Flags shall function as follows: operation within a single clock cycle. The multiplication - Overliow (OF): Shall be set when the result of an operation operation should be implemented using a combinational overtlows the range of values that can be represented in the circuit or a pipeline, as appropriate. ALU output. - Carry (CF): Shall be set when an operation generates a carry. - Ensure that the input and output signals are properly out of the most significant bit position. synchronized with the rising edge of the clock signal. - Zero (ZF): shall be set when the result of an operation is zero. - You should provide a report with a brief description of your - Sign (SF): Shall be set when the result of an operation is design, your VHDL code, the simulation results, and a brief negative. discussion of any challenges or issues that you - Example: Adding A=4A6h to B=54Bh encountered during the design process. - Cycle 0: F4A6h - The instructor will provide a file with 256 random test - Cycle 1:054Bh vectors and operations to assess the functionality of your The next cycle (Cycle 2) shall produce the result 19F1 design.