Skip to content

Commit

Permalink
Add FastRoute4-lefdef
Browse files Browse the repository at this point in the history
  • Loading branch information
eder-matheus committed Dec 2, 2019
1 parent 368bad3 commit 3f6ca42
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
path = src/opendp
url = https://github.com/The-OpenROAD-Project/OpenDP.git
branch = openroad
[submodule "src/FastRoute4-lefdef"]
path = src/FastRoute4-lefdef
url = https://github.com/The-OpenROAD-Project/FastRoute4-lefdef.git
5 changes: 5 additions & 0 deletions include/openroad/OpenRoad.hh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class dbNetwork;
class Resizer;
}

namespace FastRoute {
class FastRouteKernel;
}

namespace opendp {
class opendp_external;
}
Expand Down Expand Up @@ -79,6 +83,7 @@ private:
sta::dbSta *sta_;
sta::Resizer *resizer_;
opendp::opendp_external *opendp_;
FastRoute::FastRouteKernel *fastRoute_;

// Singleton used by tcl command interpreter.
static OpenRoad *openroad_;
Expand Down
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ set(OPENDB_WRAP ${CMAKE_CURRENT_BINARY_DIR}/OpenDB_wrap.cc)
set(RESIZER_HOME ${PROJECT_SOURCE_DIR}/src/resizer)
set(OPENDP_HOME ${PROJECT_SOURCE_DIR}/src/opendp)

set(FASTROUTE_HOME ${PROJECT_SOURCE_DIR}/src/FastRoute4-lefdef)

set(OPENROAD_WRAP ${CMAKE_CURRENT_BINARY_DIR}/OpenRoad_wrap.cc)
set(OPENROAD_TCL_INIT ${CMAKE_CURRENT_BINARY_DIR}/OpenRoadTclInitVar.cc)

Expand Down Expand Up @@ -77,6 +79,7 @@ add_subdirectory(resizer)
add_subdirectory(flute3)
add_subdirectory(replace)
add_subdirectory(opendp)
add_subdirectory(FastRoute4-lefdef)

################################################################

Expand Down Expand Up @@ -168,6 +171,7 @@ target_include_directories(openroad
${OPENROAD_HOME}/src
${OPENDB_HOME}/include
${OPENDP_HOME}/include
${FASTROUTE_HOME}/include
flute3
)

Expand All @@ -179,6 +183,7 @@ target_link_libraries(openroad
dbSta
OpenSTA
opendb
FR4lefdef
zutil
zlib
tm
Expand Down
1 change: 1 addition & 0 deletions src/FastRoute4-lefdef
Submodule FastRoute4-lefdef added at a8f23f
7 changes: 6 additions & 1 deletion src/OpenRoad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#include "opendp/MakeOpendp.h"
#include "replace/src/MakeReplace.h"

#include "FastRoute4-lefdef/src/MakeFastRoute.h"

namespace sta {
extern const char *openroad_tcl_inits[];
}
Expand All @@ -41,6 +43,7 @@ extern "C" {
extern int Openroad_Init(Tcl_Interp *interp);
extern int Opendbtcl_Init(Tcl_Interp *interp);
extern int Replace_Init(Tcl_Interp *interp);
extern int Fastroute_Init(Tcl_Interp *interp);
}

namespace ord {
Expand Down Expand Up @@ -95,6 +98,7 @@ OpenRoad::init(Tcl_Interp *tcl_interp,
verilog_network_ = makeDbVerilogNetwork();
resizer_ = makeResizer();
opendp_ = makeOpendp();
fastRoute_ = (FastRoute::FastRouteKernel*) makeFastRoute();

// Init components.
Openroad_Init(tcl_interp);
Expand All @@ -108,7 +112,8 @@ OpenRoad::init(Tcl_Interp *tcl_interp,
initFlute(prog_arg);
initReplace(this);
initOpendp(this);

initFastRoute(this);

// Import exported commands to global namespace.
Tcl_Eval(tcl_interp, "sta::define_sta_cmds");
Tcl_Eval(tcl_interp, "namespace import sta::*");
Expand Down

0 comments on commit 3f6ca42

Please sign in to comment.