Skip to content

Commit

Permalink
attempt to resolve linker error by avoid accessing OpenRoad.cc for ge…
Browse files Browse the repository at this point in the history
…tDbNetwork. Signed-off-by: Andy Fox [email protected]

Signed-off-by: andyfox-rushc <[email protected]>
  • Loading branch information
andyfox-rushc committed Apr 29, 2024
1 parent bc3f344 commit a6e2f45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dbSta/src/dbReadVerilog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <string>

#include "db_sta/dbNetwork.hh"
#include "db_sta/dbSta.hh"
#include "odb/db.h"
#include "ord/OpenRoad.hh"
#include "sta/ConcreteNetwork.hh"
Expand Down Expand Up @@ -111,7 +112,8 @@ dbVerilogNetwork* makeDbVerilogNetwork()

void initDbVerilogNetwork(ord::OpenRoad* openroad)
{
openroad->getVerilogNetwork()->init(openroad->getDbNetwork());
sta::dbSta* sta = openroad->getSta();
openroad->getVerilogNetwork()->init(sta->getDbNetwork());
}

void deleteDbVerilogNetwork(dbVerilogNetwork* verilog_network)
Expand Down

0 comments on commit a6e2f45

Please sign in to comment.