in CO and Architecture retagged by
167 views
0 votes
0 votes
1. Effective address(Address of instruction or operand ) is virtual address or physical address?

2. While solving problems is OS we say CPU generates virtual address and while is CO we say CPU generates physical address.But what does CPU actually generates? I think CPU always generates Virtual adress,but not sure.
in CO and Architecture retagged by
167 views

2 Comments

CPU generates virtual address, always
1
1
Effective Address = Physical Address.

CPU always generates Virtual Address which will be converted Physical address by MMU.
0
0

1 Answer

1 vote
1 vote
Best answer

actually .....CPU is boss.....so he will always say things like give me 1st page of process...then 2nd one then so on....

for next process/task CPU says same ...that is give 1st instruction...2nd and 3rd so on....so CPU always generate a virtual address...

When you see effective address ...its actual address of chip/place of RAM where the instruction actually resides....

we have a memory management unit. which will map that virtual address into physical address..best example is you can see paging..in OS , where CPU gives a virtual address say 1 but actually that 1st instruction may reside on any space present in RAM as per availability.....hence MMU convert virtual address into physical one...and then provides data to CPU..

SO CPU = ALWAYS VIRTUAL ADDRESS....

EFFECTIVE ADDRESS="ACTUAL PHYSICAL LOCATION OF INSTRUCTION / DATA"..

selected by

Related questions