Forum Discussion

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

Updating Look-Up Table with .mif or .hex file

Hi,

I am implementing a Look-up Table that would require being updated from either a .mif or .hex file generated from MATLAB. I am thinking of using a two-port RAM block, where one port could be used to update the LUT entirely and the other port for normal operations.

My concerns are as follows:

- is it possible to update the LUT by feeding an updated .mif file (is there any way of getting the RAM to re-read the .mif file for new values) without re-compiling the design?

- is there an option to implement a LUT with two columns, where the input to the LUT would search for itself (the input value) in column 1 and output the corresponding value from column 2?

Your help and guidance will be highly appreciated :).

8 Replies

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

    When you create a supported ram in megawizard, quartus gives you the option of using that tool (in system mem editor) so tick the box. Then after compilation and download open the editor from tool's menu and navigate to your mif/hex file... The tool updates ram via jtag. very simple.

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

    Kaz, could you please give details on "using in system memory editor to update the data"?

    Thank you.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You also can use in system memory editor to update your data

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

    when you run the process in the GUI it will show the command in the Messages window. you can put that into a script

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

    Thank you very much for this.

    But this is something you do manually at your convenience right. Is there a way to automate the updating process at regular intervals?

    Thanks.