From 8692ddfbff5f20ee9e4c9d2a0227814a70cd1899 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 15 Oct 2021 16:40:01 +0200 Subject: [PATCH] Set defaults for efx_pgm pass --- litex/build/efinix/efinity.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/litex/build/efinix/efinity.py b/litex/build/efinix/efinity.py index 34e8a7085..1ee4e65b8 100644 --- a/litex/build/efinix/efinity.py +++ b/litex/build/efinix/efinity.py @@ -237,7 +237,12 @@ class EfinityToolchain(): self.false_paths = set() self.efinity_path = efinity_path self.additional_sdc_commands = [] - self.additional_xml_commands = [] + self.additional_xml_commands = [ + [ 'efx_pgm', 'spi_low_power_mode', 'on', 'e_bool'], + [ 'efx_pgm', 'io_weak_pullup', 'on', 'e_bool'], + [ 'efx_pgm', 'oscillator_clock_divider', 'DIV8', 'e_option'], + [ 'efx_pgm', 'enable_crc_check', 'on', 'e_bool'], + ] self.ifacewriter = InterfaceWriter(efinity_path) self.specials_gpios = [] self.additional_iface_commands = []