Skip to content

Commit

Permalink
WIP: pnr none
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Jul 2, 2019
1 parent 4887cdc commit 0f0b4fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion edalize/icestorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def configure_main(self):
raise RuntimeError("Icestorm backend supports only one PCF file. Found {}".format(', '.join(pcf_files)))

pnr = self.tool_options.get('pnr', 'arachne')
if not pnr in ['arachne', 'next']:
if not pnr in ['arachne', 'next', 'none']:
raise RuntimeError("Invalid pnr option '{}'. Valid values are 'arachne' for Arachne-pnr or 'next' for nextpnr".format(pnr))
# Write Makefile
arachne_pnr_options = self.tool_options.get('arachne_pnr_options', [])
Expand All @@ -95,6 +95,7 @@ def configure_main(self):
'pnr' : pnr,
'arachne_pnr_options' : arachne_pnr_options,
'nextpnr_options' : nextpnr_options,
'default_target' : 'json' if pnr == 'none' else 'bin',
}
self.render_template('icestorm-makefile.j2',
'Makefile',
Expand Down
2 changes: 1 addition & 1 deletion edalize/templates/icestorm/icestorm-makefile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PNR ?= {{ pnr }}
ARACHNE_PNR_OPTIONS := {{ arachne_pnr_options|join(' ') }}
NEXTPNR_OPTIONS := {{ nextpnr_options|join(' ') }}

all: $(TARGET).bin
all: $(TARGET).{{ default_target }}

%.blif: %.ys
yosys -l yosys.log -q -s $?
Expand Down

0 comments on commit 0f0b4fb

Please sign in to comment.