Skip to content

Commit 55f3a06

Browse files
authored
Merge pull request #10090 from mikesinouye/tech
ord: Set Tech name when using Tech API programmatically
2 parents 8cc86e2 + cff5d54 commit 55f3a06

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/Tech.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ void Tech::readLef(const std::string& file_name)
6565
lib_name.erase(lib_name.begin() + dot_pos, lib_name.end());
6666
}
6767

68+
const char* tech_name = make_tech ? lib_name.c_str() : "";
6869
app_->readLef(
69-
file_name.c_str(), lib_name.c_str(), "", make_tech, make_library);
70+
file_name.c_str(), lib_name.c_str(), tech_name, make_tech, make_library);
7071
}
7172

7273
void Tech::readLiberty(const std::string& file_name)

test/timing_report_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
tech.readLef("Nangate45/Nangate45_tech.lef")
1717
tech.readLef("Nangate45/Nangate45_stdcell.lef")
1818

19+
assert tech.getTech().getName() != ""
20+
1921
design = Design(tech)
2022
design.readDef("gcd_nangate45.def")
2123
design.evalTclString("read_sdc timing_api_3.sdc")

0 commit comments

Comments
 (0)