Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reset Textio input file?

114 views
Skip to first unread message

Balázs Sallay

unread,
Sep 8, 1999, 3:00:00 AM9/8/99
to
Hello everyone,

I would like to know if there is a way to restart reading
from a stimulus file other than restarting the simulation.

I am doing mass fault simulation with the faults injected
by simulator commands. Since the simulated chip
needs no VHDL-level initialization, I could go on without
restart (which takes a lot of time), but I cannot manage
the stimulus file.

Any help appreciated,

Balazs

me...@mench.com

unread,
Sep 8, 1999, 3:00:00 AM9/8/99
to
On Wed, 08 Sep 1999 12:22:29 +0200, Bal?zs Sallay
<sal...@iei.pi.cnr.it> wrote in article
<37D638E5...@iei.pi.cnr.it>:

> I would like to know if there is a way to restart reading from a
> stimulus file other than restarting the simulation.
>
> I am doing mass fault simulation with the faults injected by
> simulator commands. Since the simulated chip needs no VHDL-level
> initialization, I could go on without restart (which takes a lot of
> time), but I cannot manage the stimulus file.

It's unclear whether the stimulus file is read by your VHDL model or
by the simulator.

If the model is reading the file and you're using VHDL'93, you can
close and re-open files. In VHDL'87, it's much harder to do so.

If the simulator is reading your stimulus file, check with your
documentation or the vendor.

Regards,

Paul

--
Paul Menchini | me...@mench.com |"The last thing I want to do is
Cadence Design Systems | www.orcad.com | spread fear, uncertainty and
P.O. Box 71767 | 919-479-1670[v] | doubt in the users' minds."
Durham, NC 27722-1767 | 919-479-1671[f] | --Don Jones, MS's Y2K Product Mgr

vhdl...@my-deja.com

unread,
Sep 8, 1999, 3:00:00 AM9/8/99
to
You need to have the file declaration inside a procedure. You may pass
the string into the procedure. Everytime the procedure is called, the
file is opened. All files declared in the procedure (i.e., in the
declaration section of the procedure) are closed when the procedure
terminates.
-----------------------------------------------------------
-- Ben Cohen, vhdl...@aol.com
-- ** "VHDL Coding Styles and Methodologies, 2nd Edition", Ben Cohen,
-- ISBN 0-7923-8474-1 Kluwer Academic Publishers, 1999
-- ** "VHDL Answers to Frequently Asked Questions, 2nd Edition",
-- Ben Cohen, ISBN 0-7923-8115-7 Kluwer Academic Publishers, 1998
-- Web page: http://members.aol.com/vhdlcohen/vhdl

In article <37D638E5...@iei.pi.cnr.it>,


"Balázs Sallay" <sal...@iei.pi.cnr.it> wrote:
> I would like to know if there is a way to restart reading
> from a stimulus file other than restarting the simulation.
>
> I am doing mass fault simulation with the faults injected
> by simulator commands. Since the simulated chip
> needs no VHDL-level initialization, I could go on without
> restart (which takes a lot of time), but I cannot manage
> the stimulus file.
>

> Any help appreciated,
>
> Balazs
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

0 new messages