CSEE 4840 Embedded System Galaxian Xiaotian Huo xh2144 Qi Ding - - PowerPoint PPT Presentation

csee 4840 embedded system
SMART_READER_LITE
LIVE PREVIEW

CSEE 4840 Embedded System Galaxian Xiaotian Huo xh2144 Qi Ding - - PowerPoint PPT Presentation

CSEE 4840 Embedded System Galaxian Xiaotian Huo xh2144 Qi Ding qd2110 Feng Ding fd2266 Yaolong Gao yg2258 CONTENT Introduction Hardware VGA Keyboard Audio Software Conclusion Introduction Control with ps2


slide-1
SLIDE 1

CSEE 4840 Embedded System Galaxian

Xiaotian Huo xh2144 Qi Ding qd2110 Feng Ding fd2266 Yaolong Gao yg2258

slide-2
SLIDE 2

CONTENT

 Introduction  Hardware

 VGA  Keyboard  Audio

 Software  Conclusion

slide-3
SLIDE 3

Introduction

Control with ps2 keyboard Star background is implemented Audio block is enabled

Game play

Player has 5 spaceships Ship can only move left and right at the bottom A matrix of swarm fluctuate back and forth on the top Swarm can fire bullet Goal: Shoot the swarm until all the enemies destroyed. Several wave is designed High score will be recorded.

slide-4
SLIDE 4

Star background

 Phase bias: 4 different phases of stars

implement: counter based

 Color: changing every time star flash

Color is assigned as an register rather than a constant

 Position distribution: Biases on one base address

(1)Horizontal: uniform distributed (2)Vertical: nearly randomly distributed

slide-5
SLIDE 5

100 200 300 400 500 600 100 200 300 400 500

star 1 star 1 star 1

slide-6
SLIDE 6

100 200 300 400 500 600 100 200 300 400 500

star 1 star 2 star 1 star 1

slide-7
SLIDE 7

100 200 300 400 500 600 700 100 200 300 400 500

star 1 star 4 star 2 star 1 star 1

slide-8
SLIDE 8

100 200 300 400 500 600 700 100 200 300 400 500

star 1 star 2 star 3 star 4 star 1 star 1

slide-9
SLIDE 9

VGA

 3 Different kinds of bees

slide-10
SLIDE 10

VGA

 Bee Matrix

slide-11
SLIDE 11

VGA

 360 Degrees Bee Direction

slide-12
SLIDE 12

Connection with Software

 Fast Moving Objects Synchronization

 vga_vsync = ‘1’ and vga_hsync = ‘1’

 Time Synchronization

SOFTWARE HARDWARE start_count = ‘1’ dataSendBack = ‘1’

slide-13
SLIDE 13

Keyboard

  • Use the de_ps2 vhdl file in Lab 3 audio part
  • Only implement the read interface
  • Use the data read from keyboard with logic

condition to eliminate subtle stuck when moving

slide-14
SLIDE 14

Audio

Audio_driver

wm8371

Connect to the Avalon bus

  • Modified version from

Lab 3 audio part

  • Use ROM to store

music files

  • Audio_driver

implement the connection interface

slide-15
SLIDE 15

Audio(Cont.)

Audio_driver

wm8371

Connect to the Avalon bus

  • wm8371 implement the

main funtion

  • Involve discussion

with Team Battle City

slide-16
SLIDE 16

Software

 IOWR_32DIRECT(base, address, data)

 IOWR_32DIRECT(VGA_BASE, address, data) to write data to VGA  IOWR_32DIRECT(AUDIO_BASE, address, data) to write data to AUDIO

 IODR_32DIRECT(base, offset)

 IODR_32(VGA_BASE, 0) to read data from VGA

 IODR_8DIRECT(base, offset)

 IODR_8DIRECT(PS2_BASE, 0)  IODR_8DIRECT(PS2_BASE, 4)

slide-17
SLIDE 17

Software

 Main Moving Objects:

 36 Alien Enemies

 20 Green (slowest)  8 Purple (fastest)  6 Red (median)  2 Command (median)

 Spaceship  Bullet from Spaceship  Bullet from Enemy

slide-18
SLIDE 18

Software

 Other Objects

 Explosion  Start Screen  Game Over  High Score  Current Score  Level  Player Life  Ready  Pause

slide-19
SLIDE 19

Enemy Movement

 Enemy randomly flying down  Enemy flying down in a circle  Enemy turning around when flying back  Enemy tracing the position of the spaceship  Enemy facing to the spaceship while flying  Command enemy with two guards flying together  Formation moving left and right  Bullet from the enemy  Bullet from the spaceship

slide-20
SLIDE 20

Collision

 Enemy hits the spaceship  Bullet from the enemy hits the spaceship  Bullet from the spaceship hits the flying enemy  Bullet from the spaceship hits the enemy in formation

slide-21
SLIDE 21

Conclusion

 Communication between Hardware and Software  Timing  Team Collaboration  Have Fun!