Skip to content

Commit

Permalink
rtl: added ENABLE_MIDI parameter
Browse files Browse the repository at this point in the history
This should be 0 if the MIDI input components are populated or else the UART will have a floating input, possibly affecting software.
  • Loading branch information
dan-rodrigues committed Apr 5, 2021
1 parent 67fecf9 commit c00f81c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rtl/top.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
`include "boards.vh"

module top #(
parameter [0:0] ENABLE_DAC_DEBUG_REGS = 0
parameter [0:0] ENABLE_DAC_DEBUG_REGS = 0,
parameter [0:0] ENABLE_MIDI = 1
) (
// SPI
inout wire [3:0] spi_io,
Expand Down Expand Up @@ -247,10 +248,9 @@ module top #(

assign wb_rdata[5] = 0;

// Audio PCM [6]
// (Unused) [6]
// -------------

// (removed)
assign wb_rdata[6] = 0;
assign wb_ack[6] = wb_cyc[6];

Expand All @@ -262,7 +262,8 @@ module top #(
.DW(WB_DW)
) midi_I (
.uart_tx (),
.uart_rx (midi_rx),
.uart_rx (ENABLE_MIDI ? midi_rx : 1),

.wb_addr (wb_addr[1:0]),
.wb_rdata (wb_rdata[7]),
.wb_we (wb_we),
Expand Down

0 comments on commit c00f81c

Please sign in to comment.