Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 41 pages
Exam (elaborations)

Ecen 350 post-Exam1/pre-Exam2 quizzes well answered

Document preview thumbnail
Preview 4 out of 41 pages

Ecen 350 post-Exam1/pre-Exam2 quizzes well answered

Content preview

Ecen 350 post-Exam1/pre-Exam2
quizzes well answered

For all R-Type instruction, Read Data 2 is connected to the ALU.



(quiz 11, true or false) - ANS ✔true



EXPLANATION:



In the LDUR and STUR instructions, the ALU is used for the __________ calculation.



(quiz 11, fill in the blank) - ANS ✔address



EXPLANATION:



The registerfile does not produce any output on Read Data 1 and Read Data 2 for the B
instruction.



(quiz 11, true or false) - ANS ✔false



EXPLANATION:



Assuming Fetch has placed an instruction on the bus called I[31:0] (in Verilog notation), which
wires should be connected to "Read Addr 2" on the register file for the proper execution of R-
Type instructions.

,(quiz 11, fill in the blank) - ANS ✔I[20:16]



EXPLANATION:



For the CBZ instruction, the ALU must be set to perform the "pass _________" operation.



(quiz 11, fill in the blank) - ANS ✔input b



EXPLANATION:



A given program has the following instruction mix:

Instruction Type | Frequency

R-type | 35%

LDUR | 34%

STUR | 14%

CBZ | 15%

B | 2%

The fraction of all instructions that use the instruction memory is: _____

The fraction of all instructions that use the register file is: _____

The fraction of all instructions that use the sign-extend unit is: _____

The fraction of all instructions that use the ALU is: _____

The fraction of all instructions that use the data memory is: _____

Enter you answers in percent.



(quiz 11, fill in FIVE blanks) - ANS ✔100%

98% (everything but B)

,65% (everything but R-type)

98% (everything but B)

48% (LDUR+STUR only)



EXPLANATION:



Consider an ISA with a sign-extender unit that accepts an 8-bit branch instruction of the
following format



opcode | offset | opcode

2 bits | 4 bits | 2 bits



and outputs an 8-bit sign-extended offset.

Let the input bits be X7, X6, ..., X0 and the output bits be Y7, Y6, ..., Y0.

Enter the value of each output Yi in terms of an input Xj. (Note: X0 and Y0 are the rightmost,
least-significant bits.)

Y0 = _____

Y1 = _____

Y2 = _____

Y3 = _____

Y4 = _____

Y5 = _____

Y6 = _____

Y7 = _____



(quiz 11, fill in EIGHT blanks) - ANS ✔X2

X3

, X4

X5

X5

X5

X5

X5



EXPLANATION:



With the previous question as warmup, consider now a different ISA, in which the sign-extender
must consider two types of branch instruction formats:



Conditional branch:



opcode | offset | opcode

1 bits | 5 bits | 2 bits



Unconditional branch:



opcode | offset

1 bits | 7 bits



Let the input bits be X7, X6, ..., X0 and the output bits be Y7, Y6, ..., Y0, as before.

The bit in the first opcode (X7) encodes the instruction format. If X7 = 0, it's a conditional
branch, while if X7 = 1, it's an unconditional one.

Complete the logic for each output Yi in terms of inputs Xj below. Enter answers in the format
"X0 AND X1" or "X0 AND NOT(X1)".

Document information

Uploaded on
October 11, 2025
Number of pages
41
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$26.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BravelRadon
3.5
(164)
Sold
954
Followers
541
Items
53022
Last sold
2 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions