Question

Explain how an address generated by a program (such as by a load word instruction) converted...

Explain how an address generated by a program (such as by a load word instruction) converted to a virtual memory address. You should describe the process and show how this process is sped up

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

Memory consists of large array of words or arrays, each of which has address associated with it. Now the work of CPU is to fetch instructions from the memory based program counter. Now further these instruction may cause loading or storing to specific memory address.

Address binding is the process of mapping from one address space to another address space. Logical address is address generated by CPU during execution whereas Physical Address refers to location in memory unit(the one that is loaded into memory).

The run time mapping between Virtual address and Physical Address is done by hardware device known as MMU.

In memory management, Operating System will handle the processes and moves the processes between disk and memory for execution . It keeps the track of available and used memory.

Instruction-execution cycle Follows steps:

  1. First instruction is fetched from memory e.g. ADD A,B
  2. Then these instructions are decoded i.e., Addition of A and B
  3. And further loading or storing at some particular memory location takes place.

As main memory and registers are built into processor and CPU can access these only.So every instructions should be written in direct access storage
devices.

  1. If CPU access instruction from register then it can be done in one CPU clock cycle as registers are built into CPU.
  2. If instruction resides in main memory then it will be accessed via memory bus that will take lot of time. So remedy to this add fast memory in between CPU and main memory i.e. adding cache for transaction.
  3. Now we should insure that process resides in legal address.
  4. Legal address consists of base register(holds smallest physical address) and limit register(size of range).

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Explain how an address generated by a program (such as by a load word instruction) converted...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem 5 (15pts): Describe what the following program is doing (Do not need to explain each line of instruction....

    Problem 5 (15pts): Describe what the following program is doing (Do not need to explain each line of instruction. Just show me the purpose of this code). .equ LEDS, Ox100000 10 # define LEDS Ox10000010 .text global start #base address of LEDS on DEO-Nano start: movia r2, LEDS movi r3, 0b00000001 movi r4, OX7FFF slli r4, r4, 3 add r4, r4, r4 load: movi r5, 0b10000000 loop: stw rs, o(r2) mov r6, ro count: addi r6, r6, 1 bne r6,...

  • Explain what the following program does. How many times is the bne instruction executed? Assuming that...

    Explain what the following program does. How many times is the bne instruction executed? Assuming that the addi instruction is at address 4000 (decimal), show the addresses of all the instructions. Show the machine language representation of the j L2 instruction (machine language means showing the 32 bits that represent the instruction, but here it is sufficient to type of the instruction, the fields of the instruction and the value of each field decimal).

  • A short program loop goes through a 16 kB array one word at a time, reads...

    A short program loop goes through a 16 kB array one word at a time, reads a number from the array, adds a random number, and stores the result in the corresponding entry in another array that is located in the memory immediately following the first array. An outer loop repeats the above operation 100 times. The 64-bit processor, operating at a clock frequency of 4 GHz, is pipelined, has 48 address lines, three levels of caches with a 64...

  • Please answer the list questions above with explanation. Thank you LOAD-STORE PROGRAM EXAMPLE Write an Assembly...

    Please answer the list questions above with explanation. Thank you LOAD-STORE PROGRAM EXAMPLE Write an Assembly program to add two 8-bit numbers. C A+B lds r16, A lds rl7, B : 1. Load variables add E16, :172 Do something 2. Do something sts C, r16 : 3. Store answer Identify the operation, source operand, destination operand in the first Data Transfer insiruction. Identify the source/destination operand in the Arithmetic and Logic (ALU) instruction. .What addressing mode is used by the...

  • 4. Assemble the following instruction sequence into the memory starting at address CS: 100 and th...

    please provide screenshots using dos debug. 4. Assemble the following instruction sequence into the memory starting at address CS: 100 and then verify their machine code in the memory. a. ADD AX, 00FFH b. ADC SI, AX c. INC BYTE PTR [0100H] d. SUB DL, BL e. SBB DL, [0200H] f. DEC BYTE PTR [DI+BX] g. NEG BYTE PTR [DIJ+0010H h. MUL DX i. IMUL WORD PTR [BX+SI] j. DIV WORD PTR [SI]+0030H k. IDIV WORD PTR [BX]ISI]+0030HS. How many...

  • explain and comment out your answer 43. How many address lines are required to address a...

    explain and comment out your answer 43. How many address lines are required to address a 1M × 8 main memory if the memory is byte-addressable? a. 19 address lines b. 18 address lines c. 20 address lines d. 17 address lines 44. How many address lines are required to address a 1M × 8 main memory if the memory is word-addressable and each word consists of 8 bytes? a. 20 address lines b. 17 address lines c. 19 address...

  • Write a program using the LOOP instruction to sum all the even numbers from 20H to...

    Write a program using the LOOP instruction to sum all the even numbers from 20H to 80H. Write a program using the ADC (or add with carry) instruction to add these two 48 bit numbers. Assume the first number is store at an address starting 400H and that the second number is stored at an address starting at address 500H. Store the results in memory starting at address 600H. (Note that each number consists of three 16 bit words). Show...

  • Various computers and operating systems in the past have used separate instruction and data spaces, allowing...

    Various computers and operating systems in the past have used separate instruction and data spaces, allowing up to 2k program addresses and also 2k data addresses using a k-bit address. For example, for k=32, a program could access 4GB of instructions and also 4GB of data, for a total address space of 8GB. Using a scheme like this it is impossible for a program to overwrite itself. How could the operating system load programs into memory?

  • page tables for large processes can easily take up a large amount of physical memory. one,...

    page tables for large processes can easily take up a large amount of physical memory. one, proposed, solution to this problem is to use a multilevel page map table and put some portions in virtual memory. Explain how you would implement that. In your answer, please, specifically, discuss how a virtual address would be converted to a physical address.

  • Please show working. Thanks What should be the value at memory X3012 if the following program is executed (based on the initial memory status)? Program ORIG x3000 The first instruction is at x3000 LD...

    Please show working. Thanks What should be the value at memory X3012 if the following program is executed (based on the initial memory status)? Program ORIG x3000 The first instruction is at x3000 LD R1, #2 LD R2,#0 ST R1, #15 ST R2,#15 Initial Memory Status: Address: Content x3000: x2202 x3001: x2400 x3002: x320F x3003: x340F Starting from x3004, all of them are x0000 Select one a. x0000 b. x320F x340F d. x2202 e. X2400 What should be the value...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT