What is contained in an activation record

Assignment Help Basic Computer Science
Reference no: EM132247766

Computer Organization Assignment -

Instructions -

Explain your answers clearly and be concise. Do not write long essays.

Make sure your answers are legible and your final answer is clearly indicated.

Questions -

1A. Starting with the single cycle implementation of ANNA discussed in class, make necessary modifications to support the jalr instruction. You cannot modify the ALU, register file, or either memory. The other twelve instructions must work in the modified data path.

A. Describe your changes. Your changes may include but are not limited to:

  • Adding a mux. Indicate where the mux is located, the inputs to the mux and define a control line.
  • Adding an input to existing mux. Indicate the mux that you are adding the control line. Add the new input to the bottom (highest value) of the mux.
  • Modifying or adding combinational logic. Potential targets include the branch detection unit, the extension units, and the logic needed to compute the target address. Describe any changes you make in this regard.

Fill in the blanks below:

Connect the output of Src1 from the register file to the __________mux.

Add combination __________ to BranchType that will select the__________input of the PC select mux.

Connect the output of PC+ 1 to the bottom input of ___________mux. The corresponding control line________(name of control line here) will expand to _________ bits with _________ selecting this new input.

Add a mux just before the __________input of the register file. The corresponding new control line is called DestSel: 0 selects ________, 1 selects__________.

B. List the value for each control signal in the ANNA processor when executing the jalr instruction. Include any new control signals defined in part (a).

Opcode

Src1 Sel

WB Sel

Src2 Sel

Reg Write

OpSel

ALUOp

Branch Type

memEn

Mem Write

The new field

Jalr

 

 

 

 

 

 

 

 

 

 

2. Assume that ANNA files can now be assembled into object files and linked. Consider the following ANNA program and answer the following questions. For your convenience, addresses precede each instruction. They are not part of the instruction.

# Code section

0 start: lli r1 &count

1 lui r1 &count

2 lw r2 r1 0

3 lli r3 &total

4 lui r3 &total

5 sw r2 r3 0

6 lli r4 0

7 lli r5 8

8 begin: sub r7 r4 r5

9 bgz r7 &end

10 lli r7 &compute

11 lui r7 &compute

12 jalr r7 r6

13 sw r3 r1 0

14 lli r2 &tally

15 lui r2 &tally

16 lw r3 r2 0

17 addi r3 r3 1

18 sw r3 r2 0

19 addi r4 r4 1

20 bez r0 &begin

21 end: lli r7 &output

22 lui r7 &output

23 jalr r7 r6

24 .halt

25 output: out r3

26 jalr r6 r0

# Data section

27 count: .fill 10

28 total: .fill &score

A. Assuming that all labels are visible, what would be the contents of the entry point table?

B. What would be the contents of the external reference table?

C. What would be the contents of the relocation dictionary?

3. Compilers and Assemblers translate each source file individually to generate object code files. Hence the object files need to be linked together before they can be executed. Theoretically, however, it is possible to skip the linking step and directly have compilers generate the final executable file. What would be the down side of taking the latter approach?

4. What is contained in an activation record?

5. How are two dimensional arrays represented in memory using row-major ordering?

6. In the class example of activation records, we saw that every function's activation record stored the frame pointer value of the previous function's activation record, but not the stack pointer. Why do we not need to store the previous function's stack pointer value?

Attachment:- Assignment File.rar

Reference no: EM132247766

Questions Cloud

The goal a process of ongoing improvement : If you have read the book. "the goal a process of ongoing improvement by eliyahu m. goldratt and jeff cox".
Compare psychological or educational tests : Research five peer-reviewed articles in the Ashford University Library that were published within the last 15 years, including a minimum of one article.
How the state and local governments interact : Discuss how this knowledge will be useful to you in your weekly debate arguments or the final project as well as a practicing public administrator.
Ow many express skid shipments does fedex handle : How many express skid shipments does FedEx handle? What is the maximum weight for a freight shipment?
What is contained in an activation record : CPSC 2500 Computer Organization Assignment, Seattle University, USA. What is contained in activation record. How two dimensional arrays represented in memory
Social media policy to field office employees and managers : The company's CISO that presents a strategy for communicating a new "social media" policy to field office employees and managers.
What promotes the continuation of behavior : Learning theorists and psychologists seek to understand behavior, what promotes the continuation of behavior and what extinguishes it.
Confidence intervals for proportions and confidence interval : Explain the difference between Confidence Intervals for Proportions and Confidence Intervals for Means.
Discuss the qualitative and quantitative research designs : Prior to beginning work on this assignment, review the qualitative and quantitative research designs encountered so far in this course.

Reviews

len2247766

3/4/2019 10:12:29 PM

I need this assignment in one day. Please let me know if you can do it. Instructions: Explain your answers clearly and be concise. Do not write long essays. Don’t waste your time giving details that the question does not request. Make sure your answers are legible and your final answer is clearly indicated. This assignment is to be done individually. You can discuss the problems with your classmates, but should write your answers independently.

len2247766

3/4/2019 10:12:22 PM

Please type/write your answers to the following questions and submit hard copy in class. Or, upload a single PDF of your work on Canvas before the deadline. If submitting late, email me a single PDF from your inbox---not from Canvas. Include your name inside the PDF. If submitting hardcopy containing multiple pages, staple them together. Write your name on top of each page. Be sure to state any assumptions you make. SHOW YOUR WORK! Correct answers without work may be penalized. NOTE: Refer to slides 111 to 114 of the “Lecture4.pdf” on Canvas. To get you started, I am providing sample answers to each of the following parts, please complete the solutions by filling in the remaining information.

Write a Review

Basic Computer Science Questions & Answers

  Shut down its motorcycle plant in malaysia

What strategy did Suzuki utilise when it decided to shut down its motorcycle plant in Malaysia? Do you think it was justified?

  Cyber insurance coverage

Some people think Lloyd's of London is the best place to go for cyber insurance coverage. Do you agree?

  How much did you really win

The first payment on the lottery jackpot will be made today. In PV terms, how much did you really win?

  Floating point numbers in scientific notation

Floating point numbers in scientific notation represents numbers as a base number and an exponent. For examples: 2E3, 2.0E12, 3.14E+12, 3.14E-12. Give a grammar that generates floating point numbers. Use your grammar to derive 3.14E+12.

  Question regarding the functional dependencies

Donation (Donator#, Program#, Date, Amount, Title, Theme, Deadline) The requirements of CPC also indicate that there are the following Functional Dependencies:

  Create a program that will calculate the daily pay

Using a loop, create a program that will calculate the daily pay and total pay assuming you get paid 1 penny the first day and then double every day after the first day. Display these numbers in a listbox. Use a inputbox to ask the user how many d..

  The user to enter the amount of a purchase.

Design a modular program that will ask the user to enter the amount of a purchase.

  Difference between sdlc model and sdlc methodology

What is the difference between sdlc model and sdlc methodology. Give an example and show description of each model and methodology?

  What do you think facebook social responsbility

What do you think Facebook's social responsbility should be to its users and the communitites that is serves?

  What about a low illness prevalence

Comment on what a high illness prevalence does to the positive predictive value (PPV). What about a low illness prevalence?

  Is hci a term to describe any interaction with digital

Is HCI a term to describe any interaction with digital technology? Suggest a more appropriate phase to describe this. Also, explain your answer. Whom or what are you interacting with, when you use a smart phone, a tablet, and a laptop? Google Glass o..

  Repo bonds to non-bank financial firms

If the Fed wishes to raise the equilibrium federal funds rate up to the top end of the target range, will it repo or reverse repo bonds to non-bank financial

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd