Skip to content

Commit

Permalink
Merge pull request #4135 from YosysHQ/verific_clocking_fix
Browse files Browse the repository at this point in the history
Fix verific clocking when no driver exist
  • Loading branch information
nakengelhardt authored Jan 18, 2024
2 parents e1f4c5c + 1764c0e commit 242ae4e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontends/verific/verific.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,7 @@ VerificClocking::VerificClocking(VerificImporter *importer, Net *net, bool sva_a
if (sva_at_only)
do {
Instance *inst_mux = net->Driver();
if (inst_mux->Type() != PRIM_MUX)
if (inst_mux == nullptr || inst_mux->Type() != PRIM_MUX)
break;

bool pwr1 = inst_mux->GetInput1()->IsPwr();
Expand Down
10 changes: 10 additions & 0 deletions tests/verific/clocking.ys
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
read -sv <<EOT
module test(input foo);
always @(*) assert(foo);
endmodule
EOT

verific -import test
prep

select -assert-count 1 t:$assert

0 comments on commit 242ae4e

Please sign in to comment.