Skip to content

Commit

Permalink
gateware: compress bitstreams
Browse files Browse the repository at this point in the history
jordens committed Jan 6, 2016
1 parent 0bbe886 commit 87dd09a
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions artiq/gateware/targets/kc705.py
Original file line number Diff line number Diff line change
@@ -118,6 +118,12 @@ def __init__(self, cpu_type="or1k", **kwargs):
ident=artiq_version,
**kwargs)
AMPSoC.__init__(self)
if isinstance(self.platform.toolchain, XilinxVivadoToolchain):
self.platform.toolchain.bitstream_commands.extend([
"set_property BITSTREAM.GENERAL.COMPRESS True [current_design]",
])
if isinstance(self.platform.toolchain, XilinxISEToolchain):
self.platform.toolchain.bitgen_opt += " -g compress"

self.submodules.leds = gpio.GPIOOut(Cat(
self.platform.request("user_led", 0),
1 change: 1 addition & 0 deletions artiq/gateware/targets/pipistrello.py
Original file line number Diff line number Diff line change
@@ -126,6 +126,7 @@ def __init__(self, cpu_type="or1k", **kwargs):

platform = self.platform

platform.toolchain.bitgen_opt += " -g compress"
platform.toolchain.ise_commands += """
trce -v 12 -fastpaths -tsi {build_name}.tsi -o {build_name}.twr {build_name}.ncd {build_name}.pcf
"""

0 comments on commit 87dd09a

Please sign in to comment.