Skip to content

Commit

Permalink
Initialise undriven outputs when QSPI is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
rejunity committed Oct 26, 2024
1 parent 0918e86 commit 8768607
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tt_um_rejunity_atari2600.v
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ module tt_um_rejunity_atari2600 (
// Audio PMOD + ROM SPI
// 1 bidirectional pin is unused (tia_vsync for diagostics in Verilator)
// TODO: output video_active for DVI instead
`ifdef QSPI_ROM
assign uio_out = {audio_pwm, tia_vsync, spi_select, spi_clk_out, spi_data_out};
assign uio_oe = { 1'b1, 1'b1, 1'b1, 1'b1, spi_data_oe};
`else
assign uio_out = {audio_pwm, tia_vsync, 1'b0, 1'b0, 3'b000};
assign uio_oe = { 1'b1, 1'b1, 1'b1, 1'b1, 3'b111};
`endif
assign spi_data_in = uio_in[3:0];

// Suppress unused signals warning
Expand Down

0 comments on commit 8768607

Please sign in to comment.