EasyManua.ls Logo

Altera DE2-115 - Music Synthesizer Demonstration

Altera DE2-115
116 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
100
6
6
.
.
1
1
0
0
M
M
u
u
s
s
i
i
c
c
S
S
y
y
n
n
t
t
h
h
e
e
s
s
i
i
z
z
e
e
r
r
D
D
e
e
m
m
o
o
n
n
s
s
t
t
r
r
a
a
t
t
i
i
o
o
n
n
This demonstration shows how to implement a Multi-tone Electronic Keyboard using DE2-115
board with a PS/2 Keyboard and a speaker.
PS/2 Keyboard is used as the piano keyboard for input. The Cyclone IV E FPGA on the DE2-115
board serves as the Music Synthesizer SOC to generate music and tones. The VGA connected to the
DE2-115 board is used to show which key is pressed during the playing of the music.
Figure 6-23 shows the block diagram of the design of the Music Synthesizer. There are four major
blocks in the circuit: DEMO_SOUND, PS2_KEYBOARD, STAFF, and TONE_GENERATOR. The
DEMO_SOUND block stores a demo sound for users to play; PS2_KEYBOARD handles the users‟
input from PS/2 keyboard; The STAFF block draws the corresponding keyboard diagram on VGA
monitor when key(s) are pressed. The TONE_GENERATOR is the core of music synthesizer SOC.
Users can switch the music source either from PS2_KEYBOAD or the DEMO_SOUND block
using SW9. To repeat the demo sound, users can press KEY1.
The TONE_GENERATOR has two tones: (1) String. (2) Brass, which is controlled by SW0. The
audio codec used on the DE2-115 board has two channels, which can be turned ON/OFF using SW1
and SW2.
Figure 6-24 illustrates the setup for this demonstration.

Table of Contents

Related product manuals