From 18cd020ded38a50b1f8dcb0d2e83ca18dc010109 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Wed, 29 Mar 2023 07:25:30 -0700 Subject: [PATCH 1/3] Network::groupPorts memory error Signed-off-by: James Cherry --- network/ConcreteLibrary.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/ConcreteLibrary.cc b/network/ConcreteLibrary.cc index 6072a5db..d4547bfe 100644 --- a/network/ConcreteLibrary.cc +++ b/network/ConcreteLibrary.cc @@ -342,7 +342,7 @@ private: BusPort::BusPort(const char *name, int from, PortDirection *direction) : - name_(name), + name_(stringCopy(name)), from_(from), to_(from), direction_(direction), From 58f475ef8352897f22b5efe231295d7f9394892f Mon Sep 17 00:00:00 2001 From: James Cherry Date: Wed, 29 Mar 2023 08:04:11 -0700 Subject: [PATCH 2/3] cmake link Signed-off-by: James Cherry --- CMakeLists.txt | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 222bbedf..49218a63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -473,7 +473,10 @@ configure_file(${STA_HOME}/util/StaConfig.hh.cmake # compatibility with configure set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${STA_HOME}/app) -add_library(OpenSTA +add_library(OpenSTA) + +target_sources(OpenSTA + PRIVATE ${STA_SOURCE} ${STA_TCL_INIT} @@ -493,6 +496,23 @@ add_library(OpenSTA ${BISON_VerilogParser_OUTPUTS} ) +target_link_libraries(OpenSTA + ${TCL_LIBRARY} + ${CMAKE_THREAD_LIBS_INIT} + ) + +if (TCL_READLINE_LIBRARY) + target_link_libraries(OpenSTA ${TCL_READLINE_LIBRARY}) +endif() + +if (ZLIB_LIBRARIES) + target_link_libraries(OpenSTA ${ZLIB_LIBRARIES}) +endif() + +if (CUDD_LIB) + target_link_libraries(OpenSTA ${CUDD_LIB}) +endif() + target_include_directories(OpenSTA PUBLIC include @@ -534,22 +554,8 @@ add_executable(sta app/Main.cc) target_link_libraries(sta sta_swig OpenSTA - ${TCL_LIBRARY} - ${CMAKE_THREAD_LIBS_INIT} ) -if (TCL_READLINE_LIBRARY) - target_link_libraries(sta ${TCL_READLINE_LIBRARY}) -endif() - -if (ZLIB_LIBRARIES) - target_link_libraries(sta ${ZLIB_LIBRARIES}) -endif() - -if (CUDD_LIB) - target_link_libraries(sta ${CUDD_LIB}) -endif() - message(STATUS "STA executable: ${STA_HOME}/app/sta") ################################################################ From afb5a910ac2b97138a445e00fae74dda64f4fa09 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Wed, 29 Mar 2023 08:11:04 -0700 Subject: [PATCH 3/3] power ok Signed-off-by: James Cherry --- test/power.ok | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/power.ok b/test/power.ok index efd85364..6d6e32b2 100644 --- a/test/power.ok +++ b/test/power.ok @@ -2,10 +2,10 @@ Warning: gcd_sky130hd.v line 527, module sky130_fd_sc_hd__tapvpwrvgnd_1 not foun Group Internal Switching Leakage Total Power Power Power Power (Watts) ---------------------------------------------------------------- -Sequential 3.41e-04 8.87e-05 2.96e-10 4.30e-04 35.1% -Combinational 3.18e-04 4.78e-04 6.98e-10 7.96e-04 64.9% +Sequential 3.39e-04 8.75e-05 2.96e-10 4.27e-04 35.7% +Combinational 3.07e-04 4.63e-04 6.98e-10 7.69e-04 64.3% Macro 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.0% Pad 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.0% ---------------------------------------------------------------- -Total 6.59e-04 5.66e-04 9.94e-10 1.23e-03 100.0% - 53.8% 46.2% 0.0% +Total 6.46e-04 5.50e-04 9.94e-10 1.20e-03 100.0% + 54.0% 46.0% 0.0%