From b778ba5f708898d9e5e00941b98ed2d054909a33 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 27 Apr 2022 15:01:09 +0200 Subject: [PATCH] sqrl_acorn: Add XADC/DNA (For LitePCIe driver test). --- litex_boards/targets/sqrl_acorn.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/litex_boards/targets/sqrl_acorn.py b/litex_boards/targets/sqrl_acorn.py index 52ecac2..50e1d31 100755 --- a/litex_boards/targets/sqrl_acorn.py +++ b/litex_boards/targets/sqrl_acorn.py @@ -35,6 +35,8 @@ from litex.soc.integration.builder import * from litex.soc.cores.clock import * from litex.soc.cores.led import LedChaser +from litex.soc.cores.xadc import XADC +from litex.soc.cores.dna import DNA from litedram.modules import MT41K512M16 from litedram.phy import s7ddrphy @@ -80,6 +82,13 @@ class BaseSoC(SoCCore): # SoCCore ---------------------------------------------------------------------------------- SoCCore.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Acorn CLE-101/215(+)", **kwargs) + # XADC ------------------------------------------------------------------------------------- + self.submodules.xadc = XADC() + + # DNA -------------------------------------------------------------------------------------- + self.submodules.dna = DNA() + self.dna.add_timing_constraints(platform, sys_clk_freq, self.crg.cd_sys.clk) + # DDR3 SDRAM ------------------------------------------------------------------------------- if not self.integrated_main_ram_size: self.submodules.ddrphy = s7ddrphy.A7DDRPHY(platform.request("ddram"),