From 27c3afb8fbccc23af52c6b66f748c0f5393acabe Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Fri, 4 Nov 2022 10:53:35 +0800 Subject: [PATCH] sitlinv_stlv7325: allow dynamic Ethernet IP Currently the sitlinv_stlv7325 target script parses the option that selects dynamic Ethernet IP; however it's not really passed to LiteETH. Really pass this option and add an assert that does not allow dynamic Etherbone IP like other boards. Signed-off-by: Icenowy Zheng --- litex_boards/targets/sitlinv_stlv7325.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litex_boards/targets/sitlinv_stlv7325.py b/litex_boards/targets/sitlinv_stlv7325.py index ce58825..bfe051f 100755 --- a/litex_boards/targets/sitlinv_stlv7325.py +++ b/litex_boards/targets/sitlinv_stlv7325.py @@ -97,7 +97,7 @@ class BaseSoC(SoCCore): pads = self.platform.request("eth", 0), clk_freq = self.clk_freq) if with_ethernet: - self.add_ethernet(phy=self.ethphy) + self.add_ethernet(phy=self.ethphy, dynamic_ip=eth_dynamic_ip) if with_etherbone: self.add_etherbone(phy=self.ethphy) @@ -159,6 +159,8 @@ def main(): sdopts.add_argument("--with-sdcard", action="store_true", help="Enable SDCard support.") args = parser.parse_args() + assert not (args.with_etherbone and args.eth_dynamic_ip) + soc = BaseSoC( sys_clk_freq = args.sys_clk_freq, with_ethernet = args.with_ethernet,