Allow building digilent_arty using f4pga

Only use XADC() and DNA() functions if vivado is the current toolchain.
This commit is contained in:
Luc Lagarde 2023-01-06 16:09:56 -06:00 committed by GitHub
parent 6658f20682
commit 7a911b8ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -91,11 +91,13 @@ class BaseSoC(SoCCore):
SoCCore.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Arty A7", **kwargs) SoCCore.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Arty A7", **kwargs)
# XADC ------------------------------------------------------------------------------------- # XADC -------------------------------------------------------------------------------------
self.xadc = XADC() if toolchain == "vivado":
self.xadc = XADC()
# DNA -------------------------------------------------------------------------------------- # DNA --------------------------------------------------------------------------------------
self.dna = DNA() if toolchain == "vivado":
self.dna.add_timing_constraints(platform, sys_clk_freq, self.crg.cd_sys.clk) self.dna = DNA()
self.dna.add_timing_constraints(platform, sys_clk_freq, self.crg.cd_sys.clk)
# DDR3 SDRAM ------------------------------------------------------------------------------- # DDR3 SDRAM -------------------------------------------------------------------------------
if not self.integrated_main_ram_size: if not self.integrated_main_ram_size: