SlideShare a Scribd company logo
1 of 1
Download to read offline
- 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.

More Related Content

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

Similar to - 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)
 
101495802 ee2258-lm-1
101495802 ee2258-lm-1101495802 ee2258-lm-1
101495802 ee2258-lm-1
 
computer architecture notes
computer architecture notes computer architecture notes
computer architecture notes
 
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
 

More from 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
 

More from 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
 

Recently uploaded

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 

Recently uploaded (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 

- 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.