diff --git a/litex_boards/targets/adi_adrv2crr_fmc.py b/litex_boards/targets/adi_adrv2crr_fmc.py index 289ddb3..5613e33 100755 --- a/litex_boards/targets/adi_adrv2crr_fmc.py +++ b/litex_boards/targets/adi_adrv2crr_fmc.py @@ -61,7 +61,7 @@ class CRG(LiteXModule): # BaseSoC ----------------------------------------------------------------------------------------- class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(150e6), ddram_channel=0, with_led_chaser=True, + def __init__(self, sys_clk_freq=150e6, ddram_channel=0, with_led_chaser=True, with_pcie=False, **kwargs): platform = adi_adrv2crr_fmc.Platform() diff --git a/litex_boards/targets/adi_plutosdr.py b/litex_boards/targets/adi_plutosdr.py index 2b9db3c..b7f4de1 100755 --- a/litex_boards/targets/adi_plutosdr.py +++ b/litex_boards/targets/adi_plutosdr.py @@ -57,7 +57,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), **kwargs): + def __init__(self, sys_clk_freq=100e6, **kwargs): platform = adi_plutosdr.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/alchitry_au.py b/litex_boards/targets/alchitry_au.py index d53bb9f..8052692 100755 --- a/litex_boards/targets/alchitry_au.py +++ b/litex_boards/targets/alchitry_au.py @@ -50,7 +50,7 @@ class CRG(LiteXModule): # BaseSoC ----------------------------------------------------------------------------------------- class BaseSoC(SoCCore): - def __init__(self, variant="au", sys_clk_freq=int(83333333), with_spi_flash=False, with_led_chaser=True, **kwargs): + def __init__(self, variant="au", sys_clk_freq=83.333e6, with_spi_flash=False, with_led_chaser=True, **kwargs): platform = alchitry_au.Platform(variant=variant) # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/alchitry_mojo.py b/litex_boards/targets/alchitry_mojo.py index de97c3a..81fb179 100755 --- a/litex_boards/targets/alchitry_mojo.py +++ b/litex_boards/targets/alchitry_mojo.py @@ -92,7 +92,7 @@ class CRG(LiteXModule): # BaseSoC ----------------------------------------------------------------------------------------- class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(62.5e6), sdram_rate="1:1", with_hdmi_shield=False, + def __init__(self, sys_clk_freq=62.5e6, sdram_rate="1:1", with_hdmi_shield=False, with_sdram_shield=False, with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, with_video_colorbars=False, **kwargs): platform = alchitry_mojo.Platform() diff --git a/litex_boards/targets/aliexpress_xc7k420t.py b/litex_boards/targets/aliexpress_xc7k420t.py index 377054b..ce3a042 100755 --- a/litex_boards/targets/aliexpress_xc7k420t.py +++ b/litex_boards/targets/aliexpress_xc7k420t.py @@ -39,7 +39,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, with_spi_flash=False, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, with_spi_flash=False, **kwargs): platform = aliexpress_xc7k420t.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/alinx_ax7010.py b/litex_boards/targets/alinx_ax7010.py index 2f0708c..f9a2df4 100755 --- a/litex_boards/targets/alinx_ax7010.py +++ b/litex_boards/targets/alinx_ax7010.py @@ -36,7 +36,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, **kwargs): platform = alinx_ax7010.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/alinx_axu2cga.py b/litex_boards/targets/alinx_axu2cga.py index 4bf6173..33feae9 100755 --- a/litex_boards/targets/alinx_axu2cga.py +++ b/litex_boards/targets/alinx_axu2cga.py @@ -66,7 +66,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(25e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=25e6, with_led_chaser=True, **kwargs): platform = alinx_axu2cga.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/antmicro_artix_dc_scm.py b/litex_boards/targets/antmicro_artix_dc_scm.py index fabcd5c..478ed48 100755 --- a/litex_boards/targets/antmicro_artix_dc_scm.py +++ b/litex_boards/targets/antmicro_artix_dc_scm.py @@ -63,7 +63,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): def __init__(self, *, device, with_pcie, with_etherbone, with_ethernet, with_sdram, eth_dynamic_ip, - eth_reset_time, toolchain="vivado", sys_clk_freq=int(100e6), eth_ip="192.168.1.120", **kwargs): + eth_reset_time, toolchain="vivado", sys_clk_freq=100e6, eth_ip="192.168.1.120", **kwargs): platform = antmicro_artix_dc_scm.Platform(device=device, toolchain=toolchain) # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/antmicro_datacenter_ddr4_test_board.py b/litex_boards/targets/antmicro_datacenter_ddr4_test_board.py index 440b9b8..6cd4cb1 100755 --- a/litex_boards/targets/antmicro_datacenter_ddr4_test_board.py +++ b/litex_boards/targets/antmicro_datacenter_ddr4_test_board.py @@ -74,7 +74,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, *, sys_clk_freq=int(100e6), iodelay_clk_freq=200e6, + def __init__(self, *, sys_clk_freq=100e6, iodelay_clk_freq=200e6, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", eth_reset_time="10e-3", eth_dynamic_ip=False, with_hyperram=False, with_sdcard=False, with_jtagbone=True, with_uartbone=False, with_spi_flash=False, with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, **kwargs): diff --git a/litex_boards/targets/antmicro_lpddr4_test_board.py b/litex_boards/targets/antmicro_lpddr4_test_board.py index 7f4d209..2f5d150 100755 --- a/litex_boards/targets/antmicro_lpddr4_test_board.py +++ b/litex_boards/targets/antmicro_lpddr4_test_board.py @@ -46,7 +46,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, *, sys_clk_freq=int(50e6), iodelay_clk_freq=200e6, + def __init__(self, *, sys_clk_freq=50e6, iodelay_clk_freq=200e6, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", eth_dynamic_ip=False, with_hyperram=False, with_sdcard=False, with_jtagbone=True, with_uartbone=False, with_led_chaser=True, **kwargs): diff --git a/litex_boards/targets/arduino_mkrvidor4000.py b/litex_boards/targets/arduino_mkrvidor4000.py index f8662e5..dde92c8 100755 --- a/litex_boards/targets/arduino_mkrvidor4000.py +++ b/litex_boards/targets/arduino_mkrvidor4000.py @@ -48,7 +48,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(48e6), **kwargs): + def __init__(self, sys_clk_freq=48e6, **kwargs): platform = arduino_mkrvidor4000.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/avnet_aesku40.py b/litex_boards/targets/avnet_aesku40.py index 7d3b4c3..dc559ea 100755 --- a/litex_boards/targets/avnet_aesku40.py +++ b/litex_boards/targets/avnet_aesku40.py @@ -58,7 +58,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_ethernet=False, with_etherbone=False, + def __init__(self, sys_clk_freq=125e6, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", with_led_chaser=True, with_pcie=False, with_sata=False, **kwargs): platform = avnet_aesku40.Platform() diff --git a/litex_boards/targets/berkeleylab_marble.py b/litex_boards/targets/berkeleylab_marble.py index 627ef6f..0fe802f 100755 --- a/litex_boards/targets/berkeleylab_marble.py +++ b/litex_boards/targets/berkeleylab_marble.py @@ -69,7 +69,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), + def __init__(self, sys_clk_freq=125e6, with_ethernet = False, with_etherbone = False, with_rts_reset = False, diff --git a/litex_boards/targets/camlink_4k.py b/litex_boards/targets/camlink_4k.py index a8f1779..519e76a 100755 --- a/litex_boards/targets/camlink_4k.py +++ b/litex_boards/targets/camlink_4k.py @@ -69,9 +69,9 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, toolchain="trellis", with_led_chaser=True, **kwargs): - platform = camlink_4k.Platform(toolchain=toolchain) - sys_clk_freq = int(81e6) + def __init__(self, sys_clk_freq=81e6, toolchain="trellis", with_led_chaser=True, **kwargs): + platform = camlink_4k.Platform(toolchain=toolchain) + # CRG -------------------------------------------------------------------------------------- self.crg = _CRG(platform, sys_clk_freq) diff --git a/litex_boards/targets/decklink_intensity_pro_4k.py b/litex_boards/targets/decklink_intensity_pro_4k.py index fa49b52..dc8dd73 100755 --- a/litex_boards/targets/decklink_intensity_pro_4k.py +++ b/litex_boards/targets/decklink_intensity_pro_4k.py @@ -41,7 +41,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_pcie=False, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_pcie=False, **kwargs): platform = decklink_intensity_pro_4k.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/decklink_mini_4k.py b/litex_boards/targets/decklink_mini_4k.py index 37eb9bc..d7b7fc7 100755 --- a/litex_boards/targets/decklink_mini_4k.py +++ b/litex_boards/targets/decklink_mini_4k.py @@ -72,7 +72,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCMini): - def __init__(self, sys_clk_freq=int(100e6), with_pcie=False, with_sata=False, with_video_terminal=False, with_video_framebuffer=False, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_pcie=False, with_sata=False, with_video_terminal=False, with_video_framebuffer=False, **kwargs): if with_video_terminal or with_video_framebuffer: sys_clk_freq = int(148.5e6) # FIXME: For now requires sys_clk >= video_clk. platform = decklink_mini_4k.Platform() diff --git a/litex_boards/targets/decklink_quad_hdmi_recorder.py b/litex_boards/targets/decklink_quad_hdmi_recorder.py index a79bd06..06a7b76 100755 --- a/litex_boards/targets/decklink_quad_hdmi_recorder.py +++ b/litex_boards/targets/decklink_quad_hdmi_recorder.py @@ -60,7 +60,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(200e6), with_pcie=False, pcie_lanes=4, **kwargs): + def __init__(self, sys_clk_freq=200e6, with_pcie=False, pcie_lanes=4, **kwargs): platform = decklink_quad_hdmi_recorder.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/digilent_arty.py b/litex_boards/targets/digilent_arty.py index 142f8f3..ca155a0 100755 --- a/litex_boards/targets/digilent_arty.py +++ b/litex_boards/targets/digilent_arty.py @@ -70,7 +70,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, variant="a7-35", toolchain="vivado", sys_clk_freq=int(100e6), + def __init__(self, variant="a7-35", toolchain="vivado", sys_clk_freq=100e6, with_ethernet = False, with_etherbone = False, eth_ip = "192.168.1.50", @@ -156,8 +156,8 @@ class BaseSoC(SoCCore): def main(): from litex.build.parser import LiteXArgumentParser parser = LiteXArgumentParser(platform=digilent_arty.Platform, description="LiteX SoC on Arty A7.") - parser.add_target_argument("--flash", , action="store_true", help="Flash bitstream.") - parser.add_target_argument("--variant", , default="a7-35", help="Board variant (a7-35 or a7-100).") + parser.add_target_argument("--flash", action="store_true", help="Flash bitstream.") + parser.add_target_argument("--variant", default="a7-35", help="Board variant (a7-35 or a7-100).") parser.add_target_argument("--sys-clk-freq", default=100e6, type=float, help="System clock frequency.") ethopts = parser.target_group.add_mutually_exclusive_group() ethopts.add_argument("--with-ethernet", action="store_true", help="Enable Ethernet support.") diff --git a/litex_boards/targets/digilent_arty_s7.py b/litex_boards/targets/digilent_arty_s7.py index 209401f..e2e45b0 100755 --- a/litex_boards/targets/digilent_arty_s7.py +++ b/litex_boards/targets/digilent_arty_s7.py @@ -49,7 +49,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, variant="s7-50", sys_clk_freq=int(100e6), with_spi_flash=False, with_led_chaser=True, **kwargs): + def __init__(self, variant="s7-50", sys_clk_freq=100e6, with_spi_flash=False, with_led_chaser=True, **kwargs): platform = digilent_arty_s7.Platform(variant=variant) # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/digilent_arty_z7.py b/litex_boards/targets/digilent_arty_z7.py index 351cdaf..5421643 100755 --- a/litex_boards/targets/digilent_arty_z7.py +++ b/litex_boards/targets/digilent_arty_z7.py @@ -53,7 +53,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): - def __init__(self, variant="z7-20", toolchain="vivado", sys_clk_freq=int(125e6), + def __init__(self, variant="z7-20", toolchain="vivado", sys_clk_freq=125e6, with_led_chaser=True, **kwargs): platform = digilent_arty_z7.Platform(variant=variant, toolchain=toolchain) diff --git a/litex_boards/targets/digilent_atlys.py b/litex_boards/targets/digilent_atlys.py index 1ebf503..575aaef 100755 --- a/litex_boards/targets/digilent_atlys.py +++ b/litex_boards/targets/digilent_atlys.py @@ -149,9 +149,8 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, with_ethernet=True, with_etherbone=False, eth_phy=0, **kwargs): - sys_clk_freq = int(75e6) - platform = digilent_atlys.Platform() + def __init__(self, sys_clk_freq=75e6, with_ethernet=True, with_etherbone=False, eth_phy=0, **kwargs): + platform = digilent_atlys.Platform() # CRG -------------------------------------------------------------------------------------- self.crg = _CRG(platform, sys_clk_freq) diff --git a/litex_boards/targets/digilent_basys3.py b/litex_boards/targets/digilent_basys3.py index 5eb3094..a522d14 100755 --- a/litex_boards/targets/digilent_basys3.py +++ b/litex_boards/targets/digilent_basys3.py @@ -39,7 +39,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(75e6), with_led_chaser=True, with_video_terminal=False, **kwargs): + def __init__(self, sys_clk_freq=75e6, with_led_chaser=True, with_video_terminal=False, **kwargs): platform = digilent_basys3.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/digilent_cmod_a7.py b/litex_boards/targets/digilent_cmod_a7.py index 8a113aa..f5eb6b8 100755 --- a/litex_boards/targets/digilent_cmod_a7.py +++ b/litex_boards/targets/digilent_cmod_a7.py @@ -104,7 +104,7 @@ def addAsyncSram(soc, platform, name, origin, size): class BaseSoC(SoCCore): def __init__(self, variant="a7-35", toolchain = "vivado", - sys_clk_freq = int(100e6), + sys_clk_freq = 100e6, with_led_chaser = True, with_spi_flash = False, **kwargs): diff --git a/litex_boards/targets/digilent_genesys2.py b/litex_boards/targets/digilent_genesys2.py index 80fab41..24e93d0 100755 --- a/litex_boards/targets/digilent_genesys2.py +++ b/litex_boards/targets/digilent_genesys2.py @@ -46,7 +46,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_ethernet=False, with_etherbone=False, + def __init__(self, sys_clk_freq=100e6, with_ethernet=False, with_etherbone=False, with_led_chaser=True, **kwargs): platform = digilent_genesys2.Platform() diff --git a/litex_boards/targets/digilent_nexys4.py b/litex_boards/targets/digilent_nexys4.py index 9c982e5..a89d570 100755 --- a/litex_boards/targets/digilent_nexys4.py +++ b/litex_boards/targets/digilent_nexys4.py @@ -166,7 +166,7 @@ def addCellularRAM(soc, platform, name, origin): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(75e6), with_led_chaser=True, with_ethernet=False, with_etherbone=False, with_video_terminal=False, with_video_framebuffer=False, **kwargs): + def __init__(self, sys_clk_freq=75e6, with_led_chaser=True, with_ethernet=False, with_etherbone=False, with_video_terminal=False, with_video_framebuffer=False, **kwargs): platform = digilent_nexys4.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/digilent_nexys4ddr.py b/litex_boards/targets/digilent_nexys4ddr.py index f2177f1..8aab3d6 100755 --- a/litex_boards/targets/digilent_nexys4ddr.py +++ b/litex_boards/targets/digilent_nexys4ddr.py @@ -53,7 +53,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(75e6), with_ethernet=False, with_etherbone=False, + def __init__(self, sys_clk_freq=75e6, with_ethernet=False, with_etherbone=False, with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, **kwargs): platform = digilent_nexys4ddr.Platform() diff --git a/litex_boards/targets/digilent_nexys_video.py b/litex_boards/targets/digilent_nexys_video.py index c018fdb..385805e 100755 --- a/litex_boards/targets/digilent_nexys_video.py +++ b/litex_boards/targets/digilent_nexys_video.py @@ -75,7 +75,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, toolchain="vivado", sys_clk_freq=int(100e6), with_ethernet=False, + def __init__(self, toolchain="vivado", sys_clk_freq=100e6, with_ethernet=False, with_led_chaser=True, with_sata=False, sata_gen="gen2", with_sata_pll_refclk=False, vadj="1.2V", with_video_terminal=False, with_video_framebuffer=False, **kwargs): platform = digilent_nexys_video.Platform(toolchain=toolchain) diff --git a/litex_boards/targets/digilent_pynq_z1.py b/litex_boards/targets/digilent_pynq_z1.py index 27bca68..3503a5e 100755 --- a/litex_boards/targets/digilent_pynq_z1.py +++ b/litex_boards/targets/digilent_pynq_z1.py @@ -58,7 +58,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, toolchain="vivado", sys_clk_freq=int(100e6), with_led_chaser=True, + def __init__(self, toolchain="vivado", sys_clk_freq=100e6, with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, **kwargs): platform = digilent_pynq_z1.Platform() diff --git a/litex_boards/targets/digilent_zedboard.py b/litex_boards/targets/digilent_zedboard.py index 3522c2f..324d56d 100755 --- a/litex_boards/targets/digilent_zedboard.py +++ b/litex_boards/targets/digilent_zedboard.py @@ -52,7 +52,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): mem_map = {"csr": 0x43c0_0000} # default GP0 address on Zynq - def __init__(self, sys_clk_freq, with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, **kwargs): platform = digilent_zedboard.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/ebaz4205.py b/litex_boards/targets/ebaz4205.py index b9ec55c..083ef14 100755 --- a/litex_boards/targets/ebaz4205.py +++ b/litex_boards/targets/ebaz4205.py @@ -43,7 +43,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, **kwargs): platform = ebaz4205.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/efinix_t8f81_dev_kit.py b/litex_boards/targets/efinix_t8f81_dev_kit.py index 0da5eaa..868d53e 100755 --- a/litex_boards/targets/efinix_t8f81_dev_kit.py +++ b/litex_boards/targets/efinix_t8f81_dev_kit.py @@ -45,7 +45,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset, sys_clk_freq, with_led_chaser=True, **kwargs): + def __init__(self, bios_flash_offset, sys_clk_freq=33.333e6, with_led_chaser=True, **kwargs): platform = efinix_t8f81_dev_kit.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/efinix_titanium_ti60_f225_dev_kit.py b/litex_boards/targets/efinix_titanium_ti60_f225_dev_kit.py index f0e4f3d..e4d280a 100755 --- a/litex_boards/targets/efinix_titanium_ti60_f225_dev_kit.py +++ b/litex_boards/targets/efinix_titanium_ti60_f225_dev_kit.py @@ -49,7 +49,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(200e6), + def __init__(self, sys_clk_freq=200e6, with_spi_flash = False, with_hyperram = False, with_ethernet = False, diff --git a/litex_boards/targets/efinix_trion_t120_bga576_dev_kit.py b/litex_boards/targets/efinix_trion_t120_bga576_dev_kit.py index 797b786..5312552 100755 --- a/litex_boards/targets/efinix_trion_t120_bga576_dev_kit.py +++ b/litex_boards/targets/efinix_trion_t120_bga576_dev_kit.py @@ -44,7 +44,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(75e6), + def __init__(self, sys_clk_freq=75e6, with_spi_flash = False, with_ethernet = False, with_etherbone = False, diff --git a/litex_boards/targets/efinix_trion_t20_bga256_dev_kit.py b/litex_boards/targets/efinix_trion_t20_bga256_dev_kit.py index 3f9d8bf..9065093 100755 --- a/litex_boards/targets/efinix_trion_t20_bga256_dev_kit.py +++ b/litex_boards/targets/efinix_trion_t20_bga256_dev_kit.py @@ -42,7 +42,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_spi_flash=False, with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_spi_flash=False, with_led_chaser=True, **kwargs): platform = efinix_trion_t20_bga256_dev_kit.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/efinix_trion_t20_mipi_dev_kit.py b/litex_boards/targets/efinix_trion_t20_mipi_dev_kit.py index f157001..80126d2 100755 --- a/litex_boards/targets/efinix_trion_t20_mipi_dev_kit.py +++ b/litex_boards/targets/efinix_trion_t20_mipi_dev_kit.py @@ -40,7 +40,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_spi_flash=False, with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_spi_flash=False, with_led_chaser=True, **kwargs): platform = efinix_trion_t20_mipi_dev_kit.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/efinix_xyloni_dev_kit.py b/litex_boards/targets/efinix_xyloni_dev_kit.py index c306d6b..a8f9cef 100755 --- a/litex_boards/targets/efinix_xyloni_dev_kit.py +++ b/litex_boards/targets/efinix_xyloni_dev_kit.py @@ -44,7 +44,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset, sys_clk_freq, with_led_chaser=True, **kwargs): + def __init__(self, bios_flash_offset, sys_clk_freq=33.333e6,, with_led_chaser=True, **kwargs): platform = efinix_xyloni_dev_kit.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/ego1.py b/litex_boards/targets/ego1.py index 1cf2bef..fb8a554 100755 --- a/litex_boards/targets/ego1.py +++ b/litex_boards/targets/ego1.py @@ -36,7 +36,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, with_video_terminal=False, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, with_video_terminal=False, **kwargs): platform = ego1.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/enclustra_mercury_kx2.py b/litex_boards/targets/enclustra_mercury_kx2.py index 1c9f43a..052553c 100755 --- a/litex_boards/targets/enclustra_mercury_kx2.py +++ b/litex_boards/targets/enclustra_mercury_kx2.py @@ -45,7 +45,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_led_chaser=True, **kwargs): platform = enclustra_mercury_kx2.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/enclustra_mercury_xu5.py b/litex_boards/targets/enclustra_mercury_xu5.py index 0be66af..6786fcd 100755 --- a/litex_boards/targets/enclustra_mercury_xu5.py +++ b/litex_boards/targets/enclustra_mercury_xu5.py @@ -53,7 +53,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_led_chaser=True, **kwargs): platform = enclustra_mercury_xu5.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/fairwaves_xtrx.py b/litex_boards/targets/fairwaves_xtrx.py index 4922e82..fc204a3 100755 --- a/litex_boards/targets/fairwaves_xtrx.py +++ b/litex_boards/targets/fairwaves_xtrx.py @@ -63,7 +63,7 @@ class CRG(LiteXModule): # BaseSoC ----------------------------------------------------------------------------------------- class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_pcie=False, with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_pcie=False, with_led_chaser=True, **kwargs): platform = fairwaves_xtrx.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/fpc_iii.py b/litex_boards/targets/fpc_iii.py index 1d638ca..e48c195 100755 --- a/litex_boards/targets/fpc_iii.py +++ b/litex_boards/targets/fpc_iii.py @@ -76,7 +76,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(80e6), toolchain="trellis", with_ethernet=False, + def __init__(self, sys_clk_freq=80e6, toolchain="trellis", with_ethernet=False, with_etherbone=False, with_led_chaser=True, **kwargs): platform = fpc_iii.Platform(toolchain=toolchain) diff --git a/litex_boards/targets/fpgawars_alhambra2.py b/litex_boards/targets/fpgawars_alhambra2.py index 8fa8cac..e9cb70a 100755 --- a/litex_boards/targets/fpgawars_alhambra2.py +++ b/litex_boards/targets/fpgawars_alhambra2.py @@ -46,7 +46,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(12e6), with_led_chaser=True, bios_flash_offset=0x50000, **kwargs): + def __init__(self, sys_clk_freq=12e6, with_led_chaser=True, bios_flash_offset=0x50000, **kwargs): platform = fpgawars_alhambra2.Platform() kwargs["integrated_rom_size"] = 0 diff --git a/litex_boards/targets/gsd_butterstick.py b/litex_boards/targets/gsd_butterstick.py index 3773f37..16d189c 100755 --- a/litex_boards/targets/gsd_butterstick.py +++ b/litex_boards/targets/gsd_butterstick.py @@ -80,7 +80,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, revision="1.0", device="85F", sdram_device="MT41K64M16", sys_clk_freq=int(60e6), + def __init__(self, revision="1.0", device="85F", sdram_device="MT41K64M16", sys_clk_freq=60e6, toolchain="trellis", with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", eth_dynamic_ip = False, with_spi_flash = False, diff --git a/litex_boards/targets/gsd_orangecrab.py b/litex_boards/targets/gsd_orangecrab.py index c40694d..e0d14d2 100755 --- a/litex_boards/targets/gsd_orangecrab.py +++ b/litex_boards/targets/gsd_orangecrab.py @@ -145,7 +145,7 @@ class _CRGSDRAM(LiteXModule): class BaseSoC(SoCCore): def __init__(self, revision="0.2", device="25F", sdram_device="MT41K64M16", - sys_clk_freq=int(48e6), toolchain="trellis", with_led_chaser=True, **kwargs): + sys_clk_freq=48e6, toolchain="trellis", with_led_chaser=True, **kwargs): platform = gsd_orangecrab.Platform(revision=revision, device=device ,toolchain=toolchain) # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/hackaday_hadbadge.py b/litex_boards/targets/hackaday_hadbadge.py index 5d5ca3b..1ab2d1f 100755 --- a/litex_boards/targets/hackaday_hadbadge.py +++ b/litex_boards/targets/hackaday_hadbadge.py @@ -53,7 +53,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, toolchain="trellis", sys_clk_freq=int(48e6), sdram_module_cls="AS4C32M8", **kwargs): + def __init__(self, toolchain="trellis", sys_clk_freq=48e6, sdram_module_cls="AS4C32M8", **kwargs): platform = hackaday_hadbadge.Platform(toolchain=toolchain) # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/hpcstore_xc7k420t.py b/litex_boards/targets/hpcstore_xc7k420t.py index d819638..1371f2d 100755 --- a/litex_boards/targets/hpcstore_xc7k420t.py +++ b/litex_boards/targets/hpcstore_xc7k420t.py @@ -65,7 +65,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), + def __init__(self, sys_clk_freq=100e6, io_voltage="3.3V", with_led_chaser = True, with_pcie = False, diff --git a/litex_boards/targets/icebreaker.py b/litex_boards/targets/icebreaker.py index 45f7478..5a2d779 100755 --- a/litex_boards/targets/icebreaker.py +++ b/litex_boards/targets/icebreaker.py @@ -67,7 +67,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset, sys_clk_freq=int(24e6), with_led_chaser=True, + def __init__(self, bios_flash_offset, sys_clk_freq=24e6, with_led_chaser=True, with_video_terminal=False, **kwargs): platform = icebreaker.Platform() platform.add_extension(icebreaker.break_off_pmod) diff --git a/litex_boards/targets/icebreaker_bitsy.py b/litex_boards/targets/icebreaker_bitsy.py index b12ec62..2f11b2f 100755 --- a/litex_boards/targets/icebreaker_bitsy.py +++ b/litex_boards/targets/icebreaker_bitsy.py @@ -98,7 +98,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset, sys_clk_freq=int(24e6), revision="v1", **kwargs): + def __init__(self, bios_flash_offset, sys_clk_freq=24e6, revision="v1", **kwargs): platform = icebreaker_bitsy.Platform(revision=revision) # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/isx_im1283.py b/litex_boards/targets/isx_im1283.py index e1e5880..1d5c349 100755 --- a/litex_boards/targets/isx_im1283.py +++ b/litex_boards/targets/isx_im1283.py @@ -49,7 +49,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(80e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=80e6, with_led_chaser=True, **kwargs): platform = isx_im1283.Platform() # SoCCore ---------------------------------------------------------------------------------- diff --git a/litex_boards/targets/jungle_electronics_fireant.py b/litex_boards/targets/jungle_electronics_fireant.py index fb9da05..1859174 100755 --- a/litex_boards/targets/jungle_electronics_fireant.py +++ b/litex_boards/targets/jungle_electronics_fireant.py @@ -58,7 +58,7 @@ serial = [ class BaseSoC(SoCCore): mem_map = {**SoCCore.mem_map, **{"spiflash": 0x80000000}} - def __init__(self, bios_flash_offset, sys_clk_freq, with_led_chaser=True, **kwargs): + def __init__(self, bios_flash_offset, sys_clk_freq=33.333e6, with_led_chaser=True, **kwargs): platform = jungle_electronics_fireant.Platform() platform.add_extension(serial) diff --git a/litex_boards/targets/kosagi_fomu.py b/litex_boards/targets/kosagi_fomu.py index 11a0fcf..748772f 100755 --- a/litex_boards/targets/kosagi_fomu.py +++ b/litex_boards/targets/kosagi_fomu.py @@ -69,7 +69,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset, spi_flash_module="AT25SF161", sys_clk_freq=int(12e6), + def __init__(self, bios_flash_offset, spi_flash_module="AT25SF161", sys_clk_freq=12e6, with_led_chaser=True, **kwargs): platform = kosagi_fomu_pvt.Platform() diff --git a/litex_boards/targets/kosagi_netv2.py b/litex_boards/targets/kosagi_netv2.py index 6b738e3..fe52d5a 100755 --- a/litex_boards/targets/kosagi_netv2.py +++ b/litex_boards/targets/kosagi_netv2.py @@ -61,7 +61,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, variant="a7-35", sys_clk_freq=int(100e6), with_pcie=False, + def __init__(self, variant="a7-35", sys_clk_freq=100e6, with_pcie=False, with_ethernet=False, with_led_chaser=True, **kwargs): platform = kosagi_netv2.Platform(variant=variant) diff --git a/litex_boards/targets/krtkl_snickerdoodle.py b/litex_boards/targets/krtkl_snickerdoodle.py index 38f1109..9eadfc1 100755 --- a/litex_boards/targets/krtkl_snickerdoodle.py +++ b/litex_boards/targets/krtkl_snickerdoodle.py @@ -63,7 +63,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): - def __init__(self, variant="z7-10", sys_clk_freq=int(100e6), with_led_chaser=True, + def __init__(self, variant="z7-10", sys_clk_freq=100e6, with_led_chaser=True, ext_clk_freq = None, xci_file = None, **kwargs): diff --git a/litex_boards/targets/lambdaconcept_ecpix5.py b/litex_boards/targets/lambdaconcept_ecpix5.py index 909f631..5ccea40 100755 --- a/litex_boards/targets/lambdaconcept_ecpix5.py +++ b/litex_boards/targets/lambdaconcept_ecpix5.py @@ -75,7 +75,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, device="85F", sys_clk_freq=int(75e6), toolchain="trellis", + def __init__(self, device="85F", sys_clk_freq=75e6, toolchain="trellis", with_ethernet = False, with_etherbone = False, with_video_terminal = False, diff --git a/litex_boards/targets/lattice_crosslink_nx_evn.py b/litex_boards/targets/lattice_crosslink_nx_evn.py index 7f527fa..14ac09c 100755 --- a/litex_boards/targets/lattice_crosslink_nx_evn.py +++ b/litex_boards/targets/lattice_crosslink_nx_evn.py @@ -64,7 +64,7 @@ class BaseSoC(SoCCore): "sram" : 0x40000000, "csr" : 0xf0000000, } - def __init__(self, sys_clk_freq=int(75e6), device="LIFCL-40-9BG400C", toolchain="radiant", with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=75e6, device="LIFCL-40-9BG400C", toolchain="radiant", with_led_chaser=True, **kwargs): platform = lattice_crosslink_nx_evn.Platform(device=device, toolchain=toolchain) # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/lattice_crosslink_nx_vip.py b/litex_boards/targets/lattice_crosslink_nx_vip.py index 6ed96c1..08202e7 100755 --- a/litex_boards/targets/lattice_crosslink_nx_vip.py +++ b/litex_boards/targets/lattice_crosslink_nx_vip.py @@ -64,7 +64,7 @@ class BaseSoC(SoCCore): "sram": 0x40000000, "csr": 0xf0000000, } - def __init__(self, sys_clk_freq=int(75e6), hyperram="none", toolchain="radiant", + def __init__(self, sys_clk_freq=75e6, hyperram="none", toolchain="radiant", with_led_chaser=True, **kwargs): platform = lattice_crosslink_nx_vip.Platform(toolchain=toolchain) platform.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=SERIAL}}") diff --git a/litex_boards/targets/lattice_ecp5_evn.py b/litex_boards/targets/lattice_ecp5_evn.py index 9f47285..0f45e30 100755 --- a/litex_boards/targets/lattice_ecp5_evn.py +++ b/litex_boards/targets/lattice_ecp5_evn.py @@ -44,7 +44,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), x5_clk_freq=None, toolchain="trellis", + def __init__(self, sys_clk_freq=50e6, x5_clk_freq=None, toolchain="trellis", with_led_chaser=True, **kwargs): platform = lattice_ecp5_evn.Platform(toolchain=toolchain) diff --git a/litex_boards/targets/lattice_ecp5_vip.py b/litex_boards/targets/lattice_ecp5_vip.py index 046fa6c..8f0d311 100755 --- a/litex_boards/targets/lattice_ecp5_vip.py +++ b/litex_boards/targets/lattice_ecp5_vip.py @@ -83,7 +83,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), toolchain="trellis", + def __init__(self, sys_clk_freq=50e6, toolchain="trellis", with_led_chaser = True, with_video_terminal = True, with_video_framebuffer = False, diff --git a/litex_boards/targets/lattice_ice40up5k_evn.py b/litex_boards/targets/lattice_ice40up5k_evn.py index 4ffabb7..2de17ad 100755 --- a/litex_boards/targets/lattice_ice40up5k_evn.py +++ b/litex_boards/targets/lattice_ice40up5k_evn.py @@ -57,7 +57,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset, sys_clk_freq=int(12e6), with_led_chaser=True, **kwargs): + def __init__(self, bios_flash_offset, sys_clk_freq=12e6, with_led_chaser=True, **kwargs): platform = lattice_ice40up5k_evn.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/lattice_versa_ecp5.py b/litex_boards/targets/lattice_versa_ecp5.py index 3e23afb..8dc114b 100755 --- a/litex_boards/targets/lattice_versa_ecp5.py +++ b/litex_boards/targets/lattice_versa_ecp5.py @@ -74,7 +74,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(75e6), device="LFE5UM5G", with_ethernet=False, + def __init__(self, sys_clk_freq=75e6, device="LFE5UM5G", with_ethernet=False, with_etherbone=False, with_led_chaser=True, eth_ip="192.168.1.50", eth_phy=0, toolchain="trellis", **kwargs): platform = lattice_versa_ecp5.Platform(toolchain=toolchain, device=device) diff --git a/litex_boards/targets/limesdr_mini_v2.py b/litex_boards/targets/limesdr_mini_v2.py index 094922d..0d97ae4 100755 --- a/litex_boards/targets/limesdr_mini_v2.py +++ b/litex_boards/targets/limesdr_mini_v2.py @@ -68,7 +68,7 @@ class BoardInfo(LiteXModule, AutoCSR): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(80e6), toolchain="trellis", + def __init__(self, sys_clk_freq=80e6, toolchain="trellis", with_usb_fifo = True, with_usb_fifo_loopback=False, with_led_chaser = True, **kwargs): diff --git a/litex_boards/targets/linsn_rv901t.py b/litex_boards/targets/linsn_rv901t.py index a88808b..fa4bbf0 100755 --- a/litex_boards/targets/linsn_rv901t.py +++ b/litex_boards/targets/linsn_rv901t.py @@ -48,7 +48,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(75e6), with_ethernet=False, with_etherbone=False, eth_phy=0, with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=75e6, with_ethernet=False, with_etherbone=False, eth_phy=0, with_led_chaser=True, **kwargs): platform = linsn_rv901t.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/litex_acorn_baseboard.py b/litex_boards/targets/litex_acorn_baseboard.py index 96b4d3e..7e61ecf 100755 --- a/litex_boards/targets/litex_acorn_baseboard.py +++ b/litex_boards/targets/litex_acorn_baseboard.py @@ -59,7 +59,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(75e6), toolchain="trellis", + def __init__(self, sys_clk_freq=75e6, toolchain="trellis", with_spi_flash = False, with_ethernet = False, with_etherbone = False, diff --git a/litex_boards/targets/logicbone.py b/litex_boards/targets/logicbone.py index 085ab05..9d430ab 100755 --- a/litex_boards/targets/logicbone.py +++ b/litex_boards/targets/logicbone.py @@ -91,7 +91,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): def __init__(self, revision="rev0", device="45F", sdram_device="MT41K512M16", - sys_clk_freq = int(75e6), + sys_clk_freq = 75e6, with_ethernet = False, with_led_chaser = True, toolchain = "trellis", diff --git a/litex_boards/targets/machdyne_krote.py b/litex_boards/targets/machdyne_krote.py index 715f313..e116c07 100755 --- a/litex_boards/targets/machdyne_krote.py +++ b/litex_boards/targets/machdyne_krote.py @@ -72,7 +72,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): mem_map = {**SoCCore.mem_map, **{"spiflash": 0x20000000}} - def __init__(self, bios_flash_offset, sys_clk_freq=int(100e6), with_led_chaser=True, **kwargs): + def __init__(self, bios_flash_offset, sys_clk_freq=100e6, with_led_chaser=True, **kwargs): platform = machdyne_krote.Platform() # Disable Integrated ROM since too large for iCE40. diff --git a/litex_boards/targets/machdyne_schoko.py b/litex_boards/targets/machdyne_schoko.py index 775c091..2e81467 100755 --- a/litex_boards/targets/machdyne_schoko.py +++ b/litex_boards/targets/machdyne_schoko.py @@ -106,7 +106,7 @@ class BaseSoC(SoCCore): "usb_ohci": 0xc0000000, }} def __init__(self, revision="v1", device="45F", sdram_rate="1:2", - sys_clk_freq=int(40e6), toolchain="trellis", with_led_chaser=True, with_usb_host=False, **kwargs): + sys_clk_freq=40e6, toolchain="trellis", with_led_chaser=True, with_usb_host=False, **kwargs): platform = machdyne_schoko.Platform(revision=revision, device=device ,toolchain=toolchain) # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/micronova_mercury2.py b/litex_boards/targets/micronova_mercury2.py index b2e71df..8c2ebf7 100755 --- a/litex_boards/targets/micronova_mercury2.py +++ b/litex_boards/targets/micronova_mercury2.py @@ -109,7 +109,7 @@ class BaseSoC(SoCCore): def __init__(self, variant = "a7-35", toolchain = "vivado", - sys_clk_freq = int(100e6), + sys_clk_freq = 100e6, with_led_chaser = True, **kwargs): platform = micronova_mercury2.Platform() diff --git a/litex_boards/targets/mist.py b/litex_boards/targets/mist.py index 3efef93..b985caf 100755 --- a/litex_boards/targets/mist.py +++ b/litex_boards/targets/mist.py @@ -53,7 +53,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, with_video_terminal=False, **kwargs): + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, with_video_terminal=False, **kwargs): platform = mist.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/mnt_rkx7.py b/litex_boards/targets/mnt_rkx7.py index 53387fe..ec1e55c 100755 --- a/litex_boards/targets/mnt_rkx7.py +++ b/litex_boards/targets/mnt_rkx7.py @@ -75,7 +75,7 @@ class BaseSoC(SoCCore): "usb_ohci" : 0xc0000000, }} - def __init__(self, sys_clk_freq=int(100e6), with_ethernet=True, with_etherbone=False, + def __init__(self, sys_clk_freq=100e6, with_ethernet=True, with_etherbone=False, with_spi_flash=True, with_usb_host=False, **kwargs): platform = mnt_rkx7.Platform() diff --git a/litex_boards/targets/muselab_icesugar.py b/litex_boards/targets/muselab_icesugar.py index 6efc6ad..5fb95aa 100755 --- a/litex_boards/targets/muselab_icesugar.py +++ b/litex_boards/targets/muselab_icesugar.py @@ -56,7 +56,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset, sys_clk_freq=int(24e6), with_led_chaser=True, + def __init__(self, bios_flash_offset, sys_clk_freq=24e6, with_led_chaser=True, with_video_terminal=False, **kwargs): platform = muselab_icesugar.Platform() diff --git a/litex_boards/targets/myminieye_runber.py b/litex_boards/targets/myminieye_runber.py index 7c3f434..9021333 100755 --- a/litex_boards/targets/myminieye_runber.py +++ b/litex_boards/targets/myminieye_runber.py @@ -35,7 +35,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(12e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=12e6, with_led_chaser=True, **kwargs): platform = myminieye_runber.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/newae_cw305.py b/litex_boards/targets/newae_cw305.py index 70eb043..22a92ba 100755 --- a/litex_boards/targets/newae_cw305.py +++ b/litex_boards/targets/newae_cw305.py @@ -58,7 +58,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, **kwargs): platform = newae_cw305.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/numato_aller.py b/litex_boards/targets/numato_aller.py index b4d8d44..d8b3fb7 100755 --- a/litex_boards/targets/numato_aller.py +++ b/litex_boards/targets/numato_aller.py @@ -56,7 +56,7 @@ class CRG(LiteXModule): # BaseSoC ----------------------------------------------------------------------------------------- class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, with_pcie=False, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, with_pcie=False, **kwargs): platform = numato_aller.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/numato_mimas_a7.py b/litex_boards/targets/numato_mimas_a7.py index e0e1d91..d907272 100755 --- a/litex_boards/targets/numato_mimas_a7.py +++ b/litex_boards/targets/numato_mimas_a7.py @@ -49,7 +49,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, with_ethernet=False, + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, with_ethernet=False, **kwargs): platform = numato_mimas_a7.Platform() diff --git a/litex_boards/targets/numato_nereid.py b/litex_boards/targets/numato_nereid.py index df8da38..e9dda94 100755 --- a/litex_boards/targets/numato_nereid.py +++ b/litex_boards/targets/numato_nereid.py @@ -53,7 +53,7 @@ class CRG(LiteXModule): # BaseSoC ----------------------------------------------------------------------------------------- class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_pcie=False, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_pcie=False, **kwargs): platform = numato_nereid.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/numato_tagus.py b/litex_boards/targets/numato_tagus.py index 40eca87..525fcd2 100755 --- a/litex_boards/targets/numato_tagus.py +++ b/litex_boards/targets/numato_tagus.py @@ -57,7 +57,7 @@ class CRG(LiteXModule): # BaseSoC ----------------------------------------------------------------------------------------- class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, with_pcie=False, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, with_pcie=False, **kwargs): platform = numato_tagus.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/pano_logic_g2.py b/litex_boards/targets/pano_logic_g2.py index 78a6d76..489409b 100755 --- a/litex_boards/targets/pano_logic_g2.py +++ b/litex_boards/targets/pano_logic_g2.py @@ -45,7 +45,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, revision, sys_clk_freq=int(50e6), with_ethernet=False, with_etherbone=False, + def __init__(self, revision, sys_clk_freq=50e6, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", with_led_chaser=True, **kwargs): platform = pano_logic_g2.Platform(revision=revision) if with_etherbone: diff --git a/litex_boards/targets/qmtech_10cl006.py b/litex_boards/targets/qmtech_10cl006.py index f5c2988..7db66b4 100755 --- a/litex_boards/targets/qmtech_10cl006.py +++ b/litex_boards/targets/qmtech_10cl006.py @@ -63,7 +63,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_daughterboard=False, + def __init__(self, sys_clk_freq=50e6, with_daughterboard=False, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", eth_dynamic_ip=False, with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, sdram_rate="1:1", **kwargs): diff --git a/litex_boards/targets/qmtech_5cefa2.py b/litex_boards/targets/qmtech_5cefa2.py index 78ffcca..3045b70 100755 --- a/litex_boards/targets/qmtech_5cefa2.py +++ b/litex_boards/targets/qmtech_5cefa2.py @@ -76,7 +76,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(105e6), with_daughterboard=False, + def __init__(self, sys_clk_freq=105e6, with_daughterboard=False, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", eth_dynamic_ip=False, with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, sdram_rate="1:1", **kwargs): diff --git a/litex_boards/targets/qmtech_ep4ce15_starter_kit.py b/litex_boards/targets/qmtech_ep4ce15_starter_kit.py index 382ba98..953f2a6 100755 --- a/litex_boards/targets/qmtech_ep4ce15_starter_kit.py +++ b/litex_boards/targets/qmtech_ep4ce15_starter_kit.py @@ -60,7 +60,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_jtaguart=False, with_jtagbone=False, + def __init__(self, sys_clk_freq=50e6, with_jtaguart=False, with_jtagbone=False, with_led_chaser=True, sdram_rate="1:1", **kwargs): platform = qmtech_ep4ce15_starter_kit.Platform() diff --git a/litex_boards/targets/qmtech_ep4cex5.py b/litex_boards/targets/qmtech_ep4cex5.py index f3864fd..124b166 100755 --- a/litex_boards/targets/qmtech_ep4cex5.py +++ b/litex_boards/targets/qmtech_ep4cex5.py @@ -72,7 +72,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, variant="ep4ce15", sys_clk_freq=int(50e6), with_daughterboard=False, + def __init__(self, variant="ep4ce15", sys_clk_freq=50e6, with_daughterboard=False, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", eth_dynamic_ip=False, with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, sdram_rate="1:1", **kwargs): diff --git a/litex_boards/targets/qmtech_ep4cgx150.py b/litex_boards/targets/qmtech_ep4cgx150.py index 0358b48..6a72cec 100755 --- a/litex_boards/targets/qmtech_ep4cgx150.py +++ b/litex_boards/targets/qmtech_ep4cgx150.py @@ -72,7 +72,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_daughterboard=False, + def __init__(self, sys_clk_freq=50e6, with_daughterboard=False, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", eth_dynamic_ip=False, with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, sdram_rate="1:1", **kwargs): diff --git a/litex_boards/targets/qmtech_wukong.py b/litex_boards/targets/qmtech_wukong.py index a2f7fa0..1631e2e 100755 --- a/litex_boards/targets/qmtech_wukong.py +++ b/litex_boards/targets/qmtech_wukong.py @@ -72,7 +72,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), board_version=1, speed_grade=-2, + def __init__(self, sys_clk_freq=100e6, board_version=1, speed_grade=-2, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, video_timing="640x480@60Hz", **kwargs): diff --git a/litex_boards/targets/qmtech_xc7a35t.py b/litex_boards/targets/qmtech_xc7a35t.py index 12d3cf6..299e327 100755 --- a/litex_boards/targets/qmtech_xc7a35t.py +++ b/litex_boards/targets/qmtech_xc7a35t.py @@ -67,7 +67,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, toolchain="vivado", sys_clk_freq=int(100e6), with_daughterboard=False, + def __init__(self, toolchain="vivado", sys_clk_freq=100e6, with_daughterboard=False, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", eth_dynamic_ip=False, with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, with_jtagbone=True, with_spi_flash=False, **kwargs): diff --git a/litex_boards/targets/quicklogic_quickfeather.py b/litex_boards/targets/quicklogic_quickfeather.py index 16ba765..48abf1e 100755 --- a/litex_boards/targets/quicklogic_quickfeather.py +++ b/litex_boards/targets/quicklogic_quickfeather.py @@ -47,7 +47,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(10e6), with_led_chaser=True, with_gpio_in=True, **kwargs): + def __init__(self, sys_clk_freq=10e6, with_led_chaser=True, with_gpio_in=True, **kwargs): platform = quicklogic_quickfeather.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/qwertyembedded_beaglewire.py b/litex_boards/targets/qwertyembedded_beaglewire.py index 5de0573..f8c233f 100755 --- a/litex_boards/targets/qwertyembedded_beaglewire.py +++ b/litex_boards/targets/qwertyembedded_beaglewire.py @@ -65,7 +65,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset, sys_clk_freq=int(50e6), **kwargs): + def __init__(self, bios_flash_offset, sys_clk_freq=50e6, **kwargs): platform = qwertyembedded_beaglewire.Platform() # Disable Integrated ROM since too large for iCE40. diff --git a/litex_boards/targets/radiona_ulx3s.py b/litex_boards/targets/radiona_ulx3s.py index 08084cd..ab10931 100755 --- a/litex_boards/targets/radiona_ulx3s.py +++ b/litex_boards/targets/radiona_ulx3s.py @@ -87,7 +87,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): def __init__(self, device="LFE5U-45F", revision="2.0", toolchain="trellis", - sys_clk_freq=int(50e6), sdram_module_cls="MT48LC16M16", sdram_rate="1:1", + sys_clk_freq=50e6, sdram_module_cls="MT48LC16M16", sdram_rate="1:1", with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, with_spi_flash=False, **kwargs): platform = radiona_ulx3s.Platform(device=device, revision=revision, toolchain=toolchain) diff --git a/litex_boards/targets/rcs_arctic_tern_bmc_card.py b/litex_boards/targets/rcs_arctic_tern_bmc_card.py index 24a0101..1665146 100755 --- a/litex_boards/targets/rcs_arctic_tern_bmc_card.py +++ b/litex_boards/targets/rcs_arctic_tern_bmc_card.py @@ -93,7 +93,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), toolchain="trellis", + def __init__(self, sys_clk_freq=50e6, toolchain="trellis", with_video_colorbars = False, with_video_terminal = True, with_video_framebuffer = False, diff --git a/litex_boards/targets/redpitaya.py b/litex_boards/targets/redpitaya.py index 0d94554..4804227 100755 --- a/litex_boards/targets/redpitaya.py +++ b/litex_boards/targets/redpitaya.py @@ -48,7 +48,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): - def __init__(self, board, sys_clk_freq=int(100e6), with_led_chaser=True, **kwargs): + def __init__(self, board, sys_clk_freq=100e6, with_led_chaser=True, **kwargs): platform = redpitaya.Platform(board) # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/rz_easyfpga.py b/litex_boards/targets/rz_easyfpga.py index 78f26a4..5a0a68c 100755 --- a/litex_boards/targets/rz_easyfpga.py +++ b/litex_boards/targets/rz_easyfpga.py @@ -57,7 +57,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, sdram_rate="1:1", **kwargs): + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, sdram_rate="1:1", **kwargs): platform = rz_easyfpga.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/scarabhardware_minispartan6.py b/litex_boards/targets/scarabhardware_minispartan6.py index 6fd50ec..0ee03bd 100755 --- a/litex_boards/targets/scarabhardware_minispartan6.py +++ b/litex_boards/targets/scarabhardware_minispartan6.py @@ -66,7 +66,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(80e6), sdram_rate="1:1", with_led_chaser=True, + def __init__(self, sys_clk_freq=80e6, sdram_rate="1:1", with_led_chaser=True, with_video_terminal=False, with_video_framebuffer=False, **kwargs): platform = scarabhardware_minispartan6.Platform() diff --git a/litex_boards/targets/seeedstudio_spartan_edge_accelerator.py b/litex_boards/targets/seeedstudio_spartan_edge_accelerator.py index 92758d5..a41709b 100755 --- a/litex_boards/targets/seeedstudio_spartan_edge_accelerator.py +++ b/litex_boards/targets/seeedstudio_spartan_edge_accelerator.py @@ -62,7 +62,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), + def __init__(self, sys_clk_freq=100e6, with_led_chaser = True, with_jtagbone = False, with_video_terminal = True, diff --git a/litex_boards/targets/siglent_sds1104xe.py b/litex_boards/targets/siglent_sds1104xe.py index 3089092..95d8122 100755 --- a/litex_boards/targets/siglent_sds1104xe.py +++ b/litex_boards/targets/siglent_sds1104xe.py @@ -66,7 +66,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_etherbone=True, eth_ip="192.168.1.50", with_video_terminal=False, with_video_framebuffer=False, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_etherbone=True, eth_ip="192.168.1.50", with_video_terminal=False, with_video_framebuffer=False, **kwargs): platform = siglent_sds1104xe.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/sipeed_tang_nano.py b/litex_boards/targets/sipeed_tang_nano.py index bcecb2c..66bdb94 100755 --- a/litex_boards/targets/sipeed_tang_nano.py +++ b/litex_boards/targets/sipeed_tang_nano.py @@ -62,7 +62,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCMini): - def __init__(self, sys_clk_freq=int(48e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=48e6, with_led_chaser=True, **kwargs): platform = sipeed_tang_nano.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/sipeed_tang_nano_4k.py b/litex_boards/targets/sipeed_tang_nano_4k.py index 051dccb..0fac0fc 100755 --- a/litex_boards/targets/sipeed_tang_nano_4k.py +++ b/litex_boards/targets/sipeed_tang_nano_4k.py @@ -62,7 +62,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(27e6), with_hyperram=False, with_led_chaser=True, with_video_terminal=True, **kwargs): + def __init__(self, sys_clk_freq=27e6, with_hyperram=False, with_led_chaser=True, with_video_terminal=True, **kwargs): platform = sipeed_tang_nano_4k.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/sipeed_tang_nano_9k.py b/litex_boards/targets/sipeed_tang_nano_9k.py index 58c2007..f7bea5b 100755 --- a/litex_boards/targets/sipeed_tang_nano_9k.py +++ b/litex_boards/targets/sipeed_tang_nano_9k.py @@ -62,7 +62,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(27e6), bios_flash_offset=0x0, + def __init__(self, sys_clk_freq=27e6, bios_flash_offset=0x0, with_led_chaser=True, with_video_terminal=False, **kwargs): platform = sipeed_tang_nano_9k.Platform() diff --git a/litex_boards/targets/sipeed_tang_primer.py b/litex_boards/targets/sipeed_tang_primer.py index 88fefc8..9f3827c 100755 --- a/litex_boards/targets/sipeed_tang_primer.py +++ b/litex_boards/targets/sipeed_tang_primer.py @@ -39,7 +39,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(24e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=24e6, with_led_chaser=True, **kwargs): platform = sipeed_tang_primer.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/sipeed_tang_primer_20k.py b/litex_boards/targets/sipeed_tang_primer_20k.py index a6435f7..32a4f5d 100755 --- a/litex_boards/targets/sipeed_tang_primer_20k.py +++ b/litex_boards/targets/sipeed_tang_primer_20k.py @@ -95,7 +95,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(48e6), + def __init__(self, sys_clk_freq=48e6, with_spi_flash = False, with_led_chaser = True, with_rgb_led = False, diff --git a/litex_boards/targets/sitlinv_a_e115fb.py b/litex_boards/targets/sitlinv_a_e115fb.py index 3e64a99..1049db3 100755 --- a/litex_boards/targets/sitlinv_a_e115fb.py +++ b/litex_boards/targets/sitlinv_a_e115fb.py @@ -40,7 +40,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, **kwargs): platform = sitlinv_a_e115fb.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/sitlinv_stlv7325.py b/litex_boards/targets/sitlinv_stlv7325.py index 9a1728d..9732e90 100755 --- a/litex_boards/targets/sitlinv_stlv7325.py +++ b/litex_boards/targets/sitlinv_stlv7325.py @@ -60,7 +60,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), + def __init__(self, sys_clk_freq=100e6, with_ethernet = False, with_etherbone=False, eth_ip="192.168.1.50", eth_dynamic_ip=False, with_led_chaser = True, with_pcie = False, diff --git a/litex_boards/targets/sqrl_acorn.py b/litex_boards/targets/sqrl_acorn.py index bcd3a06..78f1c52 100755 --- a/litex_boards/targets/sqrl_acorn.py +++ b/litex_boards/targets/sqrl_acorn.py @@ -74,7 +74,7 @@ class CRG(LiteXModule): # BaseSoC ----------------------------------------------------------------------------------------- class BaseSoC(SoCCore): - def __init__(self, variant="cle-215+", sys_clk_freq=int(100e6), with_led_chaser=True, + def __init__(self, variant="cle-215+", sys_clk_freq=100e6, with_led_chaser=True, with_pcie=False, with_sata=False, **kwargs): platform = sqrl_acorn.Platform(variant=variant) diff --git a/litex_boards/targets/sqrl_fk33.py b/litex_boards/targets/sqrl_fk33.py index 24d448b..c2f1560 100755 --- a/litex_boards/targets/sqrl_fk33.py +++ b/litex_boards/targets/sqrl_fk33.py @@ -58,7 +58,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_led_chaser=True, with_pcie=False, with_hbm=False, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_led_chaser=True, with_pcie=False, with_hbm=False, **kwargs): platform = sqrl_fk33.Platform() if with_hbm: assert 225e6 <= sys_clk_freq <= 450e6 diff --git a/litex_boards/targets/sqrl_xcu1525.py b/litex_boards/targets/sqrl_xcu1525.py index 3fae3a9..47820fe 100755 --- a/litex_boards/targets/sqrl_xcu1525.py +++ b/litex_boards/targets/sqrl_xcu1525.py @@ -58,7 +58,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), ddram_channel=0, with_led_chaser=True, + def __init__(self, sys_clk_freq=125e6, ddram_channel=0, with_led_chaser=True, with_pcie=False, with_sata=False, **kwargs): platform = sqrl_xcu1525.Platform() diff --git a/litex_boards/targets/terasic_de0nano.py b/litex_boards/targets/terasic_de0nano.py index 7025a5d..86e8483 100755 --- a/litex_boards/targets/terasic_de0nano.py +++ b/litex_boards/targets/terasic_de0nano.py @@ -62,7 +62,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), sdram_rate="1:1", with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=50e6, sdram_rate="1:1", with_led_chaser=True, **kwargs): platform = terasic_de0nano.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/terasic_de10lite.py b/litex_boards/targets/terasic_de10lite.py index c08f692..e91ec7f 100755 --- a/litex_boards/targets/terasic_de10lite.py +++ b/litex_boards/targets/terasic_de10lite.py @@ -53,7 +53,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, with_video_terminal=False, + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, with_video_terminal=False, **kwargs): platform = terasic_de10lite.Platform() diff --git a/litex_boards/targets/terasic_de10nano.py b/litex_boards/targets/terasic_de10nano.py index 9c47c47..bed62fd 100755 --- a/litex_boards/targets/terasic_de10nano.py +++ b/litex_boards/targets/terasic_de10nano.py @@ -63,7 +63,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, with_mister_sdram=True, + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, with_mister_sdram=True, with_mister_video_terminal=False, sdram_rate="1:1", **kwargs): platform = terasic_de10nano.Platform() diff --git a/litex_boards/targets/terasic_de1soc.py b/litex_boards/targets/terasic_de1soc.py index b22bd3b..ab2d80c 100755 --- a/litex_boards/targets/terasic_de1soc.py +++ b/litex_boards/targets/terasic_de1soc.py @@ -49,7 +49,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, **kwargs): platform = terasic_de1soc.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/terasic_de2_115.py b/litex_boards/targets/terasic_de2_115.py index e8ada7b..9715b47 100755 --- a/litex_boards/targets/terasic_de2_115.py +++ b/litex_boards/targets/terasic_de2_115.py @@ -48,7 +48,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), **kwargs): + def __init__(self, sys_clk_freq=50e6, **kwargs): platform = terasic_de2_115.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/terasic_deca.py b/litex_boards/targets/terasic_deca.py index 2c12e62..a4e64ec 100755 --- a/litex_boards/targets/terasic_deca.py +++ b/litex_boards/targets/terasic_deca.py @@ -56,7 +56,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, with_uartbone=False, with_jtagbone=False, with_video_terminal=False, + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, with_uartbone=False, with_jtagbone=False, with_video_terminal=False, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", eth_dynamic_ip=False, **kwargs): diff --git a/litex_boards/targets/terasic_sockit.py b/litex_boards/targets/terasic_sockit.py index bb6296e..c866746 100755 --- a/litex_boards/targets/terasic_sockit.py +++ b/litex_boards/targets/terasic_sockit.py @@ -65,7 +65,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), revision="revd", sdram_rate="1:2", mister_sdram=None, + def __init__(self, sys_clk_freq=50e6, revision="revd", sdram_rate="1:2", mister_sdram=None, with_led_chaser=True, with_video_terminal=False, **kwargs): platform = terasic_sockit.Platform(revision) diff --git a/litex_boards/targets/tinyfpga_bx.py b/litex_boards/targets/tinyfpga_bx.py index 838547f..d07d933 100755 --- a/litex_boards/targets/tinyfpga_bx.py +++ b/litex_boards/targets/tinyfpga_bx.py @@ -25,7 +25,7 @@ mB = 1024*kB # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset, sys_clk_freq=int(16e6), with_led_chaser=True, **kwargs): + def __init__(self, bios_flash_offset, sys_clk_freq=16e6, with_led_chaser=True, **kwargs): platform = tinyfpga_bx.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/trellisboard.py b/litex_boards/targets/trellisboard.py index 9d969a2..170ae65 100755 --- a/litex_boards/targets/trellisboard.py +++ b/litex_boards/targets/trellisboard.py @@ -110,7 +110,7 @@ class _CRGSDRAM(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(75e6), toolchain="trellis", + def __init__(self, sys_clk_freq=75e6, toolchain="trellis", with_ethernet = False, with_video_terminal = False, with_video_framebuffer = False, diff --git a/litex_boards/targets/trenz_c10lprefkit.py b/litex_boards/targets/trenz_c10lprefkit.py index 5347a15..bffd85a 100755 --- a/litex_boards/targets/trenz_c10lprefkit.py +++ b/litex_boards/targets/trenz_c10lprefkit.py @@ -58,7 +58,7 @@ class BaseSoC(SoCCore): } mem_map.update(SoCCore.mem_map) - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, with_ethernet=False, with_etherbone=False, **kwargs): platform = trenz_c10lprefkit.Platform() diff --git a/litex_boards/targets/trenz_cyc1000.py b/litex_boards/targets/trenz_cyc1000.py index 599a10c..c87dede 100755 --- a/litex_boards/targets/trenz_cyc1000.py +++ b/litex_boards/targets/trenz_cyc1000.py @@ -46,7 +46,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, **kwargs): platform = trenz_cyc1000.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/trenz_max1000.py b/litex_boards/targets/trenz_max1000.py index f94314a..f44d383 100755 --- a/litex_boards/targets/trenz_max1000.py +++ b/litex_boards/targets/trenz_max1000.py @@ -46,7 +46,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(50e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=50e6, with_led_chaser=True, **kwargs): platform = trenz_max1000.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/trenz_te0725.py b/litex_boards/targets/trenz_te0725.py index 6d9cc43..0b751d5 100755 --- a/litex_boards/targets/trenz_te0725.py +++ b/litex_boards/targets/trenz_te0725.py @@ -35,7 +35,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, **kwargs): platform = trenz_te0725.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/trenz_tec0117.py b/litex_boards/targets/trenz_tec0117.py index cbd2725..2562e89 100755 --- a/litex_boards/targets/trenz_tec0117.py +++ b/litex_boards/targets/trenz_tec0117.py @@ -58,7 +58,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, bios_flash_offset=0x0000, sys_clk_freq=int(25e6), sdram_rate="1:1", + def __init__(self, bios_flash_offset=0x0000, sys_clk_freq=25e6, sdram_rate="1:1", with_led_chaser=True, **kwargs): platform = trenz_tec0117.Platform() diff --git a/litex_boards/targets/tul_pynq_z2.py b/litex_boards/targets/tul_pynq_z2.py index 14a8102..338ace9 100755 --- a/litex_boards/targets/tul_pynq_z2.py +++ b/litex_boards/targets/tul_pynq_z2.py @@ -44,7 +44,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), **kwargs): + def __init__(self, sys_clk_freq=100e6, **kwargs): platform = tul_pynq_z2.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/xilinx_ac701.py b/litex_boards/targets/xilinx_ac701.py index 856a83c..bcef63a 100755 --- a/litex_boards/targets/xilinx_ac701.py +++ b/litex_boards/targets/xilinx_ac701.py @@ -57,7 +57,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_ethernet=False, eth_phy="rgmii", + def __init__(self, sys_clk_freq=100e6, with_ethernet=False, eth_phy="rgmii", with_spi_flash=False, with_led_chaser=True, with_pcie=False, **kwargs): platform = xilinx_ac701.Platform() diff --git a/litex_boards/targets/xilinx_alveo_u250.py b/litex_boards/targets/xilinx_alveo_u250.py index 0fc9b7b..3128a96 100755 --- a/litex_boards/targets/xilinx_alveo_u250.py +++ b/litex_boards/targets/xilinx_alveo_u250.py @@ -60,7 +60,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_led_chaser=True, with_pcie=False, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_led_chaser=True, with_pcie=False, **kwargs): platform = xilinx_alveo_u250.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/xilinx_alveo_u280.py b/litex_boards/targets/xilinx_alveo_u280.py index c0b12a2..f4e216f 100755 --- a/litex_boards/targets/xilinx_alveo_u280.py +++ b/litex_boards/targets/xilinx_alveo_u280.py @@ -87,7 +87,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(150e6), ddram_channel=0, with_pcie=False, with_led_chaser=False, with_hbm=False, **kwargs): + def __init__(self, sys_clk_freq=150e6, ddram_channel=0, with_pcie=False, with_led_chaser=False, with_hbm=False, **kwargs): platform = xilinx_alveo_u280.Platform() if with_hbm: assert 225e6 <= sys_clk_freq <= 450e6 diff --git a/litex_boards/targets/xilinx_kc705.py b/litex_boards/targets/xilinx_kc705.py index 6f641e5..3480822 100755 --- a/litex_boards/targets/xilinx_kc705.py +++ b/litex_boards/targets/xilinx_kc705.py @@ -53,7 +53,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_ethernet=False, with_led_chaser=True, + def __init__(self, sys_clk_freq=125e6, with_ethernet=False, with_led_chaser=True, with_spi_flash=False, with_pcie=False, with_sata=False, **kwargs): platform = xilinx_kc705.Platform() diff --git a/litex_boards/targets/xilinx_kcu105.py b/litex_boards/targets/xilinx_kcu105.py index edffc0c..3bee6ae 100755 --- a/litex_boards/targets/xilinx_kcu105.py +++ b/litex_boards/targets/xilinx_kcu105.py @@ -62,7 +62,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_ethernet=False, with_etherbone=False, + def __init__(self, sys_clk_freq=125e6, with_ethernet=False, with_etherbone=False, eth_ip="192.168.1.50", with_led_chaser=True, with_pcie=False, with_sata=False, **kwargs): platform = xilinx_kcu105.Platform() diff --git a/litex_boards/targets/xilinx_kv260.py b/litex_boards/targets/xilinx_kv260.py index be882f6..87848c8 100755 --- a/litex_boards/targets/xilinx_kv260.py +++ b/litex_boards/targets/xilinx_kv260.py @@ -58,7 +58,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): mem_map = {"csr": 0xA000_0000} # default GP0 address on ZynqMP - def __init__(self, sys_clk_freq, **kwargs): + def __init__(self, sys_clk_freq=100e6, **kwargs): platform = xilinx_kv260.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/xilinx_vc707.py b/litex_boards/targets/xilinx_vc707.py index 4f9c3e4..5127bf9 100755 --- a/litex_boards/targets/xilinx_vc707.py +++ b/litex_boards/targets/xilinx_vc707.py @@ -49,7 +49,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_led_chaser=True, with_pcie=False, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_led_chaser=True, with_pcie=False, **kwargs): platform = xilinx_vc707.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/xilinx_vcu118.py b/litex_boards/targets/xilinx_vcu118.py index 29d033b..36cf9e8 100755 --- a/litex_boards/targets/xilinx_vcu118.py +++ b/litex_boards/targets/xilinx_vcu118.py @@ -54,7 +54,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_led_chaser=True, **kwargs): platform = xilinx_vcu118.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/xilinx_zcu102.py b/litex_boards/targets/xilinx_zcu102.py index 6d48ffa..8c9e5a1 100755 --- a/litex_boards/targets/xilinx_zcu102.py +++ b/litex_boards/targets/xilinx_zcu102.py @@ -23,7 +23,7 @@ from litex.soc.cores.led import LedChaser # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq, with_ethernet=False, with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_ethernet=False, with_led_chaser=True, **kwargs): platform = xilinx_zcu102.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/xilinx_zcu104.py b/litex_boards/targets/xilinx_zcu104.py index 12accb4..d38cb00 100755 --- a/litex_boards/targets/xilinx_zcu104.py +++ b/litex_boards/targets/xilinx_zcu104.py @@ -55,7 +55,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_led_chaser=True, **kwargs): platform = xilinx_zcu104.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/xilinx_zcu106.py b/litex_boards/targets/xilinx_zcu106.py index e3207df..48f0c41 100755 --- a/litex_boards/targets/xilinx_zcu106.py +++ b/litex_boards/targets/xilinx_zcu106.py @@ -59,7 +59,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(125e6), with_led_chaser=True, with_pcie=False, **kwargs): + def __init__(self, sys_clk_freq=125e6, with_led_chaser=True, with_pcie=False, **kwargs): platform = xilinx_zcu106.Platform() # SoCCore ---------------------------------------------------------------------------------- diff --git a/litex_boards/targets/xilinx_zcu216.py b/litex_boards/targets/xilinx_zcu216.py index 3cd0e87..b577f50 100755 --- a/litex_boards/targets/xilinx_zcu216.py +++ b/litex_boards/targets/xilinx_zcu216.py @@ -48,7 +48,7 @@ class _CRG(LiteXModule): class BaseSoC(SoCCore): mem_map = {"csr": 0xA000_0000} # default GP0 address on ZynqMP - def __init__(self, sys_clk_freq, with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, **kwargs): platform = xilinx_zcu216.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/xilinx_zybo_z7.py b/litex_boards/targets/xilinx_zybo_z7.py index 1d05ca4..c5a6ad5 100755 --- a/litex_boards/targets/xilinx_zybo_z7.py +++ b/litex_boards/targets/xilinx_zybo_z7.py @@ -43,7 +43,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, sys_clk_freq=int(100e6), with_led_chaser=True, **kwargs): + def __init__(self, sys_clk_freq=100e6, with_led_chaser=True, **kwargs): platform = digilent_zybo_z7.Platform() # CRG -------------------------------------------------------------------------------------- diff --git a/litex_boards/targets/ztex213.py b/litex_boards/targets/ztex213.py index 03a75d9..2bfc146 100755 --- a/litex_boards/targets/ztex213.py +++ b/litex_boards/targets/ztex213.py @@ -60,7 +60,7 @@ class _CRG(LiteXModule): # BaseSoC ------------------------------------------------------------------------------------------ class BaseSoC(SoCCore): - def __init__(self, variant="ztex2.13a", sys_clk_freq=int(100e6), expansion="debug", + def __init__(self, variant="ztex2.13a", sys_clk_freq=100e6, expansion="debug", with_led_chaser=True, **kwargs): platform = ztex213.Platform(variant=variant, expansion=expansion)