Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 2.27 KB

info.md

File metadata and controls

45 lines (31 loc) · 2.27 KB

How it works

This design will play Super Mario Tune over a Piezo Speaker connected across bidir[0:1] and bidir[7]. The speaker is driven in differential PWM mode to increase its output power. The changed pinout accomodates for the Tiny Tapeout Audio Pmod.

Chip Design of the Super Mario Tune player (see also the interactive version of this design)

Additionally - for testing purposes, the inputs ui[7:0] are copied to the hex segment display 1:1 (uo[7:0]).

Verilog Design Files

PWM Waveform in Verilog Simulation Output

Using GTKWave for visualization of Simulation Results: 25s of Verilog simulation - showing the Waveform output Zooming into the Waveform

How to test

Provide 100kHz clock on clk, briefly lower reset (rst_n) and bidir[1:0]/bidir[7] will play a differential sound wave over piezo speaker (Super Mario Tune).

External hardware

Piezo speaker connected across bidir[1:0] (loud) or between bidir[7] and GND (less loud). Alternatively you can connect the Tiny Tapeout Audio Pmod to the bidir port to listen to the music.