mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
modify generator for pyosys/wrappers.cc instead of headers
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from pathlib import Path
|
||||
|
||||
from pyosys import libyosys as ys
|
||||
|
||||
__file_dir__ = Path(__file__).absolute().parent
|
||||
|
||||
design = ys.Design()
|
||||
design.run_pass(
|
||||
["read_verilog", str(__file_dir__.parent / "simple" / "fiedler-cooley.v")]
|
||||
)
|
||||
design.run_pass("prep")
|
||||
design.run_pass(["opt", "-full"])
|
||||
Reference in New Issue
Block a user