aboutsummaryrefslogtreecommitdiffstats
path: root/generic/viaduct/okami/synth_okami.tcl
blob: 1a0212eb54e8c3098928908292f6c151bdf818b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Usage
# tcl synth_okami.tcl {out.json}

yosys read_verilog -lib [file dirname [file normalize $argv0]]/okami_prims.v
yosys hierarchy -check -top top
yosys proc
yosys flatten
yosys tribuf -logic
yosys deminout
yosys synth -run coarse
yosys memory_map
yosys opt -full
yosys iopadmap -bits -inpad INBUF O:PAD -outpad OUTBUF I:PAD
yosys techmap -map +/techmap.v
yosys opt -fast
yosys dfflegalize -cell \$_DFF_P_ 0
yosys abc -lut 4 -dress
yosys clean
yosys techmap -map [file dirname [file normalize $argv0]]/okami_map.v
yosys clean
yosys hierarchy -check
yosys stat

if {$argc > 0} { yosys write_json [lindex $argv 0] }