Forum Discussion
About the FPGA
I need to make my FPGA automatically to read the .hex fire (which is a test program) when I synthesis my CPU core (openMSP430) to the FPGA. Where should I put this hex fire ,in the FLASH or SDRAM, and how to realise the automatically reading? My FPGA board is DE0. Thank you!
11 Replies
- Altera_Forum
Honored Contributor
Use on-chip storage and arranged the hex as initialization file.
- Altera_Forum
Honored Contributor
If I still want to use SDRAM or FLASH as memory, can some tell me how to change the OpenMSP430 code to connet the memory and CPU core? create another fire as top fire which contain the control signal of the memory (SDRAM and FALSH) and also the openMSP430 top level?
- Altera_Forum
Honored Contributor
FPGAs require well regulated voltages. You shouldn't put any resistor between the regulator and the FPGA...
Yes, you need a SRAM in the FPGA. You need to take a look into the OpenMSP430code to see how to initialize the memories. - Altera_Forum
Honored Contributor
I have remove the REG5 which is adapt the voltage from 3.3V to 1.2, and insert a resistor between the REG5 1.2V output and the CPU core. err.. what does "put the hex fire on-chip memory" mean? Does it mean generage a sram in FPGA just like pll? Thany you.
- Altera_Forum
Honored Contributor
Err.. where have you inserted that resistor??
Anyway, the program and data memories in the OpenMSP430 really need to be on chip. Making it use an external ram would require a massive re-design of the core. - Altera_Forum
Honored Contributor
I have done some example of using FPGA, just like configure a counter to FPGA.
- Altera_Forum
Honored Contributor
Since You're new in this field, blink a LED first, because You are not ready to start such project. Not even close.
- Altera_Forum
Honored Contributor
Can I use Control Panel to upload hex fire to SDRAM or FLASH? But even I have uoload the hex fire. I still need do some work to make the CPU can automatically read the hex fire, right? I am a newer of FPGA. I will use Powerplay analysize and voltage scope two methods to measure the power of CPU core. I have insert a resistor in the power supply of the CPU core. As my project is to "Investigate the effect on energy consumption of instruction set reductions in the OpenMSP430". So I need to measure the power accurately.
- Altera_Forum
Honored Contributor
You can use flash, but I am not sure how will You upload hex to it. Don't expect the power of FPGA to be even comparable to MSP430... Also use Power estimator utility, so You'll have a set point about measurements.
- Altera_Forum
Honored Contributor
Thank you for your reply. use on_chip memory will increase the power of the CPU core, right? As I need to measure the power of openMSP430 core only and accuratly, is it better to use the SDRAM or FLASH on the board? But I don't know how to realsize it.