100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

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

Rating
-
Sold
-
Pages
41
Grade
A+
Uploaded on
11-10-2025
Written in
2025/2026

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

Institution
Ecen 350
Course
Ecen 350











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Ecen 350
Course
Ecen 350

Document information

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

Subjects

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

Get to know the seller

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 Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
886
Member since
4 year
Number of followers
540
Documents
43153
Last sold
1 week ago
EXAM HUB

Welcome to Exam Hub Are you looking for high-quality, exam-ready notes, past papers, Test Banks, and well-researched study materials to boost your grades? You’re in the right place! I create and upload detailed, easy-to-understand, and well-structured documents across multiple subjects. All my materials are designed to help you study , save time, and excel in your coursework and exams! On this page NURSING EXAMS,STUDY GUIDES,TESTBANKS AND QUALITY EXAMS IS THE KEY TO STUDENTS CAREER EXCELLENCE, you find all documents, package deals, and flashcards offered by BravelRadon (EXAM HUB STORES!)....kindly recommend a friend for A+ GARANTEEd either you are a first-year student or final-year graduation! best of luck!

Read more Read less
3.5

157 reviews

5
57
4
30
3
32
2
8
1
30

Recently viewed by you

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

Frequently asked questions