wrote:
> #1 trigger
> If trigger='1' THEN
> close (file1);
> open(file2);
> end if;
>
> #2 trigger
> if trigger='1' THEN
> close(file2);
> open(file3);
> end if;
> ...
>
> How can I do that ? Do I have to declare the number of files I want to
> write to and
> how do I handle them?

You open and close based on the file handle, G in your
example above. If you have closed the file handle you
should be able to re-open it with a different file name.

Stim data that doesn't change can be collected
in a vhdl constant structure. This is the
simplest case.
> So does that mean that the variable arrays stand for
> the definition of the different files (which contain
> image data in ppm format) ?

No. See Jim's reply for an answer to your file question.
I am not a fan of using files other than
vhdl packages for verification.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!