targets/arty/genesys2: fix EthernetSoC/EtherboneSoC selection
This commit is contained in:
parent
990870d061
commit
f2a1673f46
|
@ -148,8 +148,11 @@ def main():
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
assert not (args.with_ethernet and args.with_etherbone)
|
assert not (args.with_ethernet and args.with_etherbone)
|
||||||
cls = EthernetSoC if args.with_ethernet else BaseSoC
|
cls = BaseSoC
|
||||||
cls = EtherboneSoC if args.with_etherbone else BaseSoC
|
if args.with_ethernet:
|
||||||
|
cls = EthernetSoC
|
||||||
|
if args.with_etherbone:
|
||||||
|
cls = EtherboneSoC
|
||||||
soc = cls(**soc_sdram_argdict(args))
|
soc = cls(**soc_sdram_argdict(args))
|
||||||
builder = Builder(soc, **builder_argdict(args))
|
builder = Builder(soc, **builder_argdict(args))
|
||||||
builder.build(**vivado_build_argdict(args))
|
builder.build(**vivado_build_argdict(args))
|
||||||
|
|
|
@ -139,8 +139,11 @@ def main():
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
assert not (args.with_ethernet and args.with_etherbone)
|
assert not (args.with_ethernet and args.with_etherbone)
|
||||||
cls = EthernetSoC if args.with_ethernet else BaseSoC
|
cls = BaseSoC
|
||||||
cls = EtherboneSoC if args.with_etherbone else BaseSoC
|
if args.with_ethernet:
|
||||||
|
cls = EthernetSoC
|
||||||
|
if args.with_etherbone:
|
||||||
|
cls = EtherboneSoC
|
||||||
soc = cls(**soc_sdram_argdict(args))
|
soc = cls(**soc_sdram_argdict(args))
|
||||||
builder = Builder(soc, **builder_argdict(args))
|
builder = Builder(soc, **builder_argdict(args))
|
||||||
builder.build()
|
builder.build()
|
||||||
|
|
Loading…
Reference in New Issue