Skip to content

Commit 3baf761

Browse files
committed
feat: add corrections to main module
1 parent c658591 commit 3baf761

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/tt_um_waves.v

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ end
202202

203203
// Waveform Output
204204
wire [7:0] wave_out;
205-
wire [7:0] scaled_wave;
205+
assign wave_out = selected_wave; // Ensure wave_out is driven
206+
wire [7:0] scaled_wave;
206207

207208
// White Noise Generator
208209
reg [7:0] white_noise_out;
@@ -248,6 +249,11 @@ end
248249
assign uo_out[7:3] = 5'b0; // Remaining unused bits
249250
assign uio_out = 8'b0; // Unused IOs
250251
assign uio_oe = 8'b0; // All IOs set to input mode
252+
assign uo_out[7:3] = 5'b00000; // Ensure upper bits are driven
253+
assign uo_out[0] = i2s_out.sck; // I2S clock
254+
assign uo_out[1] = i2s_out.ws; // I2S word select
255+
assign uo_out[2] = i2s_out.sd; // I2S serial data
256+
251257

252258
endmodule
253259

0 commit comments

Comments
 (0)