07-02-2010 03:03 AM
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 ?
07-02-2010 10:49 PM
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
07-06-2010 12:31 PM
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 !
07-15-2010 08:26 PM
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.