integration/soc: Convert sys_clk_freq to int in SoC to allow passing float to SoC.
This commit is contained in:
parent
1e2ad2250d
commit
01b9ae7894
|
@ -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 = {}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue