Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- How do you write the .mif file (http://quartushelp.altera.com/13.0/master.htm#mergedprojects/reference/glossary/def_mif.htm?gsa_pos=1&wt.oss_r=1&wt.oss=memory%20initialization%20file%20in%20system%20memory%20content%20editor) : how do you know at which address correspond to my "const_l2" ? I found in "compilation report > analysis and synthesis > Debug settings summary > in system memory content editor settings summary" the "instance index of my "const_L2". Do I Have to calculate the address by adding width*depth of precedent instances ? --- Quote End --- I'm not sure I understand your question. Each .mif file with the edit option set will create a separate instance for the memory content editor. So when you change a value in the content editor, you can change the same value at the same place in the .mif file. No need to take into account the sizes of the other instances. --- Quote Start --- Thanks for showing various options. I am just wondering, can't we make some.tcl file which will compile only these two files. I would prefer if I could control the timing of this partial compilation with MATLAB when I can put these command in a loop. did you ever tried anything like it? Thanks --- Quote End --- I've never tried something like that. In fact I don't trust Quartus' smart compilation feature and always do a full recompile, even for a minor change. I've had too many bugs with partial recompilations, so I'm not the right person to ask ;) I just know from personal experience on the projects I worked on that if you use the "Update Memory Initialization File" option in Quartus and run the assembler, sometimes it works and sometimes (or most often) it doesn't. I don't really know the reason why.