2021-02-26 01:11:32 +08:00
|
|
|
yosys -import
|
|
|
|
|
2021-03-12 20:53:09 +08:00
|
|
|
read_verilog $::env(SOURCES)
|
2021-02-26 01:11:32 +08:00
|
|
|
|
|
|
|
synth_xilinx -nolutram -nowidelut -nosrl -nocarry -nodsp
|
|
|
|
techmap -map ../remap.v
|
|
|
|
|
|
|
|
# opt_expr -undriven makes sure all nets are driven, if only by the $undef
|
|
|
|
# net.
|
|
|
|
opt_expr -undriven
|
|
|
|
opt_clean
|
|
|
|
|
|
|
|
setundef -zero -params
|
|
|
|
|
2021-03-12 20:53:09 +08:00
|
|
|
write_json $::env(OUT_JSON)
|