Question 3) For the CPU architecture given in slide 17 of lecture-3 notes, find the instruction binary encodings for the program shown below and fill in the instruction memory table. You must use 3 instructions at most. Assume every address in instruction memory stores a single 16-bit instruction and the program is stored in instruction memory starting from address 0. Also, assume all CPU registers are 8-bits wide and all initially contain OxFF value. In the program below, assume variable "a" is mapped to RO register and R1 is used as a temporary register for calculations. For deriving the encoding for each instruction, show the values of individual control word bits and explain why those bits are selected as such. unsigned int a = 5;//const 5 is an immediate value that is stored into a which is mapped to RO a = a*5; //Multiply a by 5 and store the result back to a in RO

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Topic Video
Question
Question 3) For the CPU architecture given in slide 17 of lecture-3 notes, find the instruction binary
encodings for the program shown below and fill in the instruction memory table. You must use 3
instructions at most.
Assume every address in instruction memory stores a single 16-bit instruction and the program is stored in
instruction memory starting from address 0. Also, assume all CPU registers are 8-bits wide and all initially
contain OxFF value. In the program below, assume variable "a" is mapped to RO register and R1 is used as
a temporary register for calculations.
For deriving the encoding for each instruction, show the values of individual control word bits and explain
why those bits are selected as such.
unsigned int a = 5;//const 5 is an immediate value that is stored into a which is mapped to RO
a = a*5;
//Multiply a by 5 and store the result back to a in RO
Transcribed Image Text:Question 3) For the CPU architecture given in slide 17 of lecture-3 notes, find the instruction binary encodings for the program shown below and fill in the instruction memory table. You must use 3 instructions at most. Assume every address in instruction memory stores a single 16-bit instruction and the program is stored in instruction memory starting from address 0. Also, assume all CPU registers are 8-bits wide and all initially contain OxFF value. In the program below, assume variable "a" is mapped to RO register and R1 is used as a temporary register for calculations. For deriving the encoding for each instruction, show the values of individual control word bits and explain why those bits are selected as such. unsigned int a = 5;//const 5 is an immediate value that is stored into a which is mapped to RO a = a*5; //Multiply a by 5 and store the result back to a in RO
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education