Re: How does a processor generate an address?
- From: "Lanarcam" <lanarcam1@xxxxxxxx>
- Date: 27 Sep 2005 13:19:04 -0700
Mary wrote:
> First of all, thank you very much for your reply. Your explantion about
> the illusion of a larger memory was very helpful. I definitely haven't
> got my fundamentals right.
>
> You mentioned "the memory address presented on the address bus by the
> processor". Where does that memory address come from?
>
> Also is the following assumption correct? There is VM and Physical
> memory. And as fas as I understand, these are located at different
> addresses, and are independent of eachother. A program only runs from
> Physical memory.
>
> Say for example, you have Physical memory starting at address
> 0x8000_0000 (512MB of it), ending at 0x9FFF_FFFF. Then there is VM
> starting at 0xA000_0000 ending at 0xBFFF_FFFF. If I have a program and
> I make it start at 0x8000_0000, I still don't see how the processor
> generates any virtual address.
The virtual address is really virtual it does not map
to a real address space, at least not directly.
The virtual adress space can be considered as being made of
pages of say 4Ko. From the processor perspective it is contiguous,
but in reality each page of the virtual memory is translated
into a physical page and the physical pages are not necessarily
contiguous nor residing in main memory at a given time.
The virtual address space of a process can go from 0 up to
4 Go, but the physical address is generally less than that.
Adresses are translated when needed upon access from the
processor.
The processor presents on its memory bus the virtual address
and the MMU as described in another post translates this
address into a physical address that is presented on the
bus used to physically access the memory device.
.
- References:
- How does a processor generate an address?
- From: Mary
- Re: How does a processor generate an address?
- From: Lanarcam
- Re: How does a processor generate an address?
- From: Mary
- How does a processor generate an address?
- Prev by Date: Re: JTAG debuggers - a couple of questions
- Next by Date: Re: How does a processor generate an address?
- Previous by thread: Re: How does a processor generate an address?
- Next by thread: Re: How does a processor generate an address?
- Index(es):
Relevant Pages
|