targets: Fix typos.
This commit is contained in:
parent
a611f035d6
commit
88f2625c3d
|
@ -74,7 +74,7 @@ class BaseSoC(SoCCore):
|
||||||
platform = arty.Platform(variant=variant, toolchain=toolchain)
|
platform = arty.Platform(variant=variant, toolchain=toolchain)
|
||||||
|
|
||||||
# CRG --------------------------------------------------------------------------------------
|
# CRG --------------------------------------------------------------------------------------
|
||||||
with_dram = (kwargs.get("integrated_main_ram_size", 0) != 0)
|
with_dram = (kwargs.get("integrated_main_ram_size", 0) == 0)
|
||||||
self.submodules.crg = _CRG(platform, sys_clk_freq, with_dram)
|
self.submodules.crg = _CRG(platform, sys_clk_freq, with_dram)
|
||||||
|
|
||||||
# SoCCore ----------------------------------------------------------------------------------
|
# SoCCore ----------------------------------------------------------------------------------
|
||||||
|
|
|
@ -149,12 +149,12 @@ class BaseSoC(SoCCore):
|
||||||
platform = orangecrab.Platform(revision=revision, device=device ,toolchain=toolchain)
|
platform = orangecrab.Platform(revision=revision, device=device ,toolchain=toolchain)
|
||||||
|
|
||||||
# CRG --------------------------------------------------------------------------------------
|
# CRG --------------------------------------------------------------------------------------
|
||||||
with_usb_pll = kwargs.get("uart_name", None) == "usb_acm"
|
with_usb_pll = kwargs.get("uart_name") in ["serial", "usb_acm"]
|
||||||
crg_cls = _CRGSDRAM if kwargs.get("integrated_main_ram_size", 0) == 0 else _CRG
|
crg_cls = _CRGSDRAM if kwargs.get("integrated_main_ram_size", 0) == 0 else _CRG
|
||||||
self.submodules.crg = crg_cls(platform, sys_clk_freq, with_usb_pll)
|
self.submodules.crg = crg_cls(platform, sys_clk_freq, with_usb_pll)
|
||||||
|
|
||||||
# SoCCore ----------------------------------------------------------------------------------
|
# SoCCore ----------------------------------------------------------------------------------
|
||||||
if kwargs["uart_name"] in ["serial", "usb_acm"]:
|
if kwargs["uart_name"] in ["serial"]:
|
||||||
kwargs["uart_name"] = "usb_acm"
|
kwargs["uart_name"] = "usb_acm"
|
||||||
# Defaults to USB ACM through ValentyUSB.
|
# Defaults to USB ACM through ValentyUSB.
|
||||||
os.system("git clone https://github.com/litex-hub/valentyusb -b hw_cdc_eptri")
|
os.system("git clone https://github.com/litex-hub/valentyusb -b hw_cdc_eptri")
|
||||||
|
|
|
@ -68,6 +68,7 @@ class BaseSoC(SoCMini):
|
||||||
self.submodules.crg = _CRG(platform, sys_clk_freq)
|
self.submodules.crg = _CRG(platform, sys_clk_freq)
|
||||||
|
|
||||||
# SoCMini ----------------------------------------------------------------------------------
|
# SoCMini ----------------------------------------------------------------------------------
|
||||||
|
kwargs["uart_name"] = "crossover"
|
||||||
SoCMini.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Tang Nano", **kwargs)
|
SoCMini.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Tang Nano", **kwargs)
|
||||||
|
|
||||||
# UARTBone ---------------------------------------------------------------------------------
|
# UARTBone ---------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue