Forum Discussion

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

something about synthesis to FPGA

I have written a SDRAM controller for connect the FPGA and SDRAM, my FPGA is openMSP430 core. I want to put the test program hex fire in the SDRAM, how can I let the openMSP430 core know to read the hex fire in the SDRAM? read the instruction and execute it. What should I do? Thank you for reading this and help.

1 Reply

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

    I suppose your project is on an Altera FPGA and it contains an openMSP430 core. I do not know how to set your microcontroller to boot from a particular address, it may boot from a fixed address or it may be configured at compile time (of the verilog); please refer to the opencores.org site and let us know, it may be useful to others.

    You should instantiate some internal FPGA memory with the Megawizard tool (for example) and configure it to use the hex file. Then compile the fpga project placing the hex file in the project directory. You may need to write some code to relocate the content of the hex file to the SDRAM: it may be easier to write some C code to do it, maybe you can find some VHDL/verilog code to initialise an external memory using the internal one (or write your own).

    Hope it helps.