Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider an ISA made up of only the following 1 2 similar - to - LEGv 8 instructions.ADD R 1 , R 2 , R

Consider an ISA made up of only the following 12 similar-to-LEGv8 instructions.ADD R1, R2, R3SUB R1, R2, R3AND R1, R2, R3OR R1, R2, R3ADDI R1, R2, #5ORI R1, R2, #5LDUR R1,[R2, #4] STUR R1,(R2, #4]MUL R1, R2, R3 CBZ R1, labelCBNZ R2, labelB label// add contents of R3 to R2 and put in R1I/sub contents of R3 to R2 and put in R1// and contents of R3 to R2 and put in R1// or contents of R3 to R2 and put in R1// add contents of R2 and 5 and put in R1/l or the contents of R2 and 5 and put in R1// load contents of memory addressed by R2 and put in R1// store contents of R1 to memory addressed by R2// multiply contents of R3 with R2 and put in R1// if contents of R1 does not equal R2, goto label// if contents of R1 equals R2, goto labelgoto labela) How many bits for opcode are needed in order to encode the above instructions?b) If the ISA has only 7 general-purpose registers (RO thru R6) and it uses 16 bits to represent each of the above instructions. It could have several encoding formats. How many bits are needed for each register?What is the largest immediate value that can appear in the instruction? How far can you branch (i.e., can jump how many instructions)? Why?c) If all registers are 16-bit, what is the approximate size of the data memory? Why?

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

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

Define HRM and its relation to organizational management

Answered: 1 week ago

Question

Explain the theoretical issues surrounding the HRM debate

Answered: 1 week ago