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
Exam (elaborations)

COEN 317 - Microprocessor-based Systems Assignment 2

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
28-09-2025
Written in
2025/2026

1. Consider a subtraction instruction with flexible second operand Operand2: SUB Rd, Rn, Rm, LSL #n It is desired to modify this instruction to the following new syntax: SUB Rd, Rm, LSL #n, Rn This new syntax can be called subtraction instruction with flexible first operand Operand1. What minimum change in the hardware architecture is required for the implementation of this instruction? Please draw hardware modifications. (10 points) Microprocessor-based Systems – Assignment 2 Solution 1: A shifter must be added between the first operand and the ALU input. The first operand is given to the shift unit before passing to the ALU as an input. ALU Register Bank Read reg2 Write reg Read reg1 Operand 1 Operand 2 Shifter 2. Assume you want to design the instruction fields for a simple processor, which has only 64 instructions. The registers bank is made of 32 8-bit registers. If you would design the instruction fields, what would be the range of bits for each field in the following cases: (24 points) a) The instruction field is 16 bits fixed, and it is made of Rds (one register for both source and destination), Rs, immediate, and opcode fields, and only the first 6 registers can be used for Rs and Rds in the instruction. b) The instruction field is 32 bits fixed, and it is made of Rd, Rs1, and Rs2 (separate registers for source and destination), immediate, and opcode fields. c) The instruction field is 32 bits fixed, and it is made of Rds (one register for source and destination), Rs, and immediate and opcode fields.

Show more Read less
Institution
Course

Content preview

COEN 317 - Microprocessor-based Systems
Assignment 2

, Microprocessor-based Systems – Assignment 2

1. Consider a subtraction instruction with flexible second operand Operand2:
SUB Rd, Rn, Rm, LSL #n
It is desired to modify this instruction to the following new syntax:
SUB Rd, Rm, LSL #n, Rn
This new syntax can be called subtraction instruction with flexible first operand
Operand1. What minimum change in the hardware architecture is required for the
implementation of this instruction? Please draw hardware modifications. (10 points)
Write reg
Solution 1: Read reg2
Read reg1
A shifter must be added between the first operand
and the ALU input. The first operand is given to the
shift unit before passing to the ALU as an input. Register Bank
Operand 1 Operand 2




Shifter




ALU

Written for

Course

Document information

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

Subjects

$8.99
Get access to the full document:

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

Get to know the seller
Seller avatar
ScholarShark

Get to know the seller

Seller avatar
ScholarShark (self)
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
7 months
Number of followers
0
Documents
17
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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

Working on your references?

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

Working on your references?

Frequently asked questions