File tree Expand file tree Collapse file tree 3 files changed +34
-23
lines changed
Expand file tree Collapse file tree 3 files changed +34
-23
lines changed Original file line number Diff line number Diff line change @@ -62,21 +62,21 @@ messages(
6262 TARGET ram
6363)
6464
65- # if (Python3_FOUND AND BUILD_PYTHON)
66- # swig_lib(NAME ram_py
67- # NAMESPACE ram
68- # LANGUAGE python
69- # I_FILE src/ram-py.i
70- # SWIG_INCLUDES ${PROJECT_SOURCE_DIR}/include/ram
71- # SCRIPTS ${CMAKE_CURRENT_BINARY_DIR}/ram_py.py
72- # )
73- #
74- # target_link_libraries(ram_py
75- # PUBLIC
76- # ram
77- # odb
78- # )
79- #
80- # endif()
65+ if (Python3_FOUND AND BUILD_PYTHON)
66+ swig_lib(NAME ram_py
67+ NAMESPACE ram
68+ LANGUAGE python
69+ I_FILE src/ram-py.i
70+ SWIG_INCLUDES ${PROJECT_SOURCE_DIR} /include /ram
71+ SCRIPTS ${CMAKE_CURRENT_BINARY_DIR} /ram_py.py
72+ )
73+
74+ target_link_libraries (ram_py
75+ PUBLIC
76+ ram
77+ odb
78+ )
79+
80+ endif ()
8181
8282add_subdirectory (test )
Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ class RamGen
9090
9191 sta::dbNetwork* network_;
9292 odb::dbDatabase* db_;
93- odb::dbBlock* block_;
93+ odb::dbBlock* block_{ nullptr } ;
9494 Logger* logger_;
9595
96- odb::dbMaster* storage_cell_;
97- odb::dbMaster* tristate_cell_;
98- odb::dbMaster* inv_cell_;
99- odb::dbMaster* and2_cell_;
100- odb::dbMaster* clock_gate_cell_;
101- odb::dbMaster* buffer_cell_;
96+ odb::dbMaster* storage_cell_{ nullptr } ;
97+ odb::dbMaster* tristate_cell_{ nullptr } ;
98+ odb::dbMaster* inv_cell_{ nullptr } ;
99+ odb::dbMaster* and2_cell_{ nullptr } ;
100+ odb::dbMaster* clock_gate_cell_{ nullptr } ;
101+ odb::dbMaster* buffer_cell_{ nullptr } ;
102102};
103103
104104} // namespace ram
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: BSD-3-Clause
2+ // Copyright (c) 2022-2025, The OpenROAD Authors
3+
4+ %{
5+ #include " ord/OpenRoad.hh"
6+ #include " ram/ram.h"
7+
8+ %}
9+
10+ %include " ../../Exception-py.i"
11+ %include " ram/ram.h"
You can’t perform that action at this time.
0 commit comments