integration/soc: Convert sys_clk_freq to int in SoC to allow passing float to SoC.

This commit is contained in:
Florent Kermarrec 2022-11-10 10:08:41 +01:00
parent 1e2ad2250d
commit 01b9ae7894
2 changed files with 2 additions and 2 deletions

View File

@ -847,7 +847,7 @@ class SoC(LiteXModule, SoCCoreCompat):
# SoC attributes ---------------------------------------------------------------------------
self.platform = platform
self.sys_clk_freq = sys_clk_freq
self.sys_clk_freq = int(sys_clk_freq) # Do conversion to int here to allow passing float to SoC.
self.constants = {}
self.csr_regions = {}

View File

@ -111,7 +111,7 @@ class SoCCore(LiteXSoC):
# Others
**kwargs):
# New LiteXSoC class ----------------------------------------------------------------------------
# New LiteXSoC class -----------------------------------------------------------------------
LiteXSoC.__init__(self, platform, clk_freq,
bus_standard = bus_standard,
bus_data_width = bus_data_width,