Skip to content

Commit 9570b39

Browse files
committed
verifix: fix bits() deprecation warnings
1 parent 2f8f421 commit 9570b39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontends/verific/verific.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,8 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
18621862
if (bit.wire->attributes.count(ID::init))
18631863
initval = bit.wire->attributes.at(ID::init);
18641864

1865-
initval.resize(GetSize(bit.wire), State::Sx);
1865+
if (GetSize(initval) < GetSize(bit.wire))
1866+
initval.resize(GetSize(bit.wire), State::Sx);
18661867

18671868
if (it.second == '0')
18681869
initval.set(bit.offset, State::S0);

0 commit comments

Comments
 (0)