targets: replace MiniSoC with EthernetSoC
This commit is contained in:
parent
badd992469
commit
3e77ae788f
|
@ -114,7 +114,7 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.timing_settings)
|
||||
|
||||
|
||||
class MiniSoC(BaseSoC):
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
"ethphy": 18,
|
||||
"ethmac": 19
|
||||
|
@ -161,7 +161,7 @@ def main():
|
|||
help="enable Ethernet support")
|
||||
args = parser.parse_args()
|
||||
|
||||
cls = MiniSoC if args.with_ethernet else BaseSoC
|
||||
cls = EthernetSoC if args.with_ethernet else BaseSoC
|
||||
soc = cls(**soc_sdram_argdict(args))
|
||||
builder = Builder(soc, **builder_argdict(args))
|
||||
builder.build()
|
||||
|
|
|
@ -96,7 +96,7 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.timing_settings)
|
||||
|
||||
|
||||
class MiniSoC(BaseSoC):
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
"ethphy": 18,
|
||||
"ethmac": 19
|
||||
|
@ -143,7 +143,7 @@ def main():
|
|||
help="enable Ethernet support")
|
||||
args = parser.parse_args()
|
||||
|
||||
cls = MiniSoC if args.with_ethernet else BaseSoC
|
||||
cls = EthernetSoC if args.with_ethernet else BaseSoC
|
||||
soc = cls(**soc_sdram_argdict(args))
|
||||
builder = Builder(soc, **builder_argdict(args))
|
||||
builder.build()
|
||||
|
|
|
@ -96,7 +96,7 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.timing_settings)
|
||||
|
||||
|
||||
class MiniSoC(BaseSoC):
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
"ethphy": 18,
|
||||
"ethmac": 19
|
||||
|
@ -143,7 +143,7 @@ def main():
|
|||
help="enable Ethernet support")
|
||||
args = parser.parse_args()
|
||||
|
||||
cls = MiniSoC if args.with_ethernet else BaseSoC
|
||||
cls = EthernetSoC if args.with_ethernet else BaseSoC
|
||||
soc = cls(**soc_sdram_argdict(args))
|
||||
builder = Builder(soc, **builder_argdict(args))
|
||||
builder.build()
|
||||
|
|
|
@ -103,7 +103,7 @@ class BaseSoC(SoCSDRAM):
|
|||
sdram_module.timing_settings)
|
||||
|
||||
|
||||
class MiniSoC(BaseSoC):
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
"ethphy": 18,
|
||||
"ethmac": 19
|
||||
|
@ -150,7 +150,7 @@ def main():
|
|||
help="enable Ethernet support")
|
||||
args = parser.parse_args()
|
||||
|
||||
cls = MiniSoC if args.with_ethernet else BaseSoC
|
||||
cls = EthernetSoC if args.with_ethernet else BaseSoC
|
||||
soc = cls(**soc_sdram_argdict(args))
|
||||
builder = Builder(soc, **builder_argdict(args))
|
||||
builder.build()
|
||||
|
|
|
@ -22,7 +22,7 @@ class BaseSoC(SoCCore):
|
|||
self.submodules.crg = CRG(platform.request(platform.default_clk_name))
|
||||
|
||||
|
||||
class MiniSoC(BaseSoC):
|
||||
class EthernetSoC(BaseSoC):
|
||||
csr_map = {
|
||||
"ethphy": 20,
|
||||
"ethmac": 21
|
||||
|
@ -62,7 +62,7 @@ def main():
|
|||
|
||||
platform_module = importlib.import_module(args.platform)
|
||||
platform = platform_module.Platform()
|
||||
cls = MiniSoC if args.with_ethernet else BaseSoC
|
||||
cls = EthernetSoC if args.with_ethernet else BaseSoC
|
||||
soc = cls(platform, **soc_core_argdict(args))
|
||||
builder = Builder(soc, **builder_argdict(args))
|
||||
builder.build()
|
||||
|
|
Loading…
Reference in New Issue