Please answer the following based on these instructions; The below microarchitecture diagram has three independent control lines (Reg Dest, Reg Input, ALU Input) control individual multiplexers that were previously controlled together by a single control line named Mem This allows us to add a new instruction, ADDC, which stands for "Add Constant" ADDC Rs, const, Rt adds the contents of source register Rs to the two's complement constant value const, given by the instruction, and stores the sum in destination register Rt. For example, ADDC R2, 3, R4 stores into register R4 the result of adding the constant 3 to the contents of register R2; ADDC R0, -1, R2 stores 0x1111 into register R2 (because 0+-1=-1) a) Indicate the control line values the Control Unit should send for the new ADDC instruction. b) What values do registers R5 and R6 hold after the following program runs? R1 always holds 1; R5 and R6 are general purpose registers ADD R1, R1, R5 ADD R1, R5, R6 ADDC R6, 4, R5 HALT

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

Please answer the following based on these instructions;

The below microarchitecture diagram has three independent control lines (Reg Dest, Reg Input, ALU Input) control individual multiplexers that were previously controlled together by a single control line named Mem This allows us to add a new instruction, ADDC, which stands for "Add Constant" ADDC Rs, const, Rt adds the contents of source register Rs to the two's complement constant value const, given by the instruction, and stores the sum in destination register Rt. For example, ADDC R2, 3, R4 stores into register R4 the result of adding the constant 3 to the contents of register R2; ADDC R0, -1, R2 stores 0x1111 into register R2 (because 0+-1=-1)

a) Indicate the control line values the Control Unit should send for the new ADDC instruction.

b) What values do registers R5 and R6 hold after the following program runs? R1 always holds 1; R5 and R6 are general purpose registers

ADD R1, R1, R5

ADD R1, R5, R6

ADDC R6, 4, R5

HALT

Shift loft by 16 Zero
extend
01
Jump
>+
Instruction
Memory
Read
Address
Inst
Reg Dest
ADD Rs, Rt, Rd
LW Rt, offset (Rs)
SW Rt, offset (Rs)
(15:12)
(11:8)
16 (7:4)
(3:01
Reg Input
Control
Unit
ALU Input
white frable
Read Addr 1
Read Addr 2
Reg Write
Write Addr
16 Write Data
Read
Data 1
Register File
Read
Data 2
Sign extend
R[d] ← R[s] + R[t]
R[t] ← M[R[s] + offset]
M[R[s] + offset] ← R[t]
New: ADDC Rs, const, Rt | R[t] ←- R[s] + const
Shift left by
Branch
ALU
Control
>ALU
S
S
S
S
zero flag
16
Mem Store
t
t
t
t
Address
Data Memory
Write
Data
We will extend the microarchitecture with ADDC by choosing an instruction encoding like so:
Syntax
Meaning
[15:12] [11:8] | [7:4]| [3:0]
opcode
0010
0000
0001
1101
Write Enable
d
offset
offset
const
Read
Data
0 1
Transcribed Image Text:Shift loft by 16 Zero extend 01 Jump >+ Instruction Memory Read Address Inst Reg Dest ADD Rs, Rt, Rd LW Rt, offset (Rs) SW Rt, offset (Rs) (15:12) (11:8) 16 (7:4) (3:01 Reg Input Control Unit ALU Input white frable Read Addr 1 Read Addr 2 Reg Write Write Addr 16 Write Data Read Data 1 Register File Read Data 2 Sign extend R[d] ← R[s] + R[t] R[t] ← M[R[s] + offset] M[R[s] + offset] ← R[t] New: ADDC Rs, const, Rt | R[t] ←- R[s] + const Shift left by Branch ALU Control >ALU S S S S zero flag 16 Mem Store t t t t Address Data Memory Write Data We will extend the microarchitecture with ADDC by choosing an instruction encoding like so: Syntax Meaning [15:12] [11:8] | [7:4]| [3:0] opcode 0010 0000 0001 1101 Write Enable d offset offset const Read Data 0 1
Inst. Opcode Reg ALU Mem Reg
ADDC 1101
Reg Branch Jump
ALU
Write Control Store Dest input input
lo
0
0
Transcribed Image Text:Inst. Opcode Reg ALU Mem Reg ADDC 1101 Reg Branch Jump ALU Write Control Store Dest input input lo 0 0
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 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