From 2174a9219b3f6eb5077569edae763732b4ad5b57 Mon Sep 17 00:00:00 2001 From: Franck Jullien Date: Tue, 21 Dec 2021 12:39:22 +0100 Subject: [PATCH] efinix: add gpio MIPI_CLKIN to ifacewriter --- litex/build/efinix/ifacewriter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litex/build/efinix/ifacewriter.py b/litex/build/efinix/ifacewriter.py index 5957d138f..3220e3a8e 100644 --- a/litex/build/efinix/ifacewriter.py +++ b/litex/build/efinix/ifacewriter.py @@ -174,6 +174,11 @@ design.create("{2}", "{3}", "./../gateware", overwrite=True) cmd += "\n" return cmd + if mode == "MIPI_CLKIN": + cmd += 'design.create_mipi_input_clock_gpio("{}")\n'.format(name) + cmd += 'design.assign_pkg_pin("{}","{}")\n\n'.format(name, block["location"]) + return cmd + if mode == "OUTPUT_CLK": cmd += 'design.create_clockout_gpio("{}")\n'.format(name) cmd += 'design.set_property("{}","OUT_CLK_PIN","{}")\n'.format(name, name)