Forum Discussion

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

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

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.

2 Replies

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

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

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

    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.