/tt05-play-tune

Plays a tune over a piezo speaker connected to GPIO pins

Primary LanguageVerilogApache License 2.0Apache-2.0

TinyTapeout tt05: Super Mario Tune on A Piezo Speaker

Overview

This Verilog chip design is made for the TinyTapout tt05 shuttle. It will play the Super Mario Tune over a Piezo Speaker connected across uio_out[1:0]. The speaker is driven in differential PWM mode to increase its output power.

Listen To The Generated Sound

Listen to the Verilog Simulation PWM output for 100kHz clock frequency here.

Chip Design of the Super Mario Tune player

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

Verilog Design Files

Waveform of 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 uio_out[1:0] will play a differential sound wave over piezo speaker (Super Mario Tune).

External Hardware Required

Piezo speaker connected across uio_out[1:0]