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

External value (one hex value) as input into Quartus project

Altera_Forum
Honored Contributor II
1,435 Views

Hi, 

 

I generate a constant value from MATLAB and need to take it as an input into a multiplier in my Quartus design. And this value would be updated time to time.  

 

I know Quartus has capabilities of storing many values in either a mif or a hex file, which are updated as the files are updated externally. 

 

But in this case it is only one constant value (a hexadecimal value). What are the ways I can go about taking this constant as an input into the Quartus design? 

 

Appreciate your guidance and help.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
625 Views

How do you want to load the data to the FPGA and when? At configuration- or runtime? Which interfaces do you consider?

0 Kudos
Altera_Forum
Honored Contributor II
625 Views

The data should be loaded during runtime (just like how a mif file is loaded when it gets updated after compilation).  

 

The load should be done on the rising clock edge, but the interval of the data load, that is reloading the data, is not fixed. It actually depends on another mif file (in a RAM) in the design; so the data load should be done every time the other mif file is updated.
0 Kudos
Reply