Question: ( 1 0 pts ) Consider an ISA made up of only the following 1 2 similar - to - LEGv 8 instructions. table
pts Consider an ISA made up of only the following similartoLEGv instructions.
tableADD R R R add contents of R to R and put in RSUB R R Rsub contents of R to R and put in RAND R R R and contents of R to R and put in ROR R R R or contents of R to R and put in RADDI R R # add contents of R and and put in RORI R R # or the contents of R and and put in RLDUR RR # load contents of memory addressed by R and put in RSTUR RR # store contents of R to memory addressed by RMUL R R R multiply contents of R with R and put in RCBZ R label, if contents of R does not equal R goto labelCBNZ R label, if contents of R equals R goto labelB label, goto label
a How many bits for opcode are needed in order to encode the above instructions?
b If the ISA has only generalpurpose registers R thru R and it uses 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 ie can jump how many instructions Why?
c If all registers are bit, what is the approximate size of the data memory? Why?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
