Re: Memory map?



Fizzy wrote:

Hi,

What is memory mapping.

Memory mapping is the design practice of making something look like memory (RAM, to be precise) to a processor. You design your hardware so a write to a particular memory location causes a write to the peripheral in question, and a read from the memory location causes a read from the peripheral.

If i memory mapped registers in my pheipheral,.
The value written to them is teh value written to memory or it will be
written on physical registers in Pheripheral.

You don't actually have memory at the peripheral location. Just the peripheral.

Exactly what the peripheral does with a read or write command is up to the peripheral, but writes almost always go to a register (possibly short-lived if it's a transmit buffer in a communications interface like a UART).

Let me explain you cauz i
know my description is bit confusing.....

I have FPGA with a processor. Now i want to connect this processor with
Custom IP (on FPGA) using Processor Local Bus. I know custom IP has
bunch of registers which will recive the data and send the data. These
register i will create and to my understanding they are in pheripheral.
My question is ......

Are these registers really physically there or they are just the map.
SO when Processor will want to write to one of them it will write to
the memory and Pheripheral will knwo something is written to it?

I general, yes the registers are physically there. The processor will write to what it thinks is memory, the peripheral will get the message.


--

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

Posting from Google? See http://cfaj.freeshell.org/google/
.



Relevant Pages

  • Re: ICFP Contest
    ... This the BALANCE machine puzzle concocted by Y. Yang. ... Each of the source and destination registers is an indirect register. ... stored in the memory location indicated by the current contents of D. ... industry's leading programmer certification programs. ...
    (comp.lang.forth)
  • Re: ICFP Contest
    ... This the BALANCE machine puzzle concocted by Y. Yang. ... Each of the source and destination registers is an indirect register. ... stored in the memory location indicated by the current contents of D. ... industry's leading programmer certification programs. ...
    (comp.lang.forth)
  • Re: Zero operand CPUs
    ... the stack in on-chip RAM, ... the oldest part of it to main memory, ... based on how many cells are cached in registers. ... do to simplify the design to reduce cost and power use and increase ...
    (comp.arch.embedded)
  • Re: Nibz processor @ <570 MAXII LEs (16 bit generic specified), 20MHz
    ... address machine with only memory operands. ... But it is just trading off FF based registers and LUT logic for memory ... You have two operands and one result but there is only one data ... for a serial design becomes much more complex. ...
    (comp.arch.fpga)
  • Re: Nibz processor @ <570 MAXII LEs (16 bit generic specified), 20MHz
    ... can be stored in memory rather than FFs. ... address machine with only memory operands. ... registers to temporary hold one of the operands and an address ... for a serial design becomes much more complex. ...
    (comp.arch.fpga)