Larry Doolittle
752cf21790
Warnings and spelling fixes.
...
Correct a variety of spelling errors, and eliminate
a variety of compile time warnings.
2007-12-17 17:42:09 -08:00
Cary R
3258b7726b
Pass local scope precision from compiler to vvp/etc.
...
This patch adds ivl_scope_time_precision() to the compiler which can
be used to extract the local scope precision. tgt-stub and tgt-vvp
have been modified to use this new function and output a value that
is appropriate. The vvp runtime has been altered to use this new
data which is accessed with the vpip_time_precision_from_handle()
function. vpiTimePrecision uses this function to return the correct
precision.
2007-09-28 15:08:02 -07:00
Cary R
c71b9797ca
Make %t with real values use specified width if given.
...
The %t format did not use the width specified when displaying
real values. It should now work the same as the integer version.
2007-08-15 13:39:28 -07:00
Cary R
dd6a441312
[PATCH] Fixed the display of real values with the %t format.
...
Add a calculation to compute the required width for real values
when displayed with the %t formet.
2007-08-15 13:31:29 -07:00
Cary R
239523b3c7
Implement the swrite* and sformat system tasks plus a few other fixes.
...
This patch implements the swrite* and sformat system tasks. It also
makes $simtime distinguishable from the other integer time tasks.
This was needed to get the correct time units when $simtime was given
as an argument to $swrite*. The string constant code was also modified
to allow a string to be returned as a vector (0/1 bit pattern).
Here are some more specifics about the swrite* changes.
1. They do not share formatting code with the other display functions,
so they may/will produce different results.
2. All %{alpha} codes allow a width and justification. Others have been
enhanced (%t allows the default width and precision to be overridden,
time functions print with time formatting, better error checking and
messages, etc.).
3. %u and %z formatting codes have been added. It is important to note
that these two formats can produce embedded NULLs, since these
functions are returning a string anything after the first NULL will
not be reachable! memcpy is used instead of regular string processing
where needed so that the original string will contain the total
result. The size returned when the string is created is the true
length. A warning will be printed if a string with embedded NULLs is
produced (strlen() does not match the true length).
4. Real numbers are printed with %g instead of %f.
Once this new formatting code has been evaluated we should incorporate
the changes/fixes into the formatting code for the other functions or
the other functions could be modified to use this new code. The true
string length is available so we should be able to work around the
embedded NULL problem.
2007-08-13 20:07:12 -07:00
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
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
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
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
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
72ec3a2c09
VPI tasks take PLI_BYTE* by the standard.
2007-03-14 04:05:51 +00:00
steve
841378426f
Updates for Cygwin portability (pr1585922)
2006-10-30 22:45:36 +00:00
steve
2c7e96caec
scanf support for real values.
2006-08-12 03:38:12 +00:00
steve
e4ae832153
Clean up spurious trailing white space.
2004-10-04 01:10:51 +00:00
steve
60adfb845d
Do not strip leading spaces, or expect them either.
2004-02-20 01:53:02 +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
59ac435c71
Fix various unsigned compare warnings.
2003-12-19 01:27:10 +00:00
steve
02ec36806c
Rearrange fileio functions, and add ungetc.
2003-10-30 03:43:19 +00:00
steve
60b2e89b1b
Add support for fstrobe system tasks.
2003-08-26 03:51:05 +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
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
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
299f6f8551
acc_fetch_value support for %v format.
2003-04-20 02:49:07 +00:00
steve
60deeb0182
Donot rely on persistence of format string.
2003-03-12 03:11:00 +00:00
steve
66697ca6e9
Account for constants being vpiParameters.
2003-03-10 20:52:42 +00:00
steve
44748ea86b
Add support for sizes in %f format.
2003-03-05 02:58:04 +00:00
steve
32088821c0
Support monitor of real variables.
2003-02-10 05:20:48 +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
47db309d30
Support display of real values and constants.
2003-01-26 18:18:36 +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
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
52bf4e613f
conditional ident string using autoconfig.
2002-08-12 01:34:58 +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
5eca5d9948
Carry integerness throughout the compilation.
2002-06-21 04:59:35 +00:00
steve
f1ab9e63fa
Add support for $timeformat.
2002-05-31 04:26:54 +00:00
steve
6ede18d41c
support GCC __attributes__ for printf formats.
2002-05-24 19:05:30 +00:00
steve
c98c24b9ff
cbValueChange automatically replays.
2002-04-06 20:25:45 +00:00
steve
a6a78f5776
Detect and skip suppressed values in display
2002-02-06 04:50:04 +00:00
steve
4f28f6a770
Better calcuation of dec string width (Larry Doolittle)
2002-01-22 00:18:10 +00:00
steve
ec8b6e126e
Default widths pad out as per the standard,
...
add $displayb/o/h et al., and some better
error messages for incorrect formats.
2002-01-15 03:23:34 +00:00
steve
6535b48c1c
Add the %c format, and some warning messages.
2002-01-11 04:48:01 +00:00
steve
af35736e04
initialize scope for %m in $fdisplay.
2001-11-02 05:56:47 +00:00
steve
4e92501864
VPI support for callback to return values.
2001-10-25 04:19:53 +00:00
steve
a3a0f5f432
Add some missing print escape sequences.
2001-08-16 03:26:04 +00:00
steve
b825f8d2b2
Create a config.h.in file to hold all the config
...
junk, and support gcc 3.0. (Stephan Boettcher)
2001-07-25 03:10:48 +00:00
steve
ae209a144f
Add a stdlog output for vvp, and vvp options
...
to direct them around. (Stephan Boettcher.)
2001-07-16 18:40:19 +00:00
steve
13ef84bc35
Manually create the stage-2 callback structure.
2001-07-11 02:22:17 +00:00
steve
a0db52c69f
More robust about incorrect arguments.
2001-06-25 03:11:41 +00:00
steve
b24011b84b
fgetc patch from Peter Monta.
2001-03-22 02:23:17 +00:00
steve
e03859b834
$display can take 0 arguments.
2001-03-18 00:31:32 +00:00
steve
1f4232187c
Slightly more specific error message.
2001-02-10 19:50:33 +00:00
steve
d16d29c591
Support for %s in $display (PR#62)
2000-12-02 02:40:56 +00:00
steve
5415dd70c5
Integrate parameter count changes (PR#34)
2000-11-04 05:49:22 +00:00
steve
35769ef541
Scope information is needed by all types of display tasks.
2000-11-04 01:52:57 +00:00
steve
ad4931e813
Add scope to threads in vvm, pass that scope
...
to vpi sysTaskFunc objects, and add vpi calls
to access that information.
$display displays scope in %m (PR#1)
2000-10-28 00:51:41 +00:00
steve
df113f962b
Clean up warnings and portability issues.
2000-08-20 17:49:04 +00:00
steve
9c65596b1a
typo: fix vpiReadVal to vpiRealVal
2000-05-31 02:15:43 +00:00
steve
d4bab8709b
Remove test print.
2000-05-09 00:02:29 +00:00
steve
b28f258463
Import MCD support from Stephen Tell, and add
...
system function parameter support to the IVL core.
2000-05-07 18:20:07 +00:00
steve
37e65614a0
exit if hex value is missing.
2000-04-21 02:00:35 +00:00
steve
26dcecebdb
allow cancelling of cbValueChange events.
2000-03-31 07:08:39 +00:00
steve
b734ecf02f
Macintosh compilers do not support ident.
2000-02-23 02:56:53 +00:00
steve
a8d787bd66
Accept memory words as parameter to $display.
2000-02-13 19:18:27 +00:00
steve
43ff33cd79
Add the $monitor implementation.
1999-11-07 02:25:07 +00:00
steve
2d1ace1dbc
Unify display and strobe format routines.
1999-11-06 23:32:14 +00:00
steve
8d806d538b
Get the $strobe task working.
1999-11-06 22:16:50 +00:00
steve
5a2015ee67
Support vpiValueChance callbacks.
1999-10-29 03:37:22 +00:00
steve
d6450599d6
Rewrite vvm VPI support to make objects more
...
persistent, rewrite the simulation scheduler
in C (to interface with VPI) and add VPI support
for callbacks.
1999-10-28 00:47:24 +00:00
steve
86a2bf1961
Add Octal dump format.
1999-10-10 14:50:50 +00:00
steve
0f919ab5f3
Add the %t formatting escape.
1999-10-08 17:47:49 +00:00
steve
86a283b9bc
Support the $write system task, and have the
...
vpi_scan function free iterators as needed.
1999-09-29 01:41:18 +00:00
steve
2d0e11283d
Convert vvm to implement system tasks with vpi.
1999-08-15 01:23:56 +00:00