Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer Architecture EE/CS 458 Problem Ch8-E1 Revise the example processor design in chapter 5 as follows a) Change the instruction encoding from vertical format for

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Computer Architecture EE/CS 458 Problem Ch8-E1 Revise the example processor design in chapter 5 as follows a) Change the instruction encoding from vertical format for the memory reference instructions and horizontal format for the register reference and IVO instructions to just vertical format for all instructions. Give an opcode for every instruction. b) Add instructions PUSH and POP to the instruction set of the processor in chapter 5. Instruction PUSH stores either AC or E in the system Stack. Instruction POP retrieves the value of AC or E from the system Stack. Give the Execute Cycle for cach one of these two instructions, i.e., list micro-operations and their corresponding control functions for each nstruction c) Suppose that a system Stack is used for saving return addresses to main program in handling subroutine calls and interrupt routines. This is in contrast to the processor in chapter 5, where return addresses are saved in memory for handling subroutine calls and interrupt routines. Do the following: Rewrite the Interrupt Cycle such that the system stack is used for saving return address to the main program. So give micro-operations and control functions for the revised Interrupt Cycle. Also introduce a new instruction called instruction RETI. This instruction retrieves the return address to main program from the system stack and sets PC to that address and also turns on the interrupt by setting IEN to 1. Also give the Execute Cycle for the RETI instruction by listing its micro-operations and the corresponding control functions Similarly revise instruction BSA for handling subroutine calls such that the return address to the mail program is saved in the system stack, not in the memory. Rename instruction BSA as instruction CALL. Give Execute Cycle of the instruction CALL by listing its micro-operations and the corresponding control functions. Introduce a new instruction called instruction RETS. This instruction retrieves the return address to the main program from the system stack and sets PC to that address. Also give the Execute Cycle for the RETS instruction by listing its micro-operations and the corresponding control function:s 1) Submit the rewritten of table 5-6 with the above changes applied. 2) The following program is written using instruction set of the processor in chapter 5 Rewrite this program using the revised instruction as given in part (a) Computer Architecture EE/CS 458 Problem Ch8-E1 Revise the example processor design in chapter 5 as follows a) Change the instruction encoding from vertical format for the memory reference instructions and horizontal format for the register reference and IVO instructions to just vertical format for all instructions. Give an opcode for every instruction. b) Add instructions PUSH and POP to the instruction set of the processor in chapter 5. Instruction PUSH stores either AC or E in the system Stack. Instruction POP retrieves the value of AC or E from the system Stack. Give the Execute Cycle for cach one of these two instructions, i.e., list micro-operations and their corresponding control functions for each nstruction c) Suppose that a system Stack is used for saving return addresses to main program in handling subroutine calls and interrupt routines. This is in contrast to the processor in chapter 5, where return addresses are saved in memory for handling subroutine calls and interrupt routines. Do the following: Rewrite the Interrupt Cycle such that the system stack is used for saving return address to the main program. So give micro-operations and control functions for the revised Interrupt Cycle. Also introduce a new instruction called instruction RETI. This instruction retrieves the return address to main program from the system stack and sets PC to that address and also turns on the interrupt by setting IEN to 1. Also give the Execute Cycle for the RETI instruction by listing its micro-operations and the corresponding control functions Similarly revise instruction BSA for handling subroutine calls such that the return address to the mail program is saved in the system stack, not in the memory. Rename instruction BSA as instruction CALL. Give Execute Cycle of the instruction CALL by listing its micro-operations and the corresponding control functions. Introduce a new instruction called instruction RETS. This instruction retrieves the return address to the main program from the system stack and sets PC to that address. Also give the Execute Cycle for the RETS instruction by listing its micro-operations and the corresponding control function:s 1) Submit the rewritten of table 5-6 with the above changes applied. 2) The following program is written using instruction set of the processor in chapter 5 Rewrite this program using the revised instruction as given in part (a)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

9-5 How will MIS help my career?

Answered: 1 week ago

Question

=+ What topics are contained in the contracts?

Answered: 1 week ago