Altera_Forum
Honored Contributor
18 years agoNiosII and DDR2 simulation issue
Issue:
If the reset location for Nios II is set to the beginning of DDR2(7.2) memory, simulation will fail with some of the Nios signals going unknown. Why: During simulation the code for the Nios is automatically loaded into the DDR2 memory model at time = 0us. Then after 200us the DDR2 memory controller starts a training sequence which reads and writes to the first 16 bytes of the DDR2 memory erasing the original contents. Solution: In the SOPC Builder offset the reset vector ( in the Nios II component instance) by at least 0x10 and the exception vector should be 0x20 greater then that. This will insure that code is not loaded in the first 16 bytes. Note: The training sequence takes about 105us. So the system will stall for the first 305us while the memory controller initializes.