-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptimised.tcl
30 lines (30 loc) · 928 Bytes
/
optimised.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# read modules from verilog file
read_verilog elevator.v
# elborate design hierarchy
hierarchy -check -top elevator
#translate processes to netlist
proc
# remove unused cells and wire
clean
# perform optimization
opt
# resource sharing optimization
share -aggressive
#show genric netlist
show
# mapping tointernal cell library
techmap
# mapping filp-flops to Nangateopencelllibrary_typical.lib
dfflibmap -liberty Nangateopencelllibrary_typical.lib
# mapping logic to Nangateopencelllibrary_typical.lib
abc -liberty Nangateopencelllibrary_typical.lib
# removed unused cell and wires
clean
# report design statistics
stat -liberty Nangateopencelllibrary_typical.lib
# write the current design to a verilog file
write_verilog -noattr -noexpr -nohex -nodec elevator_netlist.v
# to get netlist in json formate
write_json elevator_netlist.json
#show genric netlist
show -prefix elc -notitle -colors 2 -width -format dot