From cf8eaabd784f4a2f87eba806d536bda5041ccf53 Mon Sep 17 00:00:00 2001 From: MorganTL Date: Fri, 4 Aug 2023 14:32:21 +0800 Subject: [PATCH] add "hw_rev" rustc_cfg --- src/gateware/kasli_soc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gateware/kasli_soc.py b/src/gateware/kasli_soc.py index cba6538..b00c001 100755 --- a/src/gateware/kasli_soc.py +++ b/src/gateware/kasli_soc.py @@ -87,6 +87,8 @@ class GenericStandalone(SoCCore): self.acpki = acpki self.rustc_cfg = dict() + self.rustc_cfg["hw_rev"] = description["hw_rev"] + platform = kasli_soc.Platform() platform.toolchain.bitstream_commands.extend([ "set_property BITSTREAM.GENERAL.COMPRESS True [current_design]", @@ -179,6 +181,8 @@ class GenericMaster(SoCCore): self.acpki = acpki self.rustc_cfg = dict() + self.rustc_cfg["hw_rev"] = description["hw_rev"] + platform = kasli_soc.Platform() platform.toolchain.bitstream_commands.extend([ "set_property BITSTREAM.GENERAL.COMPRESS True [current_design]", @@ -321,6 +325,8 @@ class GenericSatellite(SoCCore): self.acpki = acpki self.rustc_cfg = dict() + self.rustc_cfg["hw_rev"] = description["hw_rev"] + platform = kasli_soc.Platform() platform.toolchain.bitstream_commands.extend([ "set_property BITSTREAM.GENERAL.COMPRESS True [current_design]",