Cary R
632685d830
Check that $timeformat is not given more than four arguments.
...
Add a check that $timeformat is not given more than four arguments.
2007-08-13 19:52:38 -07:00
Cary R
1aa4394d75
Check the random function seed type and a fix to handle time variables.
...
The standard states that the seed for the random functions should be
an integer/time variable or a register. This patch fixes the compiletf
routines to check for this. There is also a small patch to
vvp/vpi_signal.cc that removes an assert that was failing and replaces
it with appropriate code. The assert was verifying that the source was
not bigger than an integer. The problem with this is that a time
variable or register may be bigger than an integer. I altered the code
to remove the assert and copy only the lower (8 * sizeof integer) bits.
The potential overflow/loss of precision is not checked. This passes
the regression tests.
2007-07-25 21:36:06 -07:00
Stephen Williams
8dc23dad59
Delay compiletf until bindings are complete
...
Delat the compiletf calls until after all the label references
are resolved and link bindings are complete. Otherwise, there may
be dangling references.
Signed-off-by: Stephen Williams <steve@icarus.com>
2007-07-24 18:24:24 -07:00
Cary R
b23eb1b917
[PATCH] Add compiletf routine for deposit system task and fix string constants.
...
This patch adds a compiletf routine to the $deposit system task and
simplifies the calltf routine. It also patches the constant string code
to return an appropriate integer value when needed. A number of compiletf
routines that check for this can now be simplified since this (string
constants) no longer causes an assert in an integer environment.
2007-07-23 21:23:55 -07:00
Cary R
a359ec45f7
Pass the finish and stop system task argument correctly.
...
The argument passed to $finish and $stop is not currently used, but it
is now passed down to the functions that may someday do something
useful with it (schedule_finish() and schedule_stop() in vvp/schedule.cc).
2007-07-20 14:01:35 -07:00
Cary R
a024eaead2
Add missing probabilistic functions and compiletf routines.
...
Add the missing probabilistic functions and add compiletf routines
for all the functions. The original calltf routines have been
modified as appropriate. The base functions are straight copies
from the standard. I have visually verified the curves with 5,000
points and they look correct.
2007-07-20 13:54:49 -07:00
Cary R
1aa6fc3f7a
[PATCH] Update vpiFinish arguments to be in correct range.
...
Even though vpiFinish does not currently do anything with it's
argument I thought it would be best to have them all be in the
correct range [0, 1, 2], so they have been updated as appropriate.
2007-07-19 17:35:40 -07:00
Cary R
e546a9d5c8
Update the files to use vpi_control vs vpi_sim_control.
...
vpi_sim_control is no longer part of the standard, so update the code to
use the standard function (vpi_control).
2007-07-19 17:29:05 -07:00
Stephen Williams
b525a63f50
Do not process back-slash escapes twice.
...
Backslash-escapes are processed early, during elaboration, so that
escaped characters show up in all places with the calculated value.
This means the $display formatting will get processed strings and
should not process back-slashes again.
Signed-off-by: Stephen Williams <steve@icarus.com>
2007-06-28 18:07:22 -07:00
steve
67b1eee7ce
Better configuration messages (Alan Feldstein)
2007-05-16 23:59:12 +00:00
steve
498d8fe6ad
Add support for Gg and Ee formats.
2007-04-18 02:40:20 +00:00
steve
427d5664ef
Fix missing zero if time value is exactly 0.
2007-04-16 00:47:12 +00:00
steve
253fdc6232
Fix scanf to abort on failed matches.
2007-04-16 00:09:58 +00:00
steve
79fdb2b243
Attach line number information to task calls.
2007-04-15 20:45:40 +00:00
steve
abaeb1e702
Add printtimescale (caryr)
2007-04-12 02:50:51 +00:00
steve
513fa72d99
Cleanup timeformat argument checking.
2007-04-10 04:56:26 +00:00
steve
d3588b4e23
More strict use of PLI_BYTE8 type.
2007-04-09 22:49:33 +00:00
steve
611d2c81b3
Spelling fixes from Larry
2007-03-22 16:08:14 +00:00
steve
72ec3a2c09
VPI tasks take PLI_BYTE* by the standard.
2007-03-14 04:05:51 +00:00
steve
ae88f5cc68
Lint fixes.
2007-03-07 00:38:15 +00:00
steve
6804732b9e
Spelling fixes (larry doolittle)
2007-02-26 19:49:48 +00:00
steve
3fd80b09f0
Administrative/Makefile fixes, mostly for windows. (Cary R.)
2007-02-06 05:07:31 +00:00
steve
841378426f
Updates for Cygwin portability (pr1585922)
2006-10-30 22:45:36 +00:00
steve
6f34dfc8e5
Scanf formats for character and string.
2006-08-12 04:16:07 +00:00
steve
2c7e96caec
scanf support for real values.
2006-08-12 03:38:12 +00:00
steve
382c4d74fd
Add the scanf functions.
2006-08-03 05:06:04 +00:00
steve
82a85131a8
Use compiletf to check arguments.
2006-08-03 05:02:46 +00:00
steve
58118bddc5
Warning when file is inadequate for requested range.
2006-04-25 05:00:12 +00:00
steve
bf8b085159
Clean up compiler warnings.
2005-09-20 18:34:01 +00:00
steve
04604188df
Clock compression fix from Tony.
2005-02-19 16:45:01 +00:00
steve
6c711ee4d8
Merge $fopen robustness fix from 0.8
2005-01-09 20:12:22 +00:00
steve
e4ae832153
Clean up spurious trailing white space.
2004-10-04 01:10:51 +00:00
steve
b3a3428b9a
Clean up bin32 files.
2004-10-04 01:09:07 +00:00
steve
9383b165a4
MTI functions only user Mersene Twister
2004-10-04 00:14:08 +00:00
steve
e827f8f8c1
Cleanup and factoring of autoconf.
2004-09-27 22:34:10 +00:00
steve
d3eb53e6b1
Better rule for install of system.sft.
2004-08-30 17:42:53 +00:00
steve
e2b94947f5
Fix read count passed to fgets.
2004-08-24 16:16:23 +00:00
steve
112368c7de
Add a .sft file for the system functions.
2004-06-17 14:47:22 +00:00
steve
d1f0a0b0d7
Save seed in static variable, in case user doesnt pass it.
2004-06-17 14:44:01 +00:00
steve
f2d4966634
Fix transcription error scaling c in uniform range.
2004-06-10 02:14:42 +00:00
steve
50bf2095df
Move Mersenne Twister to $mti_random, and make
...
the standard $random standard. Also, add $dist_poisson.
2004-06-09 22:14:10 +00:00
steve
c55adddb69
Assume struct initializers are GCC specific.
2004-03-15 18:35:37 +00:00
steve
dd7472d125
Mingw needs -liberty, but Cygwin cannot tolerate it.
2004-03-11 06:06:59 +00:00
steve
b5b02269f1
unused variable warning.
2004-02-20 03:20:04 +00:00
steve
60adfb845d
Do not strip leading spaces, or expect them either.
2004-02-20 01:53:02 +00:00
steve
72f9dc5094
Add the $fgets function.
2004-02-19 21:33:13 +00:00
steve
6f9ebb1e60
Add the $dumpflush function
2004-02-15 20:46:01 +00:00
steve
0fd5a79760
Cleanup of warnings.
2004-02-15 18:03:30 +00:00
steve
081a6a4088
Cleanup configure detection of win32.
2004-02-15 03:17:36 +00:00
steve
c971448760
dumpfile selects file at compiletf time.
2004-02-15 03:17:15 +00:00
steve
8188c4c690
Makefile cleanup.
2004-02-10 19:25:00 +00:00
steve
fa4a873628
Add support for lxt2 break size
2004-02-06 18:23:30 +00:00
steve
a436bfc711
Include from current directory.
2004-01-28 23:54:10 +00:00
steve
5160021b48
Make sure file64 support is on cc -D flags.
2004-01-26 21:52:46 +00:00
steve
f349449a49
Honor default format of numbers.
2004-01-23 23:40:44 +00:00
steve
4987970af4
Give the vip directory its own configure and vpi_config.h
2004-01-21 01:22:51 +00:00
steve
8aca824c0f
Further unify the configure.in scripts.
2004-01-15 20:52:32 +00:00
steve
59ac435c71
Fix various unsigned compare warnings.
2003-12-19 01:27:10 +00:00
steve
7fa531c5db
Missing config.h.
2003-11-10 20:18:02 +00:00
steve
df08760ef8
Simply MSVC compatibility patch.
2003-11-10 20:15:33 +00:00
steve
4f40eb0a00
Implement basic fflush.
2003-11-07 19:40:05 +00:00
steve
5aadc310f7
Call register for fileio functions.
2003-10-30 04:52:54 +00:00
steve
02ec36806c
Rearrange fileio functions, and add ungetc.
2003-10-30 03:43:19 +00:00
steve
5ff3bcc7fb
Add the PLU_UINT64_FMT string for formatting output.
2003-10-29 03:28:27 +00:00
steve
4236b8a95e
Portably handle time format of VCD prints.
2003-10-29 03:23:12 +00:00
steve
ec9361ae22
Install rules for vvp32/system.vpi
2003-10-10 03:34:15 +00:00
steve
906e7d9946
Install rules for vvp32/system.vpi
2003-10-10 03:31:40 +00:00
steve
c34d5699ee
Ignore the bin32 directory.
2003-10-09 16:27:41 +00:00
steve
8cf7b62933
Support both 32bit and 64bit system.vpi on AMD64.
2003-10-08 23:17:39 +00:00
steve
cf1affff32
TIME_FMT does not include the % character.
2003-10-08 23:14:29 +00:00
steve
a89f39f166
Include sys_priv.h instead of priv.h
2003-10-06 21:26:27 +00:00
steve
52b756a6fa
Configure control for the vpi subdirectory.
2003-10-02 21:30:40 +00:00
steve
7ef45769a7
Use configured TIME_FMT in vcd dump printf.
2003-10-02 21:30:06 +00:00
steve
fff6e88245
Include timerec_to_time64 implementation.
2003-10-02 21:16:11 +00:00
steve
40daff0aed
dumpers must be aware of 64bit time.
2003-09-30 01:33:39 +00:00
steve
d21351405a
turn partial off when maximally compressing.
2003-09-26 21:23:08 +00:00
steve
2f8181f40a
Cleanup lxt2 writer with version from gtkwave 1.2.31
2003-09-23 03:40:59 +00:00
steve
1c51e1787c
Disable lxt when zlib is missing.
2003-09-13 01:28:47 +00:00
steve
6927e0fa1f
Add lxt2 support for partial mode.
2003-09-10 17:53:42 +00:00
steve
aa40930278
Tonys -12 snapshot of lxt2 support.
2003-09-04 20:27:39 +00:00
steve
af806ed9c3
Add lxt2 support.
2003-09-01 04:04:03 +00:00
steve
14150d6fba
ifdef idents correctly.
2003-08-26 16:26:01 +00:00
steve
60b2e89b1b
Add support for fstrobe system tasks.
2003-08-26 03:51:05 +00:00
steve
64d795c53a
Preserve variable ranges all the way to the vpi.
2003-08-22 23:14:26 +00:00
steve
ec07674d40
Fix Makefiles to support read-only source directory.
2003-08-22 04:27:10 +00:00
steve
855c2fe001
Clean up memory leak in setup.
2003-08-15 02:12:15 +00:00
steve
e312e99448
Fix error truncating bitvec in output.
2003-08-06 18:24:55 +00:00
steve
d3d63c1b8b
mcd value can come from a vpiNet.
2003-08-03 03:54:02 +00:00
steve
a378efb398
Careful to save format string to prevent overwrite.
2003-07-21 01:19:58 +00:00
steve
ae418c6a6d
Account for all 64 bits in results of $time.
2003-06-18 00:54:28 +00:00
steve
bbdf03b457
1) setlinebuf() for vpi_trace
...
2) Addes error checks for trace file opens
3) removes now extraneous flushes
4) fixes acc_next() bug
2003-06-17 16:55:07 +00:00
steve
e3e4e648d7
Add vpi_fopen and vpi_get_file.
2003-05-23 04:04:02 +00:00
steve
2e3ce49400
Arrange for mcd id=00_00_00_01 to go to stdout
...
as well as a user specified log file, set log
file to buffer lines.
Add vpi_flush function, and clear up some cunfused
return codes from other vpi functions.
Adjust $display and vcd/lxt messages to use the
standard output/log file.
2003-05-15 16:51:08 +00:00
steve
f37213e7e6
Eliminate some redundant vpi_put_values.
2003-05-15 00:38:29 +00:00
steve
889b9bfe07
Use seed to store random number context.
2003-05-14 04:18:16 +00:00
steve
d9b86d9b3a
$readmem more flexible with file name argument.
2003-05-10 16:06:50 +00:00
steve
aff5b7fadf
Certain constants are allowed as mcd parameters.
2003-05-02 15:45:43 +00:00
steve
7733a0a620
$fdisplay can have a RealVar, not RealVal argument.
2003-05-02 04:44:41 +00:00
steve
ab6b9312f2
Fix stringheap list management failure.
2003-04-28 01:03:11 +00:00
steve
789b278ec5
Capture VCD dump value in the rosync time period.
2003-04-27 02:22:27 +00:00
steve
d9568263a3
Accept string parameters for file name argument.
2003-04-23 04:57:41 +00:00
steve
299f6f8551
acc_fetch_value support for %v format.
2003-04-20 02:49:07 +00:00
steve
92a44db0b8
Arrange link order to find local libraries before installed libraries.
2003-04-19 22:37:10 +00:00
steve
99b1cb0f74
Implement $itor and $bitstoreal
2003-03-17 21:59:54 +00:00
steve
60deeb0182
Donot rely on persistence of format string.
2003-03-12 03:11:00 +00:00
steve
7e9095acf2
Add support for $rtoi
2003-03-10 23:40:10 +00:00
steve
66697ca6e9
Account for constants being vpiParameters.
2003-03-10 20:52:42 +00:00
steve
f40ea15cce
Implement $realtobits.
2003-03-07 02:44:33 +00:00
steve
cc1e952d0b
Add means to suppress wveform output
2003-03-06 20:04:42 +00:00
steve
44748ea86b
Add support for sizes in %f format.
2003-03-05 02:58:04 +00:00
steve
edffdb5702
Include LDFLAGS on link line.
2003-03-04 03:13:07 +00:00
steve
feee40603c
Makefile cleanups to better support concurrent make.
2003-02-27 22:13:22 +00:00
steve
fbac08200d
Make the $stop system task really vpiStop.
2003-02-21 03:24:03 +00:00
steve
a4be33026d
Move dumpon/dumpoff around to the right times.
2003-02-21 01:36:25 +00:00
steve
62ef34ea04
Update lxt_write implementation, and add compression control flags.
2003-02-20 00:50:06 +00:00
steve
d0728add45
Make lxt use stringheap to perm-allocate strings.
2003-02-13 18:13:28 +00:00
steve
25d47ec6df
Set dumpoff of real variables to NaN.
2003-02-12 05:28:01 +00:00
steve
83ee6fc818
Support dump of vpiRealVar objects.
2003-02-11 05:21:33 +00:00
steve
32088821c0
Support monitor of real variables.
2003-02-10 05:20:48 +00:00
steve
929f0f5f00
Support C-style comments in read data file.
2003-02-09 05:07:06 +00:00
steve
b230bec586
Properly round inter time values from $time.
2003-02-07 02:44:25 +00:00
steve
03afae4da4
Format real values as time.
2003-02-06 17:40:02 +00:00
steve
967eec5786
Rearrange format-string formatting code.
2003-02-04 04:06:36 +00:00
steve
e549a2c5c3
Display $time and $realtime specially.
2003-02-01 05:49:13 +00:00
steve
971cd51d76
Use more precise pow function to scale time by units.
2003-01-28 04:41:55 +00:00
steve
04ada23119
Support in various contexts the $realtime
...
system task.
2003-01-27 00:14:37 +00:00
steve
47db309d30
Support display of real values and constants.
2003-01-26 18:18:36 +00:00
steve
301cbe31ad
Remove vpithunk, and move libvpi to vvp directory.
2003-01-10 03:06:32 +00:00
steve
9c3b3246c8
use userdata to save $display argument handles.
2003-01-09 04:10:58 +00:00
steve
d7f3d00f5c
Rewrite time formatting to account for local scope.
2002-12-21 19:41:49 +00:00
steve
c2070777b2
The $time system task returns the integer time
...
scaled to the local units. Change the internal
implementation of vpiSystemTime the $time functions
to properly account for this. Also add $simtime
to get the simulation time.
2002-12-21 00:55:57 +00:00
steve
18e402ddc8
Close old file if $dumpfile is called again.
2002-11-17 22:28:42 +00:00
steve
0651f246b2
Save vpiFullName results.
2002-11-14 22:43:58 +00:00
steve
f611260089
display octal escapes properly.
2002-11-09 06:01:11 +00:00
steve
ea21fab379
Add support for %v is the display system task.
...
Change the encoding of H and L outputs from
the bufif devices so that they are logic x.
2002-09-06 04:56:28 +00:00
steve
ac8b582b3d
Rewire time formatting to handle all cases.
2002-08-24 02:02:44 +00:00
steve
2854a524f0
Watch signed comparisons, that lead to infinite loops.
2002-08-22 23:34:52 +00:00
steve
dd564ab321
add dumpvars_compiletf to check first argument.
2002-08-15 02:12:20 +00:00
steve
52bf4e613f
conditional ident string using autoconfig.
2002-08-12 01:34:58 +00:00
steve
aca1dcf848
Add missing Log and Ident strings.
2002-08-11 23:47:04 +00:00
steve
27178cedda
Allow vpiIntegerVar as parameter to $value$plusarg
2002-08-10 17:00:31 +00:00
steve
e51bbcb85a
Add monitoron and monitoroff system tasks.
2002-07-25 03:35:51 +00:00
steve
91baa938e2
Fix display of no arguments.
2002-07-23 02:41:15 +00:00
steve
9e1570dc80
Implementation of vpi_handle_by_name, and
...
add the vpiVariables iterator.
2002-07-17 05:13:43 +00:00
steve
dabbfdb80a
Fix dangling pointer in pop_scope.
2002-07-15 03:57:30 +00:00
steve
15b94050ce
Remember to scan IntegerVars.
2002-07-12 17:09:21 +00:00
steve
c610699227
Eliminate use of vpiInternalScope.
2002-07-12 17:08:13 +00:00
steve
f0d2e20342
Scan scope objects before subscopes.
2002-07-12 17:02:38 +00:00
steve
66a86433e7
Make types array static, not on stack.
2002-07-12 02:10:20 +00:00
steve
2354a90e9f
Eliminate use of vpiInternalScope.
2002-07-12 02:08:10 +00:00