-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathflow_discrete_LTL.ys
42 lines (27 loc) · 981 Bytes
/
flow_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
# VHDL to Discrete LED-Transistor-Logic
# elaborate VHDL code from GHDL
ghdl
hierarchy -check
flatten
# Read verilog description of cells
read_verilog -lib ../20_SYNTH/discrete_LTL_logic_cells.v
# 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
# 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_clean -purge
# 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
# Write out in spice format
write_spice 209_synthesized_output.sp
write_json 210_synthesized_output.json