forked from The-OpenROAD-Project/OpenROAD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Felipe Garay <fgaray@google.com>
- Loading branch information
Showing
11 changed files
with
99 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
|
||
#include "ScanArchitectConfig.hh" | ||
|
||
#include "Utils.hh" | ||
#include "Formatting.hh" | ||
|
||
namespace dft { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <spdlog/fmt/fmt.h> | ||
|
||
#include <optional> | ||
#include <string> | ||
|
||
namespace dft::utils { | ||
|
||
// Helper to format optional values for the config reports | ||
template <typename T> | ||
std::string FormatForReport(const std::optional<T>& opt) | ||
{ | ||
if (opt.has_value()) { | ||
return fmt::format("{}", opt.value()); | ||
} | ||
return "Undefined"; | ||
} | ||
|
||
} // namespace dft::utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
find_package(Boost) | ||
include("openroad") | ||
|
||
|
||
set(DFT_HOME ${PROJECT_SOURCE_DIR}) | ||
|
||
set(TEST_LIBS | ||
utl_lib | ||
dbSta_lib | ||
gtest | ||
gmock | ||
gtest_main | ||
odb | ||
dft_cells_lib | ||
dft_base_scan_cell_lib | ||
dft_config_lib | ||
dft_architect_lib | ||
dft_clock_domain_lib | ||
dft_utils_lib | ||
dft_utils_scan_pin_lib | ||
) | ||
|
||
add_executable(TestScanArchitect TestScanArchitect.cpp) | ||
target_link_libraries(TestScanArchitect ${TEST_LIBS}) | ||
gtest_discover_tests(TestScanArchitect WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
add_executable(TestScanArchitectHeuristic TestScanArchitectHeuristic.cpp ScanCellMock.cpp) | ||
target_link_libraries(TestScanArchitectHeuristic ${TEST_LIBS}) | ||
target_include_directories(TestScanArchitectHeuristic | ||
PRIVATE | ||
${DFT_HOME}/src | ||
) | ||
gtest_discover_tests(TestScanArchitectHeuristic WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
|
||
add_executable(TestScanArchitect TestScanArchitect.cpp) | ||
target_link_libraries(TestScanArchitect ${TEST_LIBS}) | ||
target_include_directories(TestScanArchitect | ||
PRIVATE | ||
${DFT_HOME}/src | ||
add_dependencies(build_and_test | ||
TestScanArchitect | ||
TestScanArchitectHeuristic | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters