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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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