mirror of
https://github.com/The-OpenROAD-Project/OpenDB.git
synced 2026-03-06 17:31:17 +08:00
16 lines
481 B
Python
16 lines
481 B
Python
import opendbpy as odb
|
|
import os
|
|
|
|
current_dir = os.path.dirname(os.path.realpath(__file__))
|
|
tests_dir = os.path.abspath(os.path.join(current_dir, os.pardir))
|
|
opendb_dir = os.path.abspath(os.path.join(tests_dir, os.pardir))
|
|
data_dir = os.path.join(tests_dir, "data")
|
|
|
|
db = odb.dbDatabase.create()
|
|
odb.read_lef(db, os.path.join(data_dir, "gscl45nm.lef"))
|
|
odb.read_def(db, os.path.join(data_dir, "design.def"))
|
|
chip = db.getChip()
|
|
if chip == None:
|
|
exit("Read DEF Failed")
|
|
exit()
|