lattice/icestorm: enable DSP inference with Yosys and avoid setting SPI Flash in deep sleep mode after configuration which prevent running ROM CPU code from SPI Flash.

This commit is contained in:
Florent Kermarrec 2020-03-09 16:51:11 +01:00
parent 37869e38b8
commit 197bdcb026
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ def _build_pre_pack(vns, clocks):
_yosys_template = [ _yosys_template = [
"{read_files}", "{read_files}",
"attrmap -tocase keep -imap keep=\"true\" keep=1 -imap keep=\"false\" keep=0 -remove keep=0", "attrmap -tocase keep -imap keep=\"true\" keep=1 -imap keep=\"false\" keep=0 -remove keep=0",
"synth_ice40 {synth_opts} -json {build_name}.json -top {build_name}", "synth_ice40 {synth_opts} -json {build_name}.json -top {build_name} -dsp",
] ]
def _yosys_import_sources(platform): def _yosys_import_sources(platform):
@ -91,7 +91,7 @@ _build_template = [
"yosys -l {build_name}.rpt {build_name}.ys", "yosys -l {build_name}.rpt {build_name}.ys",
"nextpnr-ice40 --json {build_name}.json --pcf {build_name}.pcf --asc {build_name}.txt \ "nextpnr-ice40 --json {build_name}.json --pcf {build_name}.pcf --asc {build_name}.txt \
--pre-pack {build_name}_pre_pack.py --{architecture} --package {package}", --pre-pack {build_name}_pre_pack.py --{architecture} --package {package}",
"icepack {build_name}.txt {build_name}.bin" "icepack -s {build_name}.txt {build_name}.bin"
] ]
def _build_script(build_template, build_name, architecture, package): def _build_script(build_template, build_name, architecture, package):