Files
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
..
2010-05-21 17:26:44 -07:00
2010-05-21 17:26:44 -07:00
2010-11-18 16:31:40 -08:00
2010-10-10 10:06:27 -07:00
2011-10-20 16:53:43 -07:00
2011-11-03 19:18:30 -07:00
2011-06-26 11:17:31 -07:00
2011-05-07 11:46:12 -07:00