Skip to content

Commit

Permalink
copy cells early
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Feb 15, 2024
1 parent d906b32 commit 72ae239
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lambdalib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def generate(target, logiclib, outputpath, la_lib='stdlib', exclude=None):
except FileNotFoundError:
pass

os.makedirs(outputpath, exist_ok=True)
copy(outputpath, la_lib, exclude)

if isinstance(target, str):
target_name = target
Expand All @@ -134,12 +134,8 @@ def generate(target, logiclib, outputpath, la_lib='stdlib', exclude=None):
chip.set('option', 'resume', True)
chip.set('option', 'jobname', f"{target_name}-{logiclib}")

chip.add('option', 'ydir', cells_dir)
chip.add('option', 'ydir', outputpath)
chip.run()

result = chip.find_result("vg", step="syn", index=0)
shutil.copy(result, os.path.join(outputpath, cell_file))

if exclude:
org_cells.update(exclude)
copy(outputpath, la_lib, org_cells)

0 comments on commit 72ae239

Please sign in to comment.