Skip to content
Snippets Groups Projects
Unverified Commit a663df28 authored by Mohamed Gaber's avatar Mohamed Gaber Committed by GitHub
Browse files

Update OpenROAD (#2093)

~ `openroad_app` -> `0889970`
~ `scripts/odbpy/reader.py`: Added workaround to continue to be able to use multiple DBs, See https://github.com/The-OpenROAD-Project/OpenROAD/discussions/4743 for more info
parent 9dbd8b5e
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@
in_install: false
- name: openroad_app
repo: https://github.com/The-OpenROAD-Project/OpenROAD
commit: 75f2f325b7a42e56a92404f33af8e96530d9b202
commit: 0889970d1790a2617e69f253221b8bd7626e51dc
in_install: false
- name: git
repo: https://github.com/git/git
......
......@@ -11,19 +11,33 @@
# 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 odb
import os
import sys
import inspect
import functools
from typing import Optional
import click
import odb
from utl import Logger
from openroad import Tech, Design
class OdbReader(object):
logger: Optional[Logger] = None
def __init__(self, *args):
self.db = odb.dbDatabase.create()
if self.__class__.logger is None:
ord_tech = Tech()
design = Design(ord_tech)
self.db = ord_tech.getDB()
self.__class__.logger = design.getLogger()
else:
self.db = odb.dbDatabase.create()
self.db.setLogger(self.__class__.logger)
if len(args) == 1:
db_in = args[0]
self.db = odb.read_db(self.db, db_in)
......@@ -77,6 +91,7 @@ def click_odb(function):
if output_def is not None:
odb.write_def(reader.block, output_def)
sys.stdout.flush()
odb.write_db(reader.db, output)
wrapper = click.option(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment