Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

memory initialization file

Altera_Forum
Honored Contributor II
2,413 Views

using quartus megawizard lpm module i created dual port ram and i m able to read the data present in a *.mif file but after reading the data i want to update with new data in the *.mif file so what to do .any one plz explain or plz tell me the step if it is possible.

0 Kudos
11 Replies
Altera_Forum
Honored Contributor II
1,632 Views

 

--- Quote Start ---  

after reading the data i want to update with new data in the *.mif file 

--- Quote End ---  

 

Update what and when? In a new design compilation? At runtime? And from which data source?
0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

thank 4 ur reply 

plz explain more
0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

 

--- Quote Start ---  

thank 4 ur reply 

plz explain more 

--- Quote End ---  

 

 

I dont think you understand.... FvM was asking you questions, he wasnt explaining.
0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

Yes. Unfortunately, I understood neither from this post nor your newer crosspost (sounding different in some nuances) what you exactly want to achieve. Apparently, I'm not the only one. I don't want to start wild guesses, which typical RAM/mif-file application may be intended.

0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

i have a dual port ram and text.mif file,i want to write some new data in the text.mif file while compilation.

0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

just tell me how to write data in the *.mif file for each clock cycle. 

 

 

--- Quote Start ---  

Update what and when? In a new design compilation? At runtime? And from which data source? 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

I don't see the point in modifying the contents *while* compiling, and your answers# 6 and# 7 clearly contradict themselves. I don't know if anyone understands what you want to do...

0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

how can i change the content of *.mif file 

 

 

--- Quote Start ---  

I don't see the point in modifying the contents *while* compiling, and your answers# 6 and# 7 clearly contradict themselves. I don't know if anyone understands what you want to do... 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

Hopefully guessing right about your intention, I see tow basic methods to generate table data respectively a ROM content: 

 

- generating a *.mif or *.hex file by an additional tool, e.g. MS Excel, MATLAB/Octave, a tcl script, a user written C program 

 

- generating the data by compile time VHDL or Verilog calculations. An example related to a sine LUT has been e.g. given in this thread http://www.alteraforum.com/forum/showthread.php?t=1902
0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

Hello 

 

Are you looking to edit the memory contents at runtime? ( the .mif file is just used to hold the contents for compilation and the file itself is not uploaded to the chip 'as-is' ) 

 

If you are trying to edit the contents of the ram at runtime, check option "Allow In-System Content Editor ..." from the megafunctions wizard. 

After programming your chip, use the In-System Content Editor to edit memory at runtime (Quartus II -> Tools -> In-system... ) 

 

@FvM QuartusII seems to have a pretty neat and simple mif/hex-file editor, accessable from New/Open-file dialogs..
0 Kudos
Altera_Forum
Honored Contributor II
1,632 Views

thanks for ur response

0 Kudos
Reply