RodentRodent’’s Revenges Revenge6.111 Final Project6.111 Final Project6.111 Final ProjectNaoshin HaqueNaoshin HaqueNaoshin HaqueMatthew KwanMatthew KwanMatthew KwanLynne SalamehLynne SalamehLynne SalamehIn SpaceIn SpaceGame OverviewGame Overview• Tim the beaver is lost in space• Goal of the game: find wormhole and return to MIT• On the way, Tim encounters malicious aliens who plan to steal his knowledge in order to conquer the universe.• Armed only with logs, Tim must defeat the aliens and escape.ScoringScoring• Tim has three lives at the start of the game.• Tim receives 100 points if he defeats an alien.• Tim receives 20 points for picking up power-ups along the way.• Tim loses a life if injured by aliens.• The game is over when Tim loses three of his lives.Display MechanismDisplay Mechanism• The screen is divided into several sprites• The sprites are of different sizes and different (x, y) coordinates.• Each sprite also has a fixed z coordinate denoting its precedence over other sprites.• The sprite with the largest z coordinate would eclipse the others. Z=0Z=1DecimatorGame Controllerstart_framebusynext_spritedonex_coory_coor98sprite no5score 16size 3le_sizeVideo Controller6User InputLCDSCREENHSVSenemy_sprite 6le_readBasic Block Diagram Basic Block Diagrambranch9PC+1NOS TOSRegister FSMRegister File RAM128x16InstructionDecodersprite_nox_coory_coorscoresizeSynchronizer66inputsync_input516983reg_selreg_no77data_outwerf16data_in16le5counter7InstructionMemoryROM512x20209pcsel2pcsel2callreturnstack_selbusystack_selbusystart_framedonesize_enaddress9Registerssize_datnext_sprite39enable1 enable2readGame ControllerGame ControllerFPGARAM32K x 8ROM32K x 8Separate into 2 bitsfor R, G, and BExtend each ofthe 2 bits to 8 bitsAccumulatorCoeff.ROM64 x 8RangeChoose 2 bits of datafor R, G, and BAddressAddress151588Tristate Bus8X+6881620sign ext to 20 bits208Concatenate 2 zeros at end of dataDo multiplication and accumulation for R, G, and B in parallelle_size3sizeoutput to video unitweoecscsoeweAddress66le_readDecimatorDecimatorVSStartframeAddresscontrol (oe2,we2,ce2)Rom 1AMF020-70Rom 2AMF010-706dataBig FSMfrom ram of decimatorGdBdLCD screenSync generatorHSFSM (video memory output to screen)2 Ra2 Ga2 RaVideo MemoryVideoMemoryNext_spritescoresprite_nox_coory_coorsizedonebusyControl (CE,OE)Control (CE,OE)oe2oe1oe1oe26Address V1Address V2Pixel clockcontrol (oe1,we1,ce1)oe316 5 9 9 374LSC74DAC15 input VGARdRdGdBdGdBdRdRdGdBdVideo ControllerVideo
View Full Document