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

QuickVHDL Question

0 views
Skip to first unread message

cyc

unread,
Jul 3, 1996, 3:00:00 AM7/3/96
to

Question:

If you want to do a bunch of batch simulations of a QuickVHDL design
but want to change a generic of a specific component (not all
instantiations of a component) for each simulation run, how do
you do it without recompiling the design?

Granted, one can use the change command interactively, but that only
works when the component is in the active region of the simulation
and only when the simulation is done _interactively_.

Thanks!

-Charles
ch...@Virginia.EDU

--
--
"Got to Revolution! Got to Revolution!" - Kyle Baker

Michael Vincze

unread,
Jul 5, 1996, 3:00:00 AM7/5/96
to

In article H...@murdoch.acc.Virginia.EDU, cy...@csis6.ee.Virginia.EDU (cyc) writes:
>Question:
>
>If you want to do a bunch of batch simulations of a QuickVHDL design
>but want to change a generic of a specific component (not all
>instantiations of a component) for each simulation run, how do
>you do it without recompiling the design?
>
>Granted, one can use the change command interactively, but that only
>works when the component is in the active region of the simulation
>and only when the simulation is done _interactively_.
>
>Thanks!
>
>-Charles
> ch...@Virginia.EDU

You can do this one of two ways:

1. Run qvsim in the command mode and then change the active region
(as you refer to it) with the "environment" command. Then change
the generic value.

For example the following script will change the active region to
the instance labeled "uut" that is instantiated from a test bench:

#! /bin/sh
qvsim -nologo -c tb_zero_det <<!
environment
environment /uut
environment
quit -force
!

Notice that i am using a "here document".

The "environment" command with no arguments will display
the current setting. So the code above will produce
something like:

# Loading ./work.tb_zero_det(test)
# Loading ./work.zero_det(rtl)
# /
# /uut

The place where you would change your generics would be after you
change to the proper environment. I must admit however, that I
have never set a generic from the command line. Could you please
let us know how this is done to make the above complete? Thank you.

2. Use configuration design units. Each configuration can have the
generic values you want. You would then have to analyze (qvcom) each
configuration and then simulate each one seperately:

#! /bin/sh
qvcom -nologo config_min.vhd
qvcom -nologo config_max.vhd
qvsim -c -do simulate.do config_min
qvsim -c -do simulate.do config_max

I hope this helps.

Best regards,
Michael Vincze
vin...@ti.com

0 new messages