File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -934,7 +934,7 @@ def main():
934
934
if "sdcard" in board .soc_capabilities :
935
935
soc .add_sdcard ()
936
936
if "ethernet" in board .soc_capabilities :
937
- soc .configure_ethernet (local_ip = args . local_ip , remote_ip = args .remote_ip )
937
+ soc .configure_ethernet (remote_ip = args .remote_ip )
938
938
#if "leds" in board.soc_capabilities:
939
939
# soc.add_leds()
940
940
if "rgb_led" in board .soc_capabilities :
Original file line number Diff line number Diff line change @@ -110,15 +110,9 @@ def add_mmcm(self, nclkout):
110
110
self .comb += self .mmcm .reset .eq (self .mmcm .drp_reset .re )
111
111
112
112
# Ethernet configuration -------------------------------------------------------------------
113
- def configure_ethernet (self , local_ip , remote_ip ):
114
- local_ip = local_ip .split ("." )
113
+ def configure_ethernet (self , remote_ip ):
115
114
remote_ip = remote_ip .split ("." )
116
115
117
- self .add_constant ("LOCALIP1" , int (local_ip [0 ]))
118
- self .add_constant ("LOCALIP2" , int (local_ip [1 ]))
119
- self .add_constant ("LOCALIP3" , int (local_ip [2 ]))
120
- self .add_constant ("LOCALIP4" , int (local_ip [3 ]))
121
-
122
116
self .add_constant ("REMOTEIP1" , int (remote_ip [0 ]))
123
117
self .add_constant ("REMOTEIP2" , int (remote_ip [1 ]))
124
118
self .add_constant ("REMOTEIP3" , int (remote_ip [2 ]))
You can’t perform that action at this time.
0 commit comments