
DE10-Standard
User Manual
65
www.terasic.com
January 19, 2017
Figure 5-3
shows the block diagram of audio recorder and player design. There are hardware and
software parts in the block diagram. The software part stores the Nios II program in the on-chip
memory. The software part is built under Eclipse in C programming language. The hardware part is
built under Qsys in Quartus II. The hardware part includes all the other blocks such as the “AUDIO
Controller”, which is a user-defined Qsys component and it is designed to send audio data to the
audio chip or receive audio data from the audio chip.
The audio chip is programmed through I2C protocol, which is implemented in C code. The I2C pins
from the audio chip are connected to Qsys system interconnect fabric through PIO controllers. The
audio chip is configured in master mode in this demonstration. The audio interface is configured as
16-bit I2S mode. 18.432MHz clock generated by the PLL is connected to the MCLK/XTI pin of the
audio chip through the audio controller.
Figure 5-3 Block diagram of the audio recorder and player
Demonstration Setup, File Locations, and Instructions
Hardware project directory: DE10_Standard_Audio
Bitstream used: DE10_Standard_Audio.sof
Software project directory: DE10_Standard_Audio\software
Connect an audio source to the Line-in port
Connect a Microphone to the MIC-in port
Connect a speaker or headset to the Line-out port
Load the bitstream into the FPGA. (note *1)
Load the software execution file into the FPGA. (note *1)
Configure the audio with SW0, as shown in
Table 5-1
.