-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathyosys.tcl
More file actions
15 lines (11 loc) · 1.11 KB
/
yosys.tcl
File metadata and controls
15 lines (11 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
yosys read_verilog -D FUNCTIONAL -D PnR -sv -setattr keep_hierarchy -lib ip/fabric/macro/ihp-sg13g2/nl/eFPGA.nl.v
yosys read_verilog -D FUNCTIONAL -D PnR -sv -setattr keep_hierarchy -lib ip/RM_IHPSG13_1P_1024x32_c2_bm_bist/verilog/RM_IHPSG13_1P_1024x32_c2_bm_bist.v
yosys read_verilog -D FUNCTIONAL -D PnR -sv -setattr keep_hierarchy -lib ip/RM_IHPSG13_2P_1024x16_c2_bm_bist/verilog/RM_IHPSG13_2P_1024x16_c2_bm_bist.v
yosys read_verilog -D FUNCTIONAL -D PnR -sv -setattr keep_hierarchy -lib $::env(PDK_ROOT)/$::env(PDK)/libs.ref/sg13g2_io/verilog/sg13g2_io.v
#yosys read_verilog -D FUNCTIONAL -D PnR -sv -setattr keep_hierarchy -lib $::env(PDK_ROOT)/$::env(PDK)/libs.ref/sg13g2_stdcell/verilog/sg13g2_stdcell.v
# Because of yosys bug: https://github.com/YosysHQ/yosys/pull/5121
yosys read_verilog -sv -setattr keep_hierarchy -lib tb/sg13g2_stdcell.bb.v
yosys read_slang --ignore-assertions --keep-hierarchy -I ip/obi/include/ -I ip/common_cells/include/ -D FUNCTIONAL -D PnR -D DEBUG {*}$::env(SLANG_FILES) --top $::env(TOP)
yosys prep -top $::env(TOP)
#yosys synth -top $::env(TOP)
yosys write_verilog -sv -defparam $::env(OUTFILE)