Skip to content

Commit d866f8b

Browse files
committed
openflow: re-added Synthesis for Xilinx devices
1 parent d584bce commit d866f8b

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

pyfpga/templates/openflow.jinja

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,35 +37,24 @@ read_verilog -defer -sv {{ name }}
3737
chparam{% for key, value in params.items() %} -set {{ key }} {{ value }}{% endfor %}
3838
{% endif %}
3939

40-
{% if top %}# Top-level specification
40+
# Top-level specification and Syntesis
41+
{% if family in ['ice40', 'ecp5'] %}
42+
synth_{{ family }} -top {{ top }} -json {{ project }}.json
43+
{% elif family in ['xc6s', 'xc6v', 'xc5v', 'xc4v', 'xc3sda', 'xc3sa', 'xc3se', 'xc3s', 'xc2vp', 'xc2v', 'xcve', 'xcv'] %}
44+
synth_xilinx -top {{ top }} -family {{ family }}
45+
write_edif -pvector bra {{ project }}.edif -ise
46+
{% elif family %}
47+
synth_xilinx -top {{ top }} -family {{ family }}
48+
write_edif -pvector bra {{ project }}.edif
49+
{% else %}
4150
synth -top {{ top }}
51+
write_verilog {{ project }}.v
4252
{% endif %}
43-
44-
synth_{{ family }} -top {{ top }} -json {{ project }}.json
4553
'
4654
{% if hooks %}{{ hooks.postsyn | join('\n') }}{% endif %}
4755
"
4856
{% endif %}
4957

50-
{#
51-
#SYNTH=
52-
#WRITE=
53-
#if [[ $BACKEND == "vivado" ]]; then
54-
# SYNTH="synth_xilinx -top $TOP -family $FAMILY"
55-
# WRITE="write_edif -pvector bra $PROJECT.edif"
56-
#elif [[ $BACKEND == "ise" ]]; then
57-
# SYNTH="synth_xilinx -top $TOP -family $FAMILY -ise"
58-
# WRITE="write_edif -pvector bra $PROJECT.edif"
59-
#elif [[ $BACKEND == "nextpnr" ]]; then
60-
# SYNTH="synth_$FAMILY -top $TOP -json $PROJECT.json"
61-
#elif [[ $BACKEND == "verilog-nosynth" ]]; then
62-
# WRITE="write_verilog $PROJECT.v"
63-
#else
64-
# SYNTH="synth -top $TOP"
65-
# WRITE="write_verilog $PROJECT.v"
66-
#fi
67-
#}
68-
6958
{% if 'par' in steps %}# Place and Route
7059

7160
CONSTRAINTS="{{ constraints | join(' ') }}"

0 commit comments

Comments
 (0)