Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20754 Discussions

VHDL code to perform a write to DDR4

nelky
Beginner
559 Views

Hi,

Good day to you.

I need to write a VHDL code to perform a write to DDR4 in Agilex 7.  I know that I need to bring up the EMIF IP for use.  But within the VHDL code itself, how to call out the EMIF to ask it to perform a write operation?

 

I tried to create a project in Quartus Prime Pro (with license), with HPS with EMIF.  Through Platform Designer, I can save and generate.  Then at the Quartus side, I can see the generated VHDL code.  I can also do all the pin assignments with all the pins.  I can also successfully compile my code and see an .sof file created in the output folder. 

But, how can I perform a write to the DDR4 in the generated VHDL code?  Do you know where I can find the sample code?

 

Hope to hear from you soon.

 

Regards

0 Kudos
3 Replies
nelky
Beginner
500 Views

Hi,

To add on to my previous query, I created a standalone EMIF project also.  

I saw that it generated these 3 files,

ed_synth_emif_fm_0.vhd

ed_synth_emif_cal.vhd

ed_synth_inst.vhd

 

Can someone please show me how to use either all these files or any one of these files to perform a write / read operation to DDR4?

 

Regards,

0 Kudos
AdzimZM_Intel
Employee
486 Views

Hello,


Thank you for submitting your question in Intel Community.

I'm Adzim, application engineer will assist you in this case.


You need a module that can communicate with the memory controller (EMIF IP) to act as a driver or traffic generator.

This driver should provide the required signal to memory controller in order to perform the memory transaction.

You may refer to Avalon Interface Specifications that provide some details about the avalon transfer: https://www.intel.com/content/www/us/en/docs/programmable/683091/22-3/transfers.html


You also can refer to EMIF example design that can be generated from Quartus.

You can refer to the link below on how to create an EMIF example design.

https://www.intel.com/content/www/us/en/docs/programmable/683162/23-1-2-7-0/design-example-quick-start-guide-for.html


Regards,

Adzim



0 Kudos
AdzimZM_Intel
Employee
338 Views

As we do not receive any response from you on the previous reply that we have provided, I now transition this thread to community support. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


0 Kudos
Reply