Skip to content

Commit

Permalink
gateware/info: Only use DNA on Xilinx devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Feb 1, 2020
1 parent 9b85314 commit 0b6fb32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gateware/info/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 0b6fb32

Please sign in to comment.