Skip to content

Commit

Permalink
Merge pull request #1057 from larsclausen/fix-net-array
Browse files Browse the repository at this point in the history
vvp: Don't schedule initial value propagation for net array ports
  • Loading branch information
larsclausen authored Dec 29, 2023
2 parents b4b8006 + 90880e8 commit 9a0ce04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vvp/array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,8 @@ static void array_attach_port(vvp_array_t array, vvp_fun_arrayport*fun)
assert(fun->next_ == 0);
fun->next_ = array->ports_;
array->ports_ = fun;
if (!array->get_scope()->is_automatic()) {
if (!array->get_scope()->is_automatic() &&
(array->vals4 || array->vals)) {
/* propagate initial values for variable arrays */
if (!vpi_array_is_real(array)) {
vvp_bit4_t init;
Expand Down

0 comments on commit 9a0ce04

Please sign in to comment.