@@ -43,7 +43,7 @@ void Ext::setLogger(Logger* logger)
4343}
4444void Ext::write_rules (const std::string& name, const std::string& file)
4545{
46- _ext->setBlockFromChip ();
46+ _ext->setBlockFromChip (_db-> getChip () );
4747 _ext->writeRules (name.c_str (), file.c_str ());
4848}
4949void Ext::bench_wires (const BenchWiresOptions& bwo)
@@ -148,7 +148,7 @@ void Ext::bench_wires_gen(const PatternOptions& opt)
148148
149149void Ext::bench_verilog (const std::string& file)
150150{
151- _ext->setBlockFromChip ();
151+ _ext->setBlockFromChip (_db-> getChip () );
152152 char * filename = (char *) file.c_str ();
153153 if (!filename || !filename[0 ]) {
154154 logger_->error (RCX , 147 , " bench_verilog: file is not defined!" );
@@ -162,7 +162,7 @@ void Ext::bench_verilog(const std::string& file)
162162
163163void Ext::define_process_corner (int ext_model_index, const std::string& name)
164164{
165- _ext->setBlockFromChip ();
165+ _ext->setBlockFromChip (_db-> getChip () );
166166 char * cornerName = _ext->addRCCorner (name.c_str (), ext_model_index);
167167
168168 if (cornerName != nullptr ) {
@@ -211,7 +211,7 @@ void Ext::get_ext_db_corner(int& index, const std::string& name)
211211
212212void Ext::extract (ExtractOptions options)
213213{
214- _ext->setBlockFromChip ();
214+ _ext->setBlockFromChip (_db-> getChip () );
215215 odb::dbBlock* block = _ext->getBlock ();
216216
217217 odb::orderWires (logger_, block);
@@ -250,13 +250,13 @@ void Ext::write_spef_nets(odb::dbObject* block,
250250 bool parallel,
251251 int corner)
252252{
253- _ext->setBlockFromChip ();
253+ _ext->setBlockFromChip (_db-> getChip () );
254254 _ext->write_spef_nets (flatten, parallel);
255255}
256256
257257void Ext::write_spef (const SpefOptions& options)
258258{
259- _ext->setBlockFromChip ();
259+ _ext->setBlockFromChip (_db-> getChip () );
260260 if (options.end ) {
261261 _ext->writeSPEF (true );
262262 return ;
@@ -299,7 +299,7 @@ void Ext::write_spef(const SpefOptions& options)
299299
300300void Ext::read_spef (ReadSpefOpts& opt)
301301{
302- _ext->setBlockFromChip ();
302+ _ext->setBlockFromChip (_db-> getChip () );
303303 logger_->info (RCX , 1 , " Reading SPEF file: {}" , opt.file );
304304
305305 bool stampWire = opt.stamp_wire ;
@@ -352,7 +352,7 @@ void Ext::read_spef(ReadSpefOpts& opt)
352352
353353void Ext::diff_spef (const DiffOptions& opt)
354354{
355- _ext->setBlockFromChip ();
355+ _ext->setBlockFromChip (_db-> getChip () );
356356 std::string filename (opt.file );
357357 if (filename.empty ()) {
358358 logger_->error (
@@ -430,7 +430,7 @@ bool Ext::gen_rcx_model(const std::string& spef_file_list,
430430 const std::string& version,
431431 int pattern)
432432{
433- _ext->setBlockFromChip ();
433+ _ext->setBlockFromChip (_db-> getChip () );
434434
435435 if (spef_file_list.empty ()) {
436436 logger_->error (
@@ -474,7 +474,7 @@ bool Ext::define_rcx_corners(const std::string& corner_list)
474474 RCX , 146 , " \n Corner List option -corner_list is required\n " );
475475 }
476476
477- _ext->setBlockFromChip ();
477+ _ext->setBlockFromChip (_db-> getChip () );
478478
479479 Parser parser (logger_);
480480 int n1 = parser.mkWords (corner_list.c_str ());
0 commit comments