iverilog/vpi
Cary R c222169608 Update vecval size calculation in vvp and vpi code.
The standard specifies that the size of a vecval should be calculated as
(size - 1)/32 + 1. When size is a PLI_INT32 this is needed to prevent an
overflow, but when the size is unsigned this can be simplified to
(size + 31)/32 since the size must fit into an integer, but we have an
extra significant bit in an unsigned so no overflow can happen.

This patch changes the code to use the correct version of the equation
depending on the context.

The previous patch does this in vvp/vpi_priv.cc
2012-04-02 08:18:46 -07:00
..
Makefile.in Remove some MinGW32-w64 compile warnings. 2012-01-05 17:26:08 -08:00
cppcheck.sup Update cppcheck suppression to match latest GTkWave files. 2011-11-03 19:06:19 -07:00
fastlz.c Add initial fst support. 2010-05-21 17:26:44 -07:00
fastlz.h Add initial fst support. 2010-05-21 17:26:44 -07:00
fstapi.c Update fstapi.c to latest from GTkWave 2011-10-26 18:41:45 -07:00
fstapi.h Update fstapi files to latest from GTKWave 3.3.19 2011-02-10 19:14:21 -08:00
lxt2_write.c Update various dumper files from GTKWave SVN 2011-10-20 16:48:45 -07:00
lxt2_write.h Update lxt_write and lxt2_write files from GTKWave 2011-10-01 09:48:41 -07:00
lxt_write.c Update lxt_write and lxt2_write files from GTKWave 2011-10-01 09:48:41 -07:00
lxt_write.h Update lxt_write and lxt2_write files from GTKWave 2011-10-01 09:48:41 -07:00
mt19937int.c Remove most of the lingering CVS droppings. 2008-12-05 21:48:28 -08:00
sdf_lexor.lex Moved lex prefixes from Makefile.in into the corresponding .lex files. 2011-05-07 11:38:32 -07:00
sdf_parse.y Minor SDF parse updates. 2010-11-18 16:31:40 -08:00
sdf_parse_priv.h Ignore COND in SDF timing check back annotations 2010-11-18 16:31:33 -08:00
sdf_priv.h Add support to select min/typ/max delays from the SDF file. 2010-03-22 17:54:09 -07:00
stringheap.c Make ivl_alloc.h the last include so it doesn't effect any system includes. 2010-11-02 10:51:57 -07:00
stringheap.h More end of simulation memory cleanup. 2009-01-25 07:40:28 -08:00
sys_clog2.c Update $clog2() to add support for two-state variables. 2011-09-11 11:57:50 -07:00
sys_convert.c Brainless start to const-correct changes 2010-10-06 15:08:54 -07:00
sys_deposit.c Brainless start to const-correct changes 2010-10-06 15:08:54 -07:00
sys_display.c Fix the formatting of time values that are less than 1 2012-01-23 18:52:11 -08:00
sys_fileio.c Update vecval size calculation in vvp and vpi code. 2012-04-02 08:18:46 -07:00
sys_finish.c Add possibility of const-correctness 2010-10-06 15:12:28 -07:00
sys_fst.c Add support to dump the two-state variables. 2011-09-11 12:07:02 -07:00
sys_icarus.c Make some messages consistent in sys_icarus.c. 2011-10-31 10:32:20 -07:00
sys_lxt.c Remove some gcc/g++ (4.6.1) warnings. 2011-10-19 15:01:24 -07:00
sys_lxt2.c Remove some gcc/g++ (4.6.1) warnings. 2011-10-19 15:01:24 -07:00
sys_plusargs.c The $value$plusargs() routine can put to a two-state variable. 2011-09-11 11:57:30 -07:00
sys_priv.c Update $scanf, $printtimescale and the general is_numeric check for 2-state 2011-09-11 11:58:16 -07:00
sys_priv.h VPI access to atom2 types. 2010-10-10 10:06:27 -07:00
sys_queue.c Remove some MinGW32-w64 compile warnings. 2012-01-05 17:26:08 -08:00
sys_random.c Remove some scan-build warnings. 2011-10-20 16:53:43 -07:00
sys_random.h Brainless start to const-correct changes 2010-10-06 15:08:54 -07:00
sys_random_mti.c Make ivl_alloc.h the last include so it doesn't effect any system includes. 2010-11-02 10:51:57 -07:00
sys_readmem.c Properly terminate a snprintf() call. 2011-05-07 11:44:47 -07:00
sys_readmem_lex.h Fix/enhance readmem/writemem routines, etc. 2009-02-26 20:46:02 -08:00
sys_readmem_lex.lex Moved lex prefixes from Makefile.in into the corresponding .lex files. 2011-05-07 11:38:32 -07:00
sys_scanf.c Fix space issues. 2011-11-03 19:18:30 -07:00
sys_sdf.c Brainless start to const-correct changes 2010-10-06 15:08:54 -07:00
sys_table.c Preliminary support for $table_model. 2011-04-20 18:07:01 -07:00
sys_time.c Reduce the error when scaling a real time value. 2011-10-31 10:44:00 -07:00
sys_vcd.c Add support to dump the two-state variables. 2011-09-11 12:07:02 -07:00
sys_vcdoff.c Brainless start to const-correct changes 2010-10-06 15:08:54 -07:00
system.sft Preliminary support for $table_model. 2011-04-20 18:07:01 -07:00
table_mod.c Add more comments to $table_model code, etc. 2011-05-29 08:42:49 -07:00
table_mod.h Some more $table_model() changes. 2011-05-07 11:46:12 -07:00
table_mod_lexor.lex Some more $table_model() changes. 2011-05-07 11:46:12 -07:00
table_mod_parse.y Remove space issues. 2011-06-26 11:17:31 -07:00
v2005_math.c Free the iterator if there are extra arguments. 2011-10-14 18:02:37 -07:00
v2005_math.sft Add the Verilog-2005 and Verilog-AMS constant system functions. 2008-08-29 21:11:44 -07:00
v2009.sft Initial implementation of $ivl_method$next/prev 2010-11-17 20:00:23 -08:00
v2009_enum.c Remove a memory leak in enum next()/prev() code. 2011-10-19 14:58:33 -07:00
v2009_table.c Initial implementation of $ivl_method$next/prev 2010-11-17 20:00:23 -08:00
va_math.c Free the iterator if there are extra arguments. 2011-10-14 18:02:37 -07:00
va_math.sft Remove obsolete VAMS $log function. 2010-04-27 12:09:07 -07:00
vams_simparam.c Remove some scan-build warnings. 2011-10-20 16:53:43 -07:00
vcd_priv.c Add support to dump the two-state variables. 2011-09-11 12:07:02 -07:00
vcd_priv.h Brainless start to const-correct changes 2010-10-06 15:08:54 -07:00
vcd_priv2.cc C++ routines called from C must be defined as extern "C" 2011-07-05 19:27:17 -07:00
vhdl_sys.sft Add $ivlh_attribute_event for VHDL support 2011-06-24 18:42:43 -07:00
vhdl_table.c Trivial fixes to grammar, spelling, whitespace 2012-02-17 16:18:22 -08:00
vpi_config.h.in Remove malloc.h support and for C++ files use <c...> include files. 2010-06-01 08:56:30 -07:00
vpi_debug.c Register Icarus vpi debug routine as a system function. 2012-01-05 19:22:19 -08:00
wavealloca.h Update various dumper files from GTKWave SVN 2011-10-20 16:48:45 -07:00