From b7522cdd253b24bf9a2d775d58d2c44390074f2d Mon Sep 17 00:00:00 2001 From: James Cherry Date: Sun, 31 Dec 2023 14:06:13 -0700 Subject: [PATCH] write_path_spice check for default lib Signed-off-by: James Cherry --- search/WritePathSpice.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/search/WritePathSpice.cc b/search/WritePathSpice.cc index 55b763b1..372b9752 100644 --- a/search/WritePathSpice.cc +++ b/search/WritePathSpice.cc @@ -283,6 +283,8 @@ writePathSpice(Path *path, const char *gnd_name, StaState *sta) { + if (sta->network()->defaultLibertyLibrary() == nullptr) + sta->report()->error(20, "No liberty libraries found,"); WritePathSpice writer(path, spice_filename, subckt_filename, lib_subckt_filename, model_filename, off_path_pin_names, power_name, gnd_name, sta); @@ -313,7 +315,7 @@ WritePathSpice::WritePathSpice(Path *path, short_ckt_resistance_(.0001), clk_cycle_count_(3) { - bool exists; + bool exists = false; default_library_->supplyVoltage(power_name_, power_voltage_, exists); if (!exists) { DcalcAnalysisPt *dcalc_ap = path_->dcalcAnalysisPt(this);