Skip to content

Commit

Permalink
fix: remove openlane1 config generator
Browse files Browse the repository at this point in the history
it's no longer needed for OpenLane2
  • Loading branch information
urish committed Jun 17, 2023
1 parent 8549004 commit 25488cf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 144 deletions.
19 changes: 0 additions & 19 deletions caravel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,6 @@ def __init__(self, config, projects, num_projects):
self.num_projects = num_projects
self.script_dir = os.path.dirname(os.path.realpath(__file__))

# update caravel config
def create_macro_config(self, extra_macros=[]):
with open(os.path.join(self.script_dir, 'caravel_template', 'upw_config.json')) as fh:
caravel_config = json.load(fh)

logging.info("GDS and LEF")
lef_prefix = "dir::../../lef/"
gds_prefix = "dir::../../gds/"
for macro_name in extra_macros:
caravel_config["EXTRA_LEFS"].append(f"{lef_prefix}{macro_name}.lef")
caravel_config["EXTRA_GDS_FILES"].append(f"{gds_prefix}{macro_name}.gds")
for project in self.projects:
if not project.is_fill():
caravel_config["EXTRA_LEFS"].append(lef_prefix + project.get_macro_lef_filename())
caravel_config["EXTRA_GDS_FILES"].append(gds_prefix + project.get_macro_gds_filename())

with open("openlane/user_project_wrapper/config.json", 'w') as fh:
json.dump(caravel_config, fh, indent=4)

# instantiate inside user_project_wrapper
def instantiate(self, extra_macros=[]):
# build the blackbox_project_includes.v file - used for blackboxing when building the GDS
Expand Down
124 changes: 0 additions & 124 deletions caravel_template/upw_config.json

This file was deleted.

1 change: 0 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ def count_items(lst):
extra_macros = []
if args.sram_support:
extra_macros = ["sky130_sram_2kbyte_1rw1r_32x512_8"]
caravel.create_macro_config(extra_macros)
caravel.instantiate(extra_macros)
if not args.test:
docs.build_index()
Expand Down

0 comments on commit 25488cf

Please sign in to comment.