From 0b6fb32440cf645c9108329d4d9405e09c96b940 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Thu, 30 Jan 2020 21:03:03 +0100 Subject: [PATCH] gateware/info: Only use DNA on Xilinx devices. --- gateware/info/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gateware/info/__init__.py b/gateware/info/__init__.py index 2cc968699..45a772ca2 100644 --- a/gateware/info/__init__.py +++ b/gateware/info/__init__.py @@ -14,11 +14,12 @@ class Info(Module, AutoCSR): def __init__(self, platform, target_name): - self.submodules.dna = dna.DNA() self.submodules.git = git.GitInfo() target = target_name.lower()[:-3] self.submodules.platform = platform_info.PlatformInfo(platform.name, target) + if "xc" in platform.device: + self.submodules.dna = dna.DNA() if "xc7" in platform.device: self.submodules.xadc = xadc.XADC()