Question: (a) Consider a hypothetical machine containing a single data register, called an accumulator (AC). Both instructions and data are 16 bits long. The instruction

(a) Consider a hypothetical machine containing a single data register, called an

(a) Consider a hypothetical machine containing a single data register, called an accumulator (AC). Both instructions and data are 16 bits long. The instruction format is shown below: 34 Opcode Address 15 Here, the 12-bit address identifies a particular I/O device (e.g., device 1, device 2, device 3...and so on). The opcode for the two I/O instructions are: 3H 0011-Load AC from I/O (moves data contained in I/O device to AC) 7H-0111-Store AC to I/O (moves data contained in AC to the I/O device 5H 0101 Add to AC from Memory Hint: The first 4 bits (first hexadecimal digit) in the IR indicate the type of the operation. That means if IR contains 3H, it will be a load operation and if IR contains 7H it is a store operation. We will assume that the memory (contents in hex) as the following table: Memory Content PC Address 300 3005H 301 5940H 302 7006H 940 0002H 941 CPU MEMORY System Bus (Address, Data Control Bus ALLU Register Central Primary Memory ROM/AM Cache Memory 1/0 Input Devices (Keyboard Mouse etc.) Output Devices (Manitor, Pintere Show the steps involved in the execution of the following program [ 6 marks] Load AC from device 5 (Assume that the next value received from device 5 is 3) Add contents of memory location 940 to the content of (Assume that the location 940 contains value of 2). Store AC to device 6 (b) Consider a hypothetical 32-bit microprocessor having 32-bit instructions composed of two fields: the first byte contains the opcode and the remainder the immediate operand or an operand address (i) What is the maximum directly addressable memory capacity (in bytes)? [2 marks] (ii) How many bits are needed for the program counter and the instruction register? [2 marks]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Part a Step 1 Load AC from Device 5 Operation Load AC from IO device Opcode and Address 3H means Loa... View full answer

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 Accounting Questions!