Ask Other Engineering Expert

Assignment

List in sequence all micro-operations using RTL notation for the following Marie instructions assuming the addressing modes as discussed in class. Include the instruction fetch for each as well as the instruction execution, using the definition of fetch from the lecture notes.

1. LoadI 100
2. Add 10
3. Store 200

4. How many total clock cycles are required, from the beginning of fetch to the end of execution, for each of the above instructions assuming each micro-operation requires 1 clock cycle (including incrementing the PC as part of the fetch)?

5. Assume MARIE DID have an immediate address mode. Write down what you think its RTL sequence would be for these instructions: LOAD #100 and ADD #$200

6. How many bits are required to address a 4K x 16 bit memory:

a) If it is byte addressable?
b) if it is (16 bit) word addressable?
c) How many 512 byte chips would be required to construct it?

7. Suppose we want to construct a memory from RAM chips, where each chip contains 4 words. We want the memory to be word addressable. We have a total of 16 chips.

a) How many bits does it take to address then entire memory?

b) What is the total bit capacity of the memory? Total Word capacity?

c) If I constructed this memory using High-Order Interleaving, what would the address of the first byte of the first chip be?

What would the address of the last word of the first chip? What would be address of the 3rd word of the last chip?

8. Answer the question 7 again, but for Low Order Interleaving.

9. a) How many 256x8 RAM chips for 8M bytes?

b) How many total address bits?

c) How many address lines per chip?

d) How many address lines must be decoded for chip selects?

10. Construct a 128M x 16 memory using 512K x 8 RAM chips.

a) How many chips?
b) How many chips per word?
c) How many address bits per chip?
d) How many banks?
e) How many address bits total?

11. Suppose a 32 bit processor has 128 unique opcodes. All instructions are 32 bits and consist of an opcode and an operand address (as was the case with MARIE). The opcode field contains a binary code for an operation and a register #. There are 8 registers.

a) How many bits are required for the opcode?
b) How many bits are needed to encode the operation?
c) How many bits are needed to specify the memory address?
d) How many memory locations can this processor access?
e) What is the maximum memory size in bytes?
e) Largest unsigned value in a memory word?

12. List HEX code for this Marie program

 

Address
100
101
102
103
104
105
106
107
108
109

Label



S2


S1

A
One

Instruction
LOAD A
ADD ONE
JUMP S1
ADD ONE
STORE A
HALT
ADD A
JUMP S2
HEX  0023
HEX  0001

HEX Machine Code

13. Give MARIE assembly language equivalent of these binary machine language instructions.

a) 0010000000000111
b) 1001000000001011
c) 0011000000001001

14. Consider the SKIPCOND instruction we talked about in the MARIE lecture. Compare it to the flowhart in the Zybook activity 2.7.1. What is different about the MARIE branching method compared to the MIPS method. Will it be more or less difficult to program than the MIPS instructions. Explain.

15. The last problems reinforce what you learned in Lab 2. But we are changing the rules a bit. The instructions are based on a pretend microprocessor called MUM ("Made Up Microprocessor").

MUM has an ISA that includes PUSH and POP instructions. The stack only addresses 16 bit values and there are general purpose registers R0 through R8. The source is on the right, destination on left, for all instructions.

LOAD     destination, source

Memory is NOT byte addressable, only 16 bit words can be accessed. A subroutine is "called" by the JSR instruction and returns to the caller via RTS instruction. All instructions are 16 bits.

$3000

FFFF

$3001

FFFF

$3002

FFFF

$3003

FFFF

$3004

FFFF

$3005

FFFF

$3006

FFFF

$3007

FFFF

$3008

FFFF

LOAD

R0, #$1000

 

LOAD

SP, #$3008

; Initialize the stack pointer.

PUSH

R0

 

ADD

R0,#1

 

PUSH

R0

 

CALL

MYSUBR

; Execute the subroutine, MYSUBR

HALT

 

; Terminate the program.

MYSUBR:

 

; Assume the MYSUBR is located at program address $4015

ADD

R0,#1

 

PUSH

R0

; FIND THIS PROGRAM ADDRESS

ADD

R0,#1

 

PUSH

R0

 

LOAD

R1, 3(SP)

 

POP

R0

 

POP

R0

 

RTS

 

 

a. When the program reaches the HALT instruction, stack memory will have changed. Rewrite the memory table to show its state when the program reaches the HALT instruction.

b. What will be the value stored in R1 at that point? Explain how you determined that answer.

c. We demand that the stack stay "balanced". What does this mean?

d. Is the stack "balanced" at the HALT instruction? Why or why not?

e. What would happen if I removed one of the POP instructions in MYSUBR? Would the program terminate at the HALT instruction?

f. What is the address of the instruction with the comment "FIND THIS PROGRAM ADDRESS"?

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M91986105

Have any Question?


Related Questions in Other Engineering

Register design a cpu register is simply a row of

Register design A CPU register is simply a row of flip-flops (i.e. SR, JK, T, etc) put side by side in an array to make the size of register required. For example, an 8 bit register has 8 flip-flops side by side for stor ...

A detailed review of spatial modulation and simulation

A Detailed Review of Spatial Modulation and Simulation Learning Outcomes a. Learn how to model mobile communication channels d. Discern knowledge development and directions on the recent advances in 4G to the research pr ...

Mine safety amp environmental engineering assignment -part

Mine Safety & Environmental Engineering Assignment - Part 1 - Questions 1. Occupational health and safety is the primary factor that needs to be considered in the mining industry. Discuss this statement. 2. Define the fo ...

Projectflow processing of liquor in a mineral refining

Project Flow Processing of Liquor in a Mineral Refining Plant The aim of this project is to design a flow processing system of liquor (slurry) in a mineral (aluminum) refining plant. Aluminum is manufactured in two phase ...

Learning outcomes evaluate multiuser communication and

Learning Outcomes Evaluate multiuser communication and resource sharing techniques; Apply the techniques of, and report on, digital communication applications using Matlab and hardware devices. Assignment Description The ...

Operations engineering assignment -please select only one

Operations Engineering Assignment - Please select only one of the following case studies for your assignment: CASE A. Tesla Motors Tesla is an innovative manufacturer that designs, assemble and sells fully electric vehic ...

Select a risk problem from the list below and prepare a

Select a risk problem from the list below and prepare a risk management plan in accordance with AS/NZS ISO 31000:2009. Please ensure that: - Establish the context clearly, in accordance with the Standard; - Define your s ...

Engineering materials term paper assignment -conduct a

ENGINEERING MATERIALS TERM PAPER ASSIGNMENT - Conduct a thorough literature search and write a 15-20 page technical review paper on the evolution of the engineering materials used in the manufacturing of any one of the f ...

Task 1using the lab kit design a circuit for the processor

Task 1: Using the lab kit, design a circuit for the processor to control the output of a connected 7-segment LED display device. You will be provided with a standard common anode 7-segment display of the type FND-507 (or ...

Control theory - lab reportsfor experiments 1 to 4 you must

Control Theory - Lab Reports For experiments 1 to 4 you must undertake the following: a) At the start of each section (including the pre-lab activities) there are a number learning outcomes. That is, what students should ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As