FPGARelated.com
Forums

What should I do with std.textio.all of ModelSim

Started by Weng Tianxiang ●October 24, 2006
"Weng Tianxiang" <wtxwtx@gmail.com> wrote in message 
news:1161885433.411222.205690@m73g2000cwd.googlegroups.com...
> > Hi Mike, > It has nothing to do with compile order.
Based on what I've seen on this thread it appears to me that it probably does have to do with the compile order.
> My son is not an vhdl writer, > but knows many thing unregular. He just happend to get the thing done > right, many times I asked for his help and he got things done. > > I tried following several options without success: > 1. Put textio.vhd in the project top position; > 2. Compile all by clicking manu icon; > 3. Compile by clicking manu icon with textio.vhd selected; > > My son put textio.vhd at the last position in project file list, select > textio.vhd, then clicked manu compile/compile-selected and compiled > textio.vhd only. After that he compiled all files and succeeded. > > If the compile position is concerned, his position is wrong, because > textio.vhd would be called before all files, but he did it.
My earlier suggestion was a band-aid since it appeared that 'something' had recreated textio for you and done so using the wrong style ('87). The problem though seems to have to do with the 'bram64_512' module that is in your current project since earlier in the thread you said that after deleting the textio from the library it reappeared after compiling 'bram64_512'. This would imply that 'bram64_512' is creating it's own version of the textio package that is at the root of what you're fighting. The problem that you need to hunt down is what exactly what source file(s) in your project is(are) creating textio (and why?) and then why is it compiling it '87 syntax. The way to attack that is to clean textio out of the library and then compile each file in your project one at a time. Do this for each since for all you know textio might be in more than one of your source files. The other way would be to do a text search through each source file and find where the package is being created....but if the project list is relatively short, clicking to compile and then looking at the library result works too. KJ
KJ wrote:

> The problem though seems to have to do with the 'bram64_512' module that is > in your current project since earlier in the thread you said that after > deleting the textio from the library it reappeared after compiling > 'bram64_512'. This would imply that 'bram64_512' is creating it's own > version of the textio package that is at the root of what you're fighting.
I have just added an item to my list of advantages to inferring block ram from a code template :) -- Mike Treseler
KJ wrote:
> "Weng Tianxiang" <wtxwtx@gmail.com> wrote in message > news:1161885433.411222.205690@m73g2000cwd.googlegroups.com... > > > > Hi Mike, > > It has nothing to do with compile order. > Based on what I've seen on this thread it appears to me that it probably > does have to do with the compile order. > > > My son is not an vhdl writer, > > but knows many thing unregular. He just happend to get the thing done > > right, many times I asked for his help and he got things done. > > > > I tried following several options without success: > > 1. Put textio.vhd in the project top position; > > 2. Compile all by clicking manu icon; > > 3. Compile by clicking manu icon with textio.vhd selected; > > > > My son put textio.vhd at the last position in project file list, select > > textio.vhd, then clicked manu compile/compile-selected and compiled > > textio.vhd only. After that he compiled all files and succeeded. > > > > If the compile position is concerned, his position is wrong, because > > textio.vhd would be called before all files, but he did it. > > My earlier suggestion was a band-aid since it appeared that 'something' had > recreated textio for you and done so using the wrong style ('87). > > The problem though seems to have to do with the 'bram64_512' module that is > in your current project since earlier in the thread you said that after > deleting the textio from the library it reappeared after compiling > 'bram64_512'. This would imply that 'bram64_512' is creating it's own > version of the textio package that is at the root of what you're fighting. > > The problem that you need to hunt down is what exactly what source file(s) > in your project is(are) creating textio (and why?) and then why is it > compiling it '87 syntax. The way to attack that is to clean textio out of > the library and then compile each file in your project one at a time. Do > this for each since for all you know textio might be in more than one of > your source files. The other way would be to do a text search through each > source file and find where the package is being created....but if the > project list is relatively short, clicking to compile and then looking at > the library result works too. > > KJ
Hi KJ, I have two files written by myself containing textio.vhd file. All other blocks, like bram64_512 module, are generated by Xilinx CoreGenerator and their vhdl files don't contain explicitly 'std.textio.all;' When I first changed my two files to include write() and writeline() functions, everything went well. Suddenly one day textio.vhd problem burst from blue. Your suggestion is of valuable. My son finished the last touch to finish the job. Thank you. Weng
Mike Treseler wrote:
> KJ wrote: > > > The problem though seems to have to do with the 'bram64_512' module that is > > in your current project since earlier in the thread you said that after > > deleting the textio from the library it reappeared after compiling > > 'bram64_512'. This would imply that 'bram64_512' is creating it's own > > version of the textio package that is at the root of what you're fighting. > > I have just added an item to my list of > advantages to inferring block ram from a > code template :) > > -- Mike Treseler
Hi Mike, How do you infer a block ram? I would like to learn the technique. Thank you. Weng