-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathflow_v_discrete_LTL.ys
61 lines (41 loc) · 1.38 KB
/
flow_v_discrete_LTL.ys
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Verilog to Discrete LED-Transistor-Logic
# read design source
read_verilog design.v
hierarchy -check
flatten
# Read verilog description of cells
read_verilog -lib ../20_SYNTH/discrete_LTL_logic_cells.v
#Wokwi cells library
#read_verilog ../20_SYNTH/cells_wokwi.v
#Synth is required here to properly map the DFF
synth
# read design source
# read_verilog design.v
# flatten, prep
# prep -flatten -auto-top
# Rename top entity to 'main'. This is important, otherwise other parts of the flow may break.
rename -top main
# Draw netlist of elaborated design
show -format pdf -prefix 200_diagramm_hdl_elaborated
dfflibmap -liberty ../20_SYNTH/discrete_LTL_logic_liberty.lib
#stat
# Insert tristate buffers (ATTENTION: Currently not a supported cell type during P&R)
# tribuf
# Technology mapping
techmap
proc; opt; fsm; opt;
#dfflibmap -liberty ../20_SYNTH/discrete_LTL_logic_liberty.lib
proc; opt;
abc -liberty ../20_SYNTH/discrete_LTL_logic_liberty.lib
opt -purge
opt_clean -purge
# hierarchy -purge_lib
# Print Statistics
stat -liberty ../20_SYNTH/discrete_LTL_logic_liberty.lib
# Draw netlist of optimized and mapped design
show -format pdf -prefix 201_diagramm_after_mapping
# Remove top attribute from main module, so a proper spice subckt is generated
setattr -mod -unset top main
# Write out in spice format
write_spice 209_synthesized_output.sp
write_json 210_synthesized_output.json