Cary R
8439fc6c19
Remove two memory leaks.
...
This patch removes two memory leaks. One in the driver and one
in the runtime.
2008-06-09 21:23:27 -07:00
Stephen Williams
d1daf6733f
Allow VPI callbacks to var array words.
...
Functions like $monitor need to attach callbacks to array words if
those words are to be monitored. Have the array hold all the callbacks
for words in the array, under the assumption that the monitored words
are sparse.
2008-05-20 18:30:56 -07:00
Stephen Williams
007056d671
Remove last vestiges of the the .mem structures.
...
Before the .array support, we had .mem nodes. These are long since
removed because the arrays to all the jobs of the .mem nodes.
2008-05-20 16:57:50 -07:00
Larry Doolittle
39dd22ace4
Adjust unusual spacing
...
minimal changes, nearly eliminates oddball/inconsistent
source code use of whitespace
2008-02-19 09:15:03 -08:00
Cary R
35382b5801
At EOS only save the simulation time if it is asked for.
...
This was causing a core dump for a number of the vpi test cases.
The problem was that they did not need the simulation time, so it
was being set to NULL. The problem was the EndOfSimulation callback
was always setting cb_data.time to the current time. A big problem
when the pointer was NULL. The solution is to only set the time
when the pointer is not NULL
2007-11-18 19:37:35 -08:00
Cary R
17960013e5
Add a mark at simulation end for vcd/lxt/lxt2 files.
...
This patch adds marks at simulation end if needed and enabled (on
and not over the limit) for vcd/lxt/lxt2 files. End of simulation
callbacks also now have the correct simulation time. The default
file names for lxt and lxt2 now match the vcd file except for the
extension. lx2 is also an alias for lxt2 and the default lxt2 file
extension is lx2. This matches what GTKWave expects. Any lxt2
diagnostic output print LXT2 instead of LXT to make it clear which
dumper you are using.
2007-11-10 16:27:45 -08:00
Cary R
c7538386fc
Start of simulation event needed to be run after initialization events.
...
This patch splits the end of compile and the start of simulation call
backs code into two different procedures. The end of compile events are
still executed at the same time they alway were. The start of simulation
events are now run after initialization.
2007-08-29 20:20:03 -07:00
Cary R
81a45cdc5f
Make vpi_put_value to a real accept an integer value and add diagnostic code.
...
Modified the code that deals with real variables to accept an integer
value when using vpi_put_value(). Also added some type of diagnostic
message for all switch defaults that have an assert(0) to indicate an
error condition, removed CVS comments and removed a small section of
unreachable code.
2007-08-29 20:02:12 -07:00
steve
65baeaed8f
vpi_free_object doesnot free callback out from under runtime.
2007-04-10 04:32:05 +00:00
steve
91d84e7dc7
Major rework of array handling. Memories are replaced with the
...
more general concept of arrays. The NetMemory and NetEMemory
classes are removed from the ivl core program, and the IVL_LPM_RAM
lpm type is removed from the ivl_target API.
2007-01-16 05:44:14 +00:00
steve
44ca0fe798
rwsync callback fixes from Ben Staveley (with modifications.)
2006-09-29 01:24:34 +00:00
steve
1b911ad87a
Add support for memory value change callbacks.
2006-03-05 05:45:58 +00:00
steve
b0b614ae0e
Some trivial log message improvements.
2006-02-22 03:08:53 +00:00
steve
1021e5acc8
Fixes for stubborn compilers.
2005-12-05 21:21:18 +00:00
steve
35951510c5
Put vec8 and vec4 nets into seperate net classes.
2005-11-25 17:55:26 +00:00
steve
3ac79c294a
Implement real valued signals and arith nodes.
2005-07-06 04:29:25 +00:00
steve
2736859d8f
Remove useless references to functor.h
2005-06-12 01:10:26 +00:00
steve
3607fb584d
Support UDP initial values.
2005-06-09 05:04:45 +00:00
steve
42433f4df9
Add support for notif0/1 gates.
...
Make delay nodes support inertial delay.
Add the %force/link instruction.
2005-06-02 16:02:11 +00:00
steve
65e9b6be12
Rework of internals to carry vectors through nexus instead
...
of single bits. Make the ivl, tgt-vvp and vvp initial changes
down this path.
2004-12-11 02:31:25 +00:00
steve
e4ae832153
Clean up spurious trailing white space.
2004-10-04 01:10:51 +00:00
steve
17c891bc9c
Fix type mismatches of various VPI functions.
2004-02-18 02:51:59 +00:00
steve
2418ab9063
Reimpelement scheduler to divide nonblocking assign queue out.
2003-09-09 00:56:45 +00:00
steve
6df92f7cca
Properly skip cancelled callbacks.
2003-04-25 04:36:42 +00:00
steve
59aa9052f8
Add support for cbNextSimTime.
2003-04-19 23:32:57 +00:00
steve
385a688830
Add VPI tracing.
2003-03-12 02:50:32 +00:00
steve
ec48049a69
Strict correctness of vpi_free_object results.
2003-02-17 00:58:38 +00:00
steve
dcbb8d0780
Add value change callbacks to real variables.
2003-02-10 05:20:10 +00:00
steve
b726395d1e
Spelling fixes.
2003-02-09 23:33:26 +00:00
steve
de6d696667
Add support for cbAfterDelay.
2002-09-20 02:42:11 +00:00
steve
c9212a9a09
Implement vpi_remove_cb for cbValueChange.
2002-09-07 04:54:51 +00:00
steve
52bf4e613f
conditional ident string using autoconfig.
2002-08-12 01:34:58 +00:00
steve
c0e22a6533
Set vpi_mode_flag to represent cpReadOnlySync actions.
2002-07-31 03:22:23 +00:00
steve
b7aaf51fbd
vpiIntegerVars can have callbacks.
2002-07-12 02:07:36 +00:00
steve
2be3507422
Stub value change callbacks for consts and modules.
2002-06-11 03:47:34 +00:00
steve
a91c4f66ce
Check for null pointers from users.
2002-06-02 19:05:50 +00:00
steve
450b9ab85c
Callbacks can happen during calltf functions.
2002-05-28 22:55:20 +00:00
steve
cfab250671
Add callbacks for vpiNamedEvent objects.
2002-05-19 05:18:16 +00:00
steve
b1c0f7306d
Add vpi support for named events.
...
Add vpi_mode_flag to track the mode of the
vpi engine. This is for error checking.
2002-05-18 02:34:11 +00:00
steve
88ae1b7b3c
Handle null time and calltf pointers.
2002-05-09 03:34:31 +00:00
steve
822a085d97
Properly free vpi callback objects.
2002-05-04 03:17:29 +00:00
steve
f23aec7f14
Add simulator event callbacks.
2002-05-04 03:03:17 +00:00
steve
eb708c1540
Support specified times in cbReadOnlySync, and
...
add support for cbReadWriteSync.
Keep simulation time in a 64bit number.
2002-04-20 04:33:23 +00:00
steve
c98c24b9ff
cbValueChange automatically replays.
2002-04-06 20:25:45 +00:00
steve
bf9a8f5021
Code rearrange. (Stephan Boettcher)
2001-11-06 03:07:21 +00:00
steve
a75326e2e0
Rewrite the functor type to have fewer functor modes,
...
and use objects to manage the different types.
(Stephan Boettcher)
2001-10-31 04:27:46 +00:00
steve
4e92501864
VPI support for callback to return values.
2001-10-25 04:19:53 +00:00
steve
6cf2ddf541
M42 implementation of mode 2 (Stephan Boettcher)
2001-10-12 03:00:08 +00:00
steve
b2b8b89cd8
Make configure detect malloc.h
2001-09-15 18:27:04 +00:00
steve
82bccd335d
Initial implementation of vvp_fvectors.
...
(Stephan Boettcher)
2001-08-08 01:05:06 +00:00
steve
a7328ecce1
Rewire signal callback support for fast lookup. (Stephan Boettcher)
2001-07-13 03:02:34 +00:00
steve
da828a218f
Add support for REadOnlySync and monitors.
2001-07-11 02:27:21 +00:00
steve
1f3eedcfd7
Some documentation of callback behavior.
2001-06-21 23:05:08 +00:00
steve
541f269c20
Support cbValueChange callbacks.
2001-06-21 22:54:12 +00:00