-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OpenROAD + Handle Breaking Changes (#1949)
+ update utils.py `fetch_submodules_from_tarballs` to handle relative submodule url ~ `openroad_app` -> `0a6d0fd` ~ add extractor for operating conditions Co-authored-by: Donn <[email protected]>
- Loading branch information
1 parent
5fb033c
commit d03ecd9
Showing
14 changed files
with
91 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
cmake | ||
pyinstaller | ||
cmake |
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,4 +1,4 @@ | ||
click>=8.0.0,<9 | ||
pyyaml>=6,<7 | ||
install>=1.3.5,<2 | ||
XlsxWriter>=3.0.2,<4 | ||
XlsxWriter>=3.0.2,<4 | ||
git+https://github.com/efabless/[email protected] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/Dockerfile |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
-r ./dependencies/python/precompile_time.txt | ||
-r ./dependencies/python/run_time.txt | ||
click>=8.0.0,<9 | ||
pyyaml>=6,<7 |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright 2023 Efabless Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
import sys | ||
|
||
import click | ||
from libparse import LibertyParser | ||
|
||
|
||
@click.command() | ||
@click.argument("liberty", type=click.Path(dir_okay=False, exists=True)) | ||
def get_default_operating_conditions(liberty): | ||
library = LibertyParser(open(liberty)) | ||
ast = library.ast | ||
|
||
default_operating_conditions_id = None | ||
operating_conditions_raw = {} | ||
for child in ast.children: | ||
if child.id == "default_operating_conditions": | ||
default_operating_conditions_id = child.value | ||
if child.id == "operating_conditions": | ||
operating_conditions_raw[child.args[0]] = child | ||
|
||
if default_operating_conditions_id is None: | ||
if len(operating_conditions_raw) > 1: | ||
print( | ||
"No default operating condition defined, and the liberty file has multiple operating conditions.", | ||
file=sys.stderr, | ||
) | ||
exit(-1) | ||
elif len(operating_conditions_raw) < 1: | ||
print("Liberty file has no operating conditions.", file=sys.stderr) | ||
exit(-1) | ||
default_operating_conditions_id = list(operating_conditions_raw.keys())[0] | ||
|
||
print(f"{ast.args[0]}:{default_operating_conditions_id}", end="") | ||
|
||
|
||
if __name__ == "__main__": | ||
get_default_operating_conditions() |