From df7e4aee46b270790b8712c36016160ae5ee8216 Mon Sep 17 00:00:00 2001 From: Hugo McNally Date: Wed, 30 Oct 2024 10:52:30 +0000 Subject: [PATCH] fgpa: Change output pins to pull high by default. Pull output pins high when their output isn't enabled. They are pulled high because SPI CS and UART TX lines should default to being pulled high. --- rtl/fpga/top_sonata.sv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtl/fpga/top_sonata.sv b/rtl/fpga/top_sonata.sv index d72235b7e..b03bb2fcf 100644 --- a/rtl/fpga/top_sonata.sv +++ b/rtl/fpga/top_sonata.sv @@ -422,8 +422,10 @@ module top_sonata assign in_from_pins[IN_PIN_SER0_RX ] = ser0_rx; // Output Pins - // pull output pins low when their output isn't enabled. - assign output_pins = out_to_pins_en & out_to_pins; + // Pull output pins high when their output isn't enabled. + // They are pulled high because SPI CS and UART TX lines + // should default to being pulled high. + assign output_pins = out_to_pins | ~out_to_pins_en; assign microsd_dat3 = output_pins[OUT_PIN_MICROSD_DAT3]; assign microsd_cmd = output_pins[OUT_PIN_MICROSD_CMD ];