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

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

Altera_Forum
Honored Contributor II
1,811 Views

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 :).
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
802 Views

no need to multipost. did you take a look in the help? 

 

http://quartushelp.altera.com/current/mergedprojects/design/med/med_com_update_mif.htm
0 Kudos
Altera_Forum
Honored Contributor II
802 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
802 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
802 Views

Thank you.:)

0 Kudos
Altera_Forum
Honored Contributor II
802 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
802 Views

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

 

Thank you.
0 Kudos
Altera_Forum
Honored Contributor II
802 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
802 Views

Thank you, I'll try it out.

0 Kudos
Reply