DECA User Manual
64
www.terasic.com
May 22, 2015
Figure 5-9 Block diagram of the G-sensor
Design Tools
Quartus II v15.0
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
S
S
o
o
u
u
r
r
c
c
e
e
C
C
o
o
d
d
e
e
Project directory: DECA_Gsensor
Bitstream used: DECA_Gsensor.sof
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
B
B
a
a
t
t
c
c
h
h
F
F
i
i
l
l
e
e
Demo batch file folder: \DECA_Gsensor\demo_batch
The directory includes the following files:
Batch file: test.bat
FPGA configuration file: DECA_Gsensor.sof
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
S
S
e
e
t
t
u
u
p
p
a
a
n
n
d
d
I
I
n
n
s
s
t
t
r
r
u
u
c
c
t
t
i
i
o
o
n
n
s
s
Quartus II v15.0 must be pre-installed to the host PC.
Connect the DECA board (J10) to the host PC with a USB cable and install the USB-Blaster II
driver if necessary
Plug the 5V adapter to DECA Board.
Place the DECA board horizontally.
Execute the demo batch file “ test.bat” from the directo
r
y:
\DECA_Gsensor\demo_batch
LED0~LED7 will flash several times at the very beginning, and finally LED3 and LED4 will
light up, others will light off.