+ WMT Wh Whac ac-A-Mole Li Like G Game me CSEE 4840 4840 - - PowerPoint PPT Presentation

wmt wh whac ac a mole li like g game me csee 4840 4840
SMART_READER_LITE
LIVE PREVIEW

+ WMT Wh Whac ac-A-Mole Li Like G Game me CSEE 4840 4840 - - PowerPoint PPT Presentation

+ WMT Wh Whac ac-A-Mole Li Like G Game me CSEE 4840 4840 Embed mbedded ded System em Des esign ign Lingchuan Mei: lm2908@columbia.edu Jian Lu: jl3946@columbia.edu Shuting Yang: sy2489@columbia.edu Si Wang:


slide-1
SLIDE 1

+

CSEE 4840 4840 Embed mbedded ded System em Des esign ign

Lingchuan Mei: lm2908@columbia.edu Jian Lu: jl3946@columbia.edu Shuting Yang: sy2489@columbia.edu Si Wang: sw2778@columbia.edu

WMT – – “Wh Whac ac-A-Mole” Li Like G Game me

slide-2
SLIDE 2

+Overview

n “Whac-A-Mole” like game system

slide-3
SLIDE 3

+Basic Game Logic

n Nine holes, Three initial lives, Two minutes n Different items

Get: Good! Add life Deduct life Miss: Deduct life Nothing happen Nothing happen

n Different levels

slide-4
SLIDE 4

+Basic Game Logic Cont.

slide-5
SLIDE 5

+System Architecture

slide-6
SLIDE 6

+Hardware Implementation

n Work with ADC to get the touch position x and y coordinates

and read it out in Nios II

n Figure out how to display image correctly on a 800x480

screen

n Turn the x,y coordinates into useful data for software

processing.

n Set up the interrupt for touching n Figure out how to store all the data on board, basically using

SDRAM and SRAM together. Using SRAM MUX.

slide-7
SLIDE 7

+Hardware Implementation Cont.

n Map all the peripherals onto Avalon bus and get rid of the

ELF error

n Image conversion n Create the state machine for the game n Redesign a LED clock on the touch screen.

slide-8
SLIDE 8

+Lessons Learned About Hardware

n ELF error is usually due to wiring mistake in the top level

connection of NIOS.

n Every time you copy an entire project, remember to recreate

the nios project. Otherwise the BSP package is mapped to the

  • ld SOPC.

n Should have design the interface more easy to use. Should

split all the variables instead of putting all of them together

n Build the design using small modules.

slide-9
SLIDE 9

+Display Dynamic Items

n Image -> Matrix -> Calculate the edge of the item -> SRAM n Get the signal from the software: when, where, what n Layers implementation

slide-10
SLIDE 10

+Software

n Get touch signal from hardware and identify the

corresponding action

n Control the difficulty level n Implement of the main game logic n Keep track of the lives left, points earned and the action user

take

n Send signal back to the hardware

slide-11
SLIDE 11

+Audio

Avalon Bus

De2_WM8731 _audio Music controller

I r q Irq

WM8731 Audio CODEC Ear plugs CPU SDRAM controller

Main.c

N ios System

Music.h

SDRAM

slide-12
SLIDE 12

+ Design Key Issues

n 1.Understand how WM8731 works n 2.Tried to synthesis music. -Too simple n 3.Sample rates. 22050Hz. -killed 6000hz n 4.Store music in ROM. -slow compilation

slide-13
SLIDE 13

+ Design Key Issues

  • 4. Data transfer

RAM 256-2bytes Data_out 256-2bytes Shift_out 2 bytes

f = 50MHZ f = 18.432MHZ

Audio_chip IRQ

NIOS

Through Avalon Bus using interrupt request. Using buffer to buffer data transfer between clock domains

slide-14
SLIDE 14

+ Design Key Issues

  • 5. Structure Optimize
slide-15
SLIDE 15

+ Design Key Issues

  • 5. Structure Optimize
slide-16
SLIDE 16

+ Design Key Issues

  • 5. Structure Optimize
slide-17
SLIDE 17

+ Design Key Issues

  • 5. Structure Optimize
slide-18
SLIDE 18

+ Design Key Issues

  • 5. Structure Optimize
slide-19
SLIDE 19

+ Design Key Issues

  • 5. Structure Optimize
slide-20
SLIDE 20

+ Design Key Issues

  • 6. Merge music and sound effect

Audio = (Music + Sound)/2 Audio = Music* 1/4 + Sound * 3/4

slide-21
SLIDE 21

+Lessons learned

n Hands on experience of embedded system

– interesting but time consuming

n Debug skill (both hardware and software) n Always prepare a back up plan for big

events.J

slide-22
SLIDE 22

+Acknowledgement

n We WMT team would thank dear Prof. Stephen A.

Edwards and dear Professor David Lariviere for all the professional instructions and kindly help.

n At last, we really appreciate the hard work of the

TAs.

Thank you so so much!

slide-23
SLIDE 23

+Demonstration

n Watch the video or play the game???