Skip to content

Commit 87dd09a

Browse files
committedJan 6, 2016
gateware: compress bitstreams
1 parent 0bbe886 commit 87dd09a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

Diff for: ‎artiq/gateware/targets/kc705.py

+6
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ def __init__(self, cpu_type="or1k", **kwargs):
118118
ident=artiq_version,
119119
**kwargs)
120120
AMPSoC.__init__(self)
121+
if isinstance(self.platform.toolchain, XilinxVivadoToolchain):
122+
self.platform.toolchain.bitstream_commands.extend([
123+
"set_property BITSTREAM.GENERAL.COMPRESS True [current_design]",
124+
])
125+
if isinstance(self.platform.toolchain, XilinxISEToolchain):
126+
self.platform.toolchain.bitgen_opt += " -g compress"
121127

122128
self.submodules.leds = gpio.GPIOOut(Cat(
123129
self.platform.request("user_led", 0),

Diff for: ‎artiq/gateware/targets/pipistrello.py

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def __init__(self, cpu_type="or1k", **kwargs):
126126

127127
platform = self.platform
128128

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

0 commit comments

Comments
 (0)
Please sign in to comment.