In this lab the NEXYS A7 will generate an audio siren using a digital to analog converter. The digital audio sequence will be formatted into a serial stream that can be used to drive an outboard to DAC.
Nexys A7 Trainer Board
16 - bit stereo Digital to Analog Converter module
The DAC module plugs into on of the PMOD connectors on the Nexys A7 board. The module's connections are shown on the right. The DAC converts left and right 16-bit digital data streams into two analog left and right channel signals which can be used to drive a stereo speaker system. For more information of the DAC Interface click here.
This module takes 16-bit parallel stereo data and converts it to the serial format required by the digital to analog converter.
This module generates a 16-bit signed triangle wave sequence at a sampling rate determined by input clk and with a frequency of (clk*pitch)/65,536
This module generates a wailing siren sound by instancing a tone module and modulating the pitch of the tone. The pitch is increased until it reaches hi_pitch and then decreased until it reaches lo_pitch.
This is the top level module that brings everything together. The constants lo_tone. hi_tone and wail_speed define the parameters of the siren.