Opening two files

B

Brad Smallridge

Guest
Modelsim question

Can I open the same input file, twice, simulataneously, for
reading? I have an application where a BMP image
drives the simulation, and the output should be compared
to the same BMP, somewhat delayed.

b r a d @ a i v i s i o n . c o m
 
Brad Smallridge wrote:

Modelsim question

Can I open the same input file, twice, simulataneously, for
reading? I have an application where a BMP image
drives the simulation, and the output should be compared
to the same BMP, somewhat delayed.
Another usual and general solution is to use a behavioral FIFO to compensate for the
latency in the UUT. You stack incoming data and unstack them when data come outs from
the UUT. (and apply the behavioral transformation in between).
But you should be able to open the file in read mode twice.

Bert
 
Hi Brad,

There is no need to open the same file twice. You read the file
through access variable, So you can have two acess variables pointing
to the same file..

If it is confusing then make a copy of the same file with a different
name and work with it.

-- Mohammed A Khader.


Brad Smallridge wrote:
Modelsim question

Can I open the same input file, twice, simulataneously, for
reading? I have an application where a BMP image
drives the simulation, and the output should be compared
to the same BMP, somewhat delayed.

b r a d @ a i v i s i o n . c o m
 

Welcome to EDABoard.com

Sponsor

Back
Top