Presentation

Download Report

Transcript Presentation

1
Super Frogger
Ziyao Xu, Xin Zhang, Chenxi Liu,
Shengzhen Li
1
2
1. Introduction to Video
2
1. Introduction to video
1. Display of frog, item, background, and scoreboard
2. Communication between hardware and software
3
1. Introduction to video
1. Display of frog, item, background, and scoreboard
a. Frog controller
display (direction, frog phase)
movement (keyboard)
b. item controller
movement (offset in each row)
faster in high level
c. background controller
display (pattern change)
d. ROM and pattern construction
picture processing (reusing)
memory saving (also consider audio)
4
1. Introduction to video
1. Display of frog, item, background, and scoreboard
e. scoreboard
Number: method of number display in lab2
change number in the number pattern
Timing: counter for count down
15s count down
5s warning
5
1. Introduction to video
2. Communication between hardware and software
a. signal transmitted between software and hardware:
read: frog_x + offset, frog_y, frog_alive, pause,
frog_life
write: frog_x, frog_y, frog_direction
pause, score
b. hardware signal update according to control signals:
frog action & direction, deadflag
scoreboard matrix update (high, your, life left)
space button display
win number -> level display
clear signal
6
1. Introduction to video
2. Communication between hardware and software
c. C program architecture
while(1){
if (keyboard action(up, down, left, right))
check pause;
calculation & write;
else
check frog life;
write score or clear everything;
}
7
Block Diagram for Video
8
9
2. Introduction to audio
9
9
2. Introduction to audio
Hardware block diagram
SoundTrack1
Background
Music Sheet
Audio Controler
WM8731 AUDIO
CODEC
SoundTrack2
SoundTrack3
Frequency
Generator
(PLL)
10
2. Introduction to audio
Format for data stored in the music sheet
15
14
13
Volume
12
11
10
Sound No.
9
8
7
6
Pitch
5
4
3
2
1
0
Length
Sound list
11
Super Frogger
Thank you !
12