Question: Q 5 . The basic function performed by a computer is execution of a program. A program consists of set of instructions. These instructions are

Q5. The basic function performed by a computer is execution of a program. A program consists of set of instructions. These
instructions are stored in memory in sequential order. The processor reads instructions from memory one at a time and executes
them. Consider a hypothetical machine (representing modern computer) which consists of
-Program Counter (PC): A register which contains the address of the memory where the next instruction that is to be executed. This
register can store 8-bit address.
-Register file: This contains three registers, R1, R2, and R3 each capable of storing 8-bit data.
Memory: 256 X8 bits.
Sample instructions are:
i)AND R1, R1, #0// Clears the register
ii)MUL R1, R2, R3// Multiplies the contents of R2 and R3 and stores the result in R1
Answer the following questions:
a) Draw the best hardware implementation for realizing the instruction AND R1, R1, #0[1 mark]
b) Consider the instruction MUL R1, R2, R3. What should be the maximum and minimum values of R2 and R3 to obtain correct
output in R1.[2 Marks]
c)Draw the best hardware implementation for realizing the instruction MUL R1, R2, R3[3 marks]
d) What is the addressability and address space of the given memory. [2 Marks]
e) Draw the block diagram for implementing 256X8 bits memory. Show all necessary inputs, outputs and control signals. [3 Marks]
 Q5. The basic function performed by a computer is execution of

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!