Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TEN 3 CS ii. Register x9 contains the address Ox00000200. What is the value in register x5 after the following set of instructions? Did overflow

image text in transcribed
image text in transcribed
image text in transcribed
TEN 3 CS ii. Register x9 contains the address Ox00000200. What is the value in register x5 after the following set of instructions? Did overflow occur? 1. lw x5, 0(x9) add x5, x0, x5 2. lw x5, 0(x9) add x5, X5, X5 4. Encode decoding RISC-V instructions (30 points) a Encode the following RISC-V instructions into hexadecimal: i add x5, x0, x6 11 lwu x5, 40(x6) lui sh x5, 2006) b. Decode the following RISC-V instructions from hexadecimal: OxO1DE02B3 Ox0102AE83 Ox01E2A023 v OX 12345287 5 c. What would be the impact on the RISC-V instruction set (R/\/S/U-formats) for the following 1. Doubling the number of registers i Can this change be accomplished and still maintain a 32-bit instruction word? iii. If so, what are the implications on each instruction type? 5. Arithmetic Logical instructions [20 points] a Assume the following values. =x5 g=x6, h=x7 Write RISC-V instruction sequences for the foitowing 0 =gah & a Assume the following values: F=x5, g=x6, h=x7. Write RISC-V instruction sequences for the following: i.f=0 f=g-h ii. f=g&H ivf=of vf= 329 v=18 vi f=1-1 Vi fagch ix = 2*g+h 6 Arrays (20 points) a. Assume the following C-Code segment int Array[4][2] = {{0, 1} (2,3), (4.5), (6,7}} Write the RISC-V equivalent initialization for row-order organization Write the RISC-V equivalent initialization for column order organization

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions