Skip to content

Commit

Permalink
Merge pull request #38 from siliconcompiler/generate
Browse files Browse the repository at this point in the history
copy cells early
  • Loading branch information
gadfort authored Feb 15, 2024
2 parents d906b32 + 72ae239 commit 38fb24e
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 38fb24e

Please sign in to comment.