What is the format of a memory address as seen by the cache

Assignment Help Basic Computer Science
Reference no: EM13854488

Part -1:

1. How many bits are required to address a 16M x 32 main memory if

a) Main memory is byte addressable? ______

b) Main memory is word addressable? ______

2. Suppose that a 64M x 64 main memory is built using 8M x 32 RAM chips and memory is word addressable.

a) How many RAM chips are necessary? ______

b) How many RAM chips are needed for each memory word? _______

c) How many address bits are needed for each RAM chip? _______

d) How many address bits are needed for all memory? _______

3. A digital computer has a memory unit with 30 bits per word. The instruction set consists of 200 different operations. All instructions have an operation code part (opcode), and an address part (allowing for only one address). Each instruction is stored in one word of memory.

a) How many bits are needed for the opcode?

b) How many bits are left for the address part of the instruction?

c) What is the maximum allowable size for memory?

4. Write the following MARIE assembly language equivalent of the following machine language instructions

a) 0010 0000 1000 1111

b) 1001 1000 1011 0000

c) 0100 0011 0010 0001

d) 0101 0000 0000 0000

5. List the hexadecimal code for the following program.

Hex Address               Label               Instruction

100                                                Load A

101                                                Add One

102                                                Jump S1

103                        S2,                   Add One

104                                                Store A

105                                                Halt

106                        S1,                   Add A

107                                                Jump S2

108                        A,                    HEX 0103

109                        One,                HEX 0001      

Part -2:

1. Show how the value ASCII "MIRIAM" is stored in memory in Big Endian and in Little Endian format starting at location 100 hexadecimal. Assume that each memory location stores two ASCII characters.

Memory Location

Big Endian

Little Endian

100

 

 

101

 

 

102

 

 

2. For X = 1101 0100, show the result of the following independent operations (i.e. each instruction occurs with X starting at the value above:

a) Logical Shift left

b) Rotate right

c) Logical Shift right

d) Rotate left

e) Arithmetic Shift right

3 a. Convert the following formula from postfix (Reverse Polish Notation) to infix: ABCD-+/

3 b.. Convert the following formula from infix to postfix (Reverse Polish Notation): ( A + B) *(C - D) / E + F

4. Write code that performsthe computation in problem 3b X = ( A + B) *(C - D) / E + F

using CPUs that have the following instruction formats:

You may only use registers A through F, plus X and T.

Registers A through F may not be changed, i.e. their values are fixed.

Register T may be used as a temporary register, and Register X must contain the final answer.

4 a. Three-operand instructions

4 b. Stack instructions

5. Suppose we have the instruction Load 100.

Address

Value

           R1

400

100

400

 

:

:

200

300

:

:

300

100

:

:

400

500

:

:

500

800

Assuming R1 is implied in the indexed addressing mode, determine the actual value loaded into the accumulator and fill in the table below:

Mode

Value Loaded into AC

Immediate

 

Direct

 

Indirect

 

Indexed

 

Part -3:

1. Suppose a computer using direct mapped cache has 228 words of main memory and a cache of 512 blocks, where each cache block contains 8 words.
a. How many blocks of main memory are there?
b. What is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, block, and word fields?
c. To which cache block will the memory reference 0081B2316 map?

2. Suppose a computer using fully associative cache has 226 words of main memory and a cache of 64 blocks, where each cache block contains 32 words.
a. How many blocks of main memory are there?
b. What is the format of a memory address as seen by the cache, that is, what are the sizes of the tag and word fields?
c. To which cache block will the memory reference 02C47216 map?

3. Suppose a computer using set associative cache has 224 words of main memory and a cache of 128 blocks, and each cache block contains 16 words.
a. If this cache is 2-way set associative, what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, set, and word fields?
b. If this cache is 4-way set associative, what is the format of a memory address as seen by the cache?

4. Create a page translation table the meets the requirements of the virtual memory system shown below. Assume page (and frame) sizes of 10 with pages 0 through 3 in logical memory and frames 0 through 7 in physical memory.

                      Logical Memory                                      Physical Memory

0

 

9              

A

 

 

 

 

 

 

 

 

0

 

 

 

19

 

 10

 

 

 

 

39 

 

B

 

 

 

 


 

B

 

 

 

 

20

 

 

 

 

49


 40

 


 

 

 

50

 

59

 

 

A

60

 

69

 

 

 

 

 

70

 

 

79

 

5. A computer system with 16K of memory, a Memory Management Unit with a page size of 2000, and the following page translation table (all numbers in hexadecimal):

Logical Address

Physical Start

0000

10000

2000

1F200

4000

2CC00

6000

22400

8000

30300

A000

41600

C000

81E00

E000

3F500


(Note: All additions and subtractions should be done in hexadecimal)

a. Indicate the physical memory locationcorresponding to logicaladdress 2210.

b. Indicate the logical address corresponding to physical memory location 41B55.

Part -4:

1. A 32-bit computer has two selector channels and one multiplexor channel. Each selector channel supports two magnetic disk and two magnetic tape units. The multiplexor channel has two line printers, two card readers, and ten VDT terminals connected to it. Assume the following transfer rates.

            Disk drive                               700 Kbytes/s

            Magnetic tape drive                200 Kbytes

            Line printer                             6.6 Kbytes/s

            Card Reader                            1.2 Kbytes/s

            VDT                                        1 Kbytes/s

Estimate the maximum aggregate I/O transfer rate in this system.

2. Given the following set of events, show which routines the CPU is executing for times 0 to 100 ns. Each handler routine (with its interrupt request) takes 20 ns to complete. The priority of the interrupts ranges from IRQ6 as the highest priority interrupt to IRQ0 as the lowest priority interrupt.

Time

Action

0 ns

Start of main program

10 ns

IRQ2

25 ns

IRQ5

40 ns

IRQ6

50 ns

IRQ1

Time                Action

0 ns:                 Start of Main Program

10     ns:             IRQ2

3. If an address bus needs to be able to address four devices, how many conductors will be required?

What if each of those devices also needs to be able to talk back to the I/O control device?

4. Define the terms seek time, rotational delay, and transfer time. Explain their relationship.

5. Suppose a disk drive has the following characteristics:
• 5 surfaces
• 512 tracks per surface
• 128 sectors per track
• 1024 bytes per sector
• Track-to-track seek time of 12 milliseconds
• Rotational speed of 1500 RPM

a) What is the capacity of the drive?

b) What is the access time?

5. What are the differences between multiprogramming, multiprocessing, and multithreading?

6. a) Why should assembly language be avoided for general application development?

Under what circumstances would you argue in favor of using assembly language code for developing an application program?

b) What are the advantages of using a compiled language over an interpreted one?

7. a) A RISC processor has 152 total registers, with 12 designated as global registers.

The 10 register windows each have 6 input registers and 6 output registers. How many local registers are in each register window set?

b) Indicate whether each of the following applies to CISC or RISC by placing either aC (for CISC) or an R (for RISC) in the blank.
1. ____ Instructions are interpreted by the microprogram.
2. ____ Fixed length, easily decoded instruction format.
3. ____ Highly specialized, infrequently used instructions.
4. ____ Use of overlapping register windows.
5. ____ Relatively few addressing modes.

8. Consider a CPU that implements two parallel fetch-execute pipelines for superscalar processing. Show the performance improvement over scalar pipeline processing and no-pipeline processing, assuming an instruction cycle similar to figure 4.1 in the Section I B of "Advanced Systems Concepts", i.e.:
• a one clock cycle fetch
• a two clock cycle decode
• a two clock cycle execute and a 40 instruction sequence:

Show your work.
No pipelining would require _____ clock cycles:
Scalar pipeline would require _____ clock cycles:
Superscalar pipeline with two parallel units would require ______ clock cycles:

9.a) What is the essential characteristic of the superscalar approach to processor design?

b. What is the difference between the superscalar and superpipelined approaches?

Reference no: EM13854488

Questions Cloud

Create a cover letter based upon the example provided : Create a sample resume for yourself based upon the example provided. Create a cover letter based upon the example provided.
Write a classical argument position paper : Write a classical argument position paper of 750-850 words.
Problem regarding the david entertainment : David's Entertainment is a merchandising business.  Their account balances as of November 30, 2012 (unless otherwise indicated), are as follows:
The financial crisis that rippled through the u.s. economy : As a result of the financial crisis that rippled through the U.S. economy in 2008/2009, bank failure rates soared. The FDIC was able to identify many of the troubled banks, seize them and transfer their assets to healthy institutions successfully.
What is the format of a memory address as seen by the cache : How many bits are needed for the opcode - how many bits are left for the address part of the instruction and What is the format of a memory address as seen by the cache
Defining health and identifying influences on healthcare pol : Defining Health and Identifying Influences on Healthcare Policy In a 500- to 800-word, opinion-based paper, discuss if the definition of health, as identified in 1948 by the World Health Organization
Why we interest in marketing to understand way people learn : Why are we interested in marketing to understand the way people learn? Please provide additional examples (print and video) and explain how they are successful at transferring meaning and repeating messages without being boring?
Problem on the remmers corporation : The following information is available for Remmers Corporation for 2014.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Find companies that specialize in computer forensics

What needs clarified? it's plainly stated use google to find 3 companies that specialize in computer forensics of those 3 companies write 2 or 3 paragraphs comparing what each company does.

  How to implement in rc4

How to implement in RC4

  Create disaster recovery plan with a plan for system

Create Disaster Recovery Plan with a plan for system and network recovery, for a medium sized federal contractor whose main office is located in an area prone to natural disasters.

  Patient care applications

Patient care applications

  A week after the upgrade it is foud out that there are some

while maintaining your companys configuration management it is determined that you need to upgrade your switches. after

  Show the set of positive powers

Let S show the set of positive powers of 3 , i.e. S = {3, 9, 27, 81,...}. Find if S and N(Natural Numbers) are equipotent. Justify your answer.

  What purposes do cpus, memory and i-o devices

What purposes do CPUs, memory and I-O devices individually serve in a computer system

  Peter sold an investment property in sydney and the

1.this assignment is to be submitted in accordance with assessment policy stated in the subject outline and student

  Writing solution for the case

For many years, you have had a computer in your 100 year old plaster-walled 10 foot high ceiling home for all members of the family to use. Recently, however, you added a second computer.

  Select processor or disk for economical view

Similary there is set of disk drives for $7000 which promises two and half times the throughout of your existing disks. Then in economical view whether processor or disk is to select for your computer?

  Create an instance variable credit limit to indicate

Create another sub class CreditCustomer. Create an instance variable credit limit to indicate the maximum limit ($500). Credit customers get a markup of 2% on the order price.

  How a large output impedence effect the behavior op circuit

How would a large OUTPUT impedence effect the behavior of an op amp circuit? please talk about how the large output impedence would effect the circuit.

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