Search Header Logo

RISC-V: Instruction

Authored by Adnan Maruf

Computers

University

Used 3+ times

RISC-V: Instruction
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many registers are there in RISC-V?

31

16

64

32

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In RISC-V what is the instruction for the addition operation (i.e., you want to calculate the summation)

sub

addw

ld

add

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what does the following instruction do?
add a, b, c

b=a+c

a=b+c

c=a+b

a=a+b

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

If variables x, y, and z are mapped to register x2, x3, and x4, respectively, then what would be appropriate RISC-V instruction for the following?
y = x - z

add x2, x1, x3

sub x2, x1, x3

add x3, x2, x4

sub x3, x2, x4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the byte address of the 5th element of an array that stores words?

32

40

20

64

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Let's assume A[10] is an array (double word), and the address of A[0] is stored in register x5; then, how do we load the 10th element of the array into x6?

ld x5, 10(x6)

ld x6, 10(x5)

ld x6, x5[80]

ld x6, 80(x5)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which instruction to use to store a double word in RISC-V?

sd

lw

sw

ld

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?