From 3a6760f52aa442f080491b1290f4652926124f46 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Mon, 19 Mar 2018 12:55:22 +0100 Subject: [PATCH] Bad guessing of the output of zero_x0 & one_x0 in BlifParser. * Bug: In CRL::BlifParser::Model::staticInit(), when looking for the output of the Cell, discard power supplies *and* automatic Nets. --- crlcore/src/ccore/blif/BlifParser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crlcore/src/ccore/blif/BlifParser.cpp b/crlcore/src/ccore/blif/BlifParser.cpp index a6ac6f61..5e6ea7e6 100644 --- a/crlcore/src/ccore/blif/BlifParser.cpp +++ b/crlcore/src/ccore/blif/BlifParser.cpp @@ -350,13 +350,15 @@ namespace { _powerName = Cfg::getParamString("crlcore.powerName" ,"vdd")->asString(); if (_zero) { - for ( Net* net : _zero->getNets() ) if (not net->isSupply()) { _masterNetZero = net; break; } + for ( Net* net : _zero->getNets() ) + if (not net->isSupply() and not net->isAutomatic()) { _masterNetZero = net; break; } } else cerr << Warning( "BlifParser::Model::connectSubckts(): The zero (tie high) cell \"%s\" has not been found." , zeroName.c_str() ) << endl; if (_one) { - for ( Net* net : _one->getNets() ) if (not net->isSupply()) { _masterNetOne = net; break; } + for ( Net* net : _one->getNets() ) + if (not net->isSupply() and not net->isAutomatic()) { _masterNetOne = net; break; } } else cerr << Warning( "BlifParser::Model::connectSubckts(): The one (tie low) cell \"%s\" has not been found." , oneName.c_str() ) << endl;