Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

New in DMA: How to configure DMA using VHDL?

Hello, I am a beginner in DMA and VHDL. I know that before we can run the C code in Nios II IDE, we have to do some coding or configuration for the hardware (connection and porting) in Quartus II. After we compile and send the code to the board using Programmer, we can run the C code in Nios II IDE. My problem is, I dont know how to configure the connection/porting for DMA in Quartus II using VHDL. May I know where to look for information and maybe someone can help me out? Besides, is it correct to refer that part as configuration of hardware? I am not sure, that's why it's hard for me to do the surfing. Thanks!

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Are you using SOPC builder? Then it's just a matter of connecting the masters to the correct slaves, no need for any VHDL code.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    yes, i am using SOPC Builder. but i have to create the top level entity VHDL for the system. I dont know how to create the top level entity VHDL.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Your top level file must define as ports all the FPGA pins that you want to use, contain the declaration for the SOPC component, and instantiate the SOPC component.

    Any VHDL book should explain how to instantiate components. For the component declaration, have a look in your project. If your SOPC component is called my_cpu, then SOPC will generate a my_cpu_inst.vhd file that contains the SOPC component declaration.