Question: ( 1 0 pts ) Consider an ISA made up of only the following 1 2 similar - to - LEGv 8 instructions. table

(10 pts) Consider an ISA made up of only the following 12 similar-to-LEGv8 instructions.
\table[[ADD R1, R2, R3,// add contents of R3 to R2 and put in R1],[SUB R1, R2, R3,//sub contents of R3 to R2 and put in R1],[AND R1, R2, R3,// and contents of R3 to R2 and put in R1],[OR R1, R2, R3,// or contents of R3 to R2 and put in R1],[ADDI R1, R2, #5,// add contents of R2 and 5 and put in R1],[ORI R1, R2, #5,// or the contents of R2 and 5 and put in R1],[LDUR R1,[R2, #4],// load contents of memory addressed by R2 and put in R1],[STUR R1,[R2, #4],// store contents of R1 to memory addressed by R2],[MUL R1, R2, R3,// multiply contents of R3 with R2 and put in R1],[CBZ R1, label,// if contents of R1 does not equal R2, goto label],[CBNZ R2, label,// if contents of R1 equals R2, goto label],[B label,// goto label]]
a) How many bits for opcode are needed in order to encode the above instructions?
b) If the ISA has only 7 general-purpose registers (R0 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?
 (10 pts) Consider an ISA made up of only the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!