Arria 10 EMIF Simulation - Memory Clock Frequency
Hello,
I am attempting to simulate the Arria 10 EMIF with a DDR4 memory model but am running into some issues. I cannot get the EMIF to generate the expected DDR4 clock frequencies.
For example, I have loaded the "Arria 10 GX FPGA Development Kit with DDR4 HILO" preset and selected the corresponding "Target Development Kit" under the "Example Designs" tab. This should generate a 1066.667 MHz memory clock from a recommended 266.667 MHz reference clock. However, in simulation I end up with a 1059.322 MHz memory clock even though the reference clock is the expected 266.667 MHz value. This is causing the vendor's DDR4 memory model to select different timing parameters, which results in memory violations and errors.
I have tried various memory clock frequencies, EMIF configurations, and recommended/non-recommended reference clock frequencies without luck. It seems like whatever I try always generates a memory clock that does not have the expected frequency. It is close, but never the exact frequency.
The EMIF does assert its 'local_cal_success' signal indicating that it is calibrating properly.
Perhaps I am not configuring the IP properly on my end or I have a misunderstanding? Is there a reason that the EMIF's PLL is not creating the expected memory clock frequency?
The EMIF is being generated via Platform Designer in Quartus Prime Standard 21.1.1.
Hello,
The configuration for the related clock is set in the IP file.
You need to change certain value to get the desired clock.
You can look into file path "emif_0_example_design\sim\ed_sim\altera_emif_211\sim\ed_sim_altera_emif_211_*".
And then go to line 1451-1455, where are the value:
- PLL_SIM_VCO_FREQ_PS (944)
- PLL_SIM_PHYCLK_0_FREQ_PS (1888)
- PLL_SIM_PHYCLK_1_FREQ_PS (3776)
- PLL_SIM_PHYCLK_FB_FREQ_PS (3776)
- PLL_SIM_PHY_CLK_VCO_PHASE_PS (118)
Change the value to :
- PLL_SIM_VCO_FREQ_PS (938)
- PLL_SIM_PHYCLK_0_FREQ_PS (1876)
- PLL_SIM_PHYCLK_1_FREQ_PS (3752)
- PLL_SIM_PHYCLK_FB_FREQ_PS (3752)
- PLL_SIM_PHY_CLK_VCO_PHASE_PS (117)
Regards,
Adzim