cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
4,299 Views
Registered: ‎04-26-2010

example of DDR2

I have established a system with DDR2 in the project EDK (ML555) ?

But I can't find an example to test it with microblaze.

Is there any simple example ?

 

0 Kudos
3 Replies
joshual
Xilinx Employee
Xilinx Employee
4,286 Views
Registered: ‎08-01-2007

are you using MPMC? There is a testapp_memory application genereated to help you do basic test.

And there is also full memory test in the mpmc driver example

0 Kudos
4,251 Views
Registered: ‎04-06-2010

Yes, I am using MPMC. I want to communicate the microblaze with the DDR2 controller. I have already done the configuration and initialization with functions XMpmc_LookupConfig() and XMpmc_CfgInitialize().

But I don't know exactly how to ready and write the DDR2 ?

My DDR2 is in the ML555. It's 32M x 64 bit. The address is between 90000000 to 9FFFFFFF 

 

With functions offered  XMpmc_mReadReg(BaseAddress, RegOffset), and XMpmc_mWriteReg(BaseAddress, RegOffset, Data).

 

So the BaseAddress is 90000000. But I don't know the value of the RegOffset.There are many macros of Register Offset defined in the file xmpmc_hw.h  But I don't know which one to choose. If I want to write to the DDR2.

 

Another question is about the Data in the function XMpmc_mWriteReg(). In the definition, Data is u32. But the DDR2 in ML555 is 32M x 64bit. It will cause a problem or not ? (u32 in 64 bits).

 

Thanks a lot ! 

0 Kudos
joshual
Xilinx Employee
Xilinx Employee
4,207 Views
Registered: ‎08-01-2007

You can refer to MPMC static phy calbarition example code for the funciton usage.

and for the data format, it's fine, EDK system will handle all the format.

0 Kudos