Skip to content

Commit c00f81c

Browse files
committed
rtl: added ENABLE_MIDI parameter
This should be 0 if the MIDI input components are populated or else the UART will have a floating input, possibly affecting software.
1 parent 67fecf9 commit c00f81c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

rtl/top.v

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
`include "boards.vh"
1515

1616
module top #(
17-
parameter [0:0] ENABLE_DAC_DEBUG_REGS = 0
17+
parameter [0:0] ENABLE_DAC_DEBUG_REGS = 0,
18+
parameter [0:0] ENABLE_MIDI = 1
1819
) (
1920
// SPI
2021
inout wire [3:0] spi_io,
@@ -247,10 +248,9 @@ module top #(
247248

248249
assign wb_rdata[5] = 0;
249250

250-
// Audio PCM [6]
251+
// (Unused) [6]
251252
// -------------
252253

253-
// (removed)
254254
assign wb_rdata[6] = 0;
255255
assign wb_ack[6] = wb_cyc[6];
256256

@@ -262,7 +262,8 @@ module top #(
262262
.DW(WB_DW)
263263
) midi_I (
264264
.uart_tx (),
265-
.uart_rx (midi_rx),
265+
.uart_rx (ENABLE_MIDI ? midi_rx : 1),
266+
266267
.wb_addr (wb_addr[1:0]),
267268
.wb_rdata (wb_rdata[7]),
268269
.wb_we (wb_we),

0 commit comments

Comments
 (0)