sipeed_tang_mega_138k: Fix build with ethernet and local/remote ip indent.
This commit is contained in:
parent
dbcd5bc3f5
commit
39dc0b36a4
|
@ -181,7 +181,7 @@ class BaseSoC(SoCCore):
|
||||||
clk50_half = Signal()
|
clk50_half = Signal()
|
||||||
self.specials += Instance("CLKDIV",
|
self.specials += Instance("CLKDIV",
|
||||||
p_DIV_MODE = "2",
|
p_DIV_MODE = "2",
|
||||||
i_HCLKIN = self.crg.clk50,
|
i_HCLKIN = platform.lookup_request("clk50"),
|
||||||
i_RESETN = 1,
|
i_RESETN = 1,
|
||||||
i_CALIB = 0,
|
i_CALIB = 0,
|
||||||
o_CLKOUT = clk50_half)
|
o_CLKOUT = clk50_half)
|
||||||
|
@ -191,19 +191,19 @@ class BaseSoC(SoCCore):
|
||||||
if with_etherbone:
|
if with_etherbone:
|
||||||
self.add_etherbone(phy=self.ethphy, data_width=32)
|
self.add_etherbone(phy=self.ethphy, data_width=32)
|
||||||
|
|
||||||
if local_ip:
|
if local_ip:
|
||||||
local_ip = local_ip.split(".")
|
local_ip = local_ip.split(".")
|
||||||
self.add_constant("LOCALIP1", int(local_ip[0]))
|
self.add_constant("LOCALIP1", int(local_ip[0]))
|
||||||
self.add_constant("LOCALIP2", int(local_ip[1]))
|
self.add_constant("LOCALIP2", int(local_ip[1]))
|
||||||
self.add_constant("LOCALIP3", int(local_ip[2]))
|
self.add_constant("LOCALIP3", int(local_ip[2]))
|
||||||
self.add_constant("LOCALIP4", int(local_ip[3]))
|
self.add_constant("LOCALIP4", int(local_ip[3]))
|
||||||
|
|
||||||
if remote_ip:
|
if remote_ip:
|
||||||
remote_ip = remote_ip.split(".")
|
remote_ip = remote_ip.split(".")
|
||||||
self.add_constant("REMOTEIP1", int(remote_ip[0]))
|
self.add_constant("REMOTEIP1", int(remote_ip[0]))
|
||||||
self.add_constant("REMOTEIP2", int(remote_ip[1]))
|
self.add_constant("REMOTEIP2", int(remote_ip[1]))
|
||||||
self.add_constant("REMOTEIP3", int(remote_ip[2]))
|
self.add_constant("REMOTEIP3", int(remote_ip[2]))
|
||||||
self.add_constant("REMOTEIP4", int(remote_ip[3]))
|
self.add_constant("REMOTEIP4", int(remote_ip[3]))
|
||||||
|
|
||||||
# SDR SDRAM --------------------------------------------------------------------------------
|
# SDR SDRAM --------------------------------------------------------------------------------
|
||||||
if with_sdram and not self.integrated_main_ram_size:
|
if with_sdram and not self.integrated_main_ram_size:
|
||||||
|
|
Loading…
Reference in New Issue