Design a simple ALU. There are 2 inputs. A and B, and each one is stored in 16-bit register and a 3-bit opcode. The output is a 17-bit register Y. The opcode controls ALU functions as follows: Opcode 000 001 010 011 100 101 110 Operation Y <= A Y <= A + B 111 Y <=A-B Y<=A AND B Y

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter2: Introduction To Systems Architecture
Section: Chapter Questions
Problem 2VE: A(n) __________ is a storage location implemented in the CPU.
icon
Related questions
Question
Design a simple ALU. There are 2 inputs, A and B, and each one is stored in 16-bit register and a 3-bit opcode. The
output is a 17-bit register Y. The opcode controls ALU functions as follows:
Opcode
Function
000
001
010
011
100
101
110
111
Operation
Y <= A
Y <= A + B
Y<=A-B
Y <= A AND B
Y <= A OR B
Y <= A + 1
Y<=A-1
Y <= B
A
Add
Subtract
AND
OR
Increment A
Decrement A
B
Write the full VHDL code for your design use your student ID as name of your top-level entity
Hint: use multiplexer and simple logic and arithmetic assignments.
Transcribed Image Text:Design a simple ALU. There are 2 inputs, A and B, and each one is stored in 16-bit register and a 3-bit opcode. The output is a 17-bit register Y. The opcode controls ALU functions as follows: Opcode Function 000 001 010 011 100 101 110 111 Operation Y <= A Y <= A + B Y<=A-B Y <= A AND B Y <= A OR B Y <= A + 1 Y<=A-1 Y <= B A Add Subtract AND OR Increment A Decrement A B Write the full VHDL code for your design use your student ID as name of your top-level entity Hint: use multiplexer and simple logic and arithmetic assignments.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning