Skip to content

Commit

Permalink
Clean root directory by moving some files to resources
Browse files Browse the repository at this point in the history
  • Loading branch information
trickybestia committed Feb 8, 2024
1 parent 7e3ac2a commit 186fc40
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
__pycache__

/blueprints
/scrap_mechanic_cells.lib
/scrap_mechanic_cells.sv
/resources/scrap_mechanic_cells.lib
/resources/scrap_mechanic_cells.sv
12 changes: 6 additions & 6 deletions create_blueprint/yosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ def _create_yosys_script(
dfflegalize -cell $_DFF_P_ x
opt -nodffe -nosdff -full
techmap -map ff_map.sv
techmap -map resources/ff_map.sv
techmap; opt -full
abc -liberty scrap_mechanic_cells.lib -dff
techmap -map buf_map.sv
abc -liberty resources/scrap_mechanic_cells.lib -dff
techmap -map resources/buf_map.sv
opt -full
{f"show -lib scrap_mechanic_cells.sv -format dot -viewer none -stretch -prefix {module_flowchart_prefix} {top_module}" if module_flowchart_prefix is not None else ""}
{f"show -lib resources/scrap_mechanic_cells.sv -format dot -viewer none -stretch -prefix {module_flowchart_prefix} {top_module}" if module_flowchart_prefix is not None else ""}
write_json {blueprints_path / top_module / f"{top_module}.json"}
stat
"""
Expand All @@ -104,8 +104,8 @@ def compile(
module_flowchart_prefix: Union[str, None],
blueprints_path: Path,
) -> str:
Path("scrap_mechanic_cells.lib").write_text(_create_cells_liberty(cells))
Path("scrap_mechanic_cells.sv").write_text(_create_cells_verilog(cells))
Path("resources/scrap_mechanic_cells.lib").write_text(_create_cells_liberty(cells))
Path("resources/scrap_mechanic_cells.sv").write_text(_create_cells_verilog(cells))

run(
["yosys", "-s", "-"],
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 186fc40

Please sign in to comment.