Skip to content

Commit

Permalink
fgpa: Change output pins to pull high by default.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
HU90m authored and marnovandermaas committed Oct 30, 2024
1 parent 7bbd29b commit df7e4ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rtl/fpga/top_sonata.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down

0 comments on commit df7e4ae

Please sign in to comment.