03-05-2009 12:12 PM
03-05-2009 06:56 PM
ISim currently works best if using the file_open function to read a file. For example:
file_open(input_file, "source.bmp", read_mode);
The input file needs some header information prior to reading it. To obtain this header information, first write out a binary file from ISIM. Then copy the header information generated by ISIM from the new binary file into the binary file you'd like to read in.
Efforts are being conducted to improve read/write file operations. We apologize for the inconvenience.
03-06-2009 08:08 AM
03-06-2009 09:54 AM
What is ISim? Please start from ISE10.1 and tell me the steps to read a test vector. I am attaching the test bench verilog code (which worked with modelsim)
You said, "Now I have 900 point test vector I want to use it to simulate a design in ISE." So edv assumed that you wanted to use the ISE Simulator, ISIM.
03-06-2009 11:16 AM
03-06-2009 04:50 PM
Yes I want to use ISE simulator, as I said I wrote a verilog test bench and I got a message that $readmemd is not supported, my question was how to read a text test vector using ISE simulator. I cannot enter 900 values in waveform tb and visually inspect the output. The instructions from edv, while I appreciate the input, were totally unintelligible.
His reply made perfect sense.
Your question did not.
03-09-2009 10:00 AM
If you don't have anything helpful to say, please stay out of this thread.
It is not for you to tell other users whether they should participate in any thread.
Good luck, you need it,
03-12-2009 05:36 PM
We worked through a WebCase to resolve the issue. There were a few problems with cap_1952's approach:
1) ISim only supports $readmemh and $readmemb for Verilog file input tasks. cap_1952 was using a different readmem function.
2) He experienced issues writing out to a file via $fwrite verilog task. The problem was due to an if conditional never being true and thus the function was never called. Following modifications to his test bench, the simulation can now write to an output file.