Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA...

7
Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA Game Characterization Presentation By: Rami Busool Ameer Abdel-hadi Supervisor: Nitzan Miron
  • date post

    20-Dec-2015
  • Category

    Documents

  • view

    219
  • download

    0

Transcript of Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA...

Page 1: Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA Game Characterization Presentation By: Rami Busool Ameer.

Tetris FPGA Game Project, by:Ameer Abdel-hadi & Ahmad Busool

1

A HS-DSL project of:

Tetris FPGA Game Characterization Presentation

By:Rami Busool

Ameer Abdel-hadi

Supervisor:Nitzan Miron

Page 2: Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA Game Characterization Presentation By: Rami Busool Ameer.

Tetris FPGA Game Project, by:Ameer Abdel-hadi & Ahmad Busool

2

Preface• Tetris, what is it?

Tetris is a Russian computer game founded on 1985, where you should try to fit in block into a play-field, quite simple but really fun. All blocks are built from four bricks (the name Tetris is derived from the ancient Greek word for four: "tetra"), there are seven combinations of the four bricks as seen here below.

• SoPC definition:Acronym of “System on Programmable Chip”.It’s a chip where you can control it’s function, rebuild it’s cores, reroute it’s components & load you’re your own code to it’s memory.

Page 3: Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA Game Characterization Presentation By: Rami Busool Ameer.

Tetris FPGA Game Project, by:Ameer Abdel-hadi & Ahmad Busool

3

The project goals

• Choosing the suitable hardware for optimal solution for our problem. The major hardware are: the display and the development board.

• Develop a software emulator, which emulates the hardware on a PC.

• Rearrange the emulator code to fit the hardware.• Loading the code to the hardware.• Hardware integration.• Run and check!

Our goal is to develop a design of a Tetris game on aSoPC FPGA, with stand alone functionality (without a PC).The Design flow is as the following:

Page 4: Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA Game Characterization Presentation By: Rami Busool Ameer.

Tetris FPGA Game Project, by:Ameer Abdel-hadi & Ahmad Busool

4

The development environment:External LCD or VGA Screen?

• We still in dilemma, to use external LCD or an regular VGA screen.• The external LCD screen in the Lap are very small to implement out game.• We suggest to buy a new LCD:

Hitachi LMG7420PLFC-X 128x240 dots.

• Or to use regular VGA screen.

• We prefer the second choice.• Any suggestions?

Page 5: Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA Game Characterization Presentation By: Rami Busool Ameer.

Tetris FPGA Game Project, by:Ameer Abdel-hadi & Ahmad Busool

5

The development environment:The SoPC board: Memec Vertix-II Pro or AlteraMAX?

• The choice of the development board is dependent on the display, because Vertix-II pro doesn’t has a VGA output, so we should solid this output on the board with a decoder chip.

• AlteraMAX has a VGA output built on the board so we don’t have to make extra effort sliding new parts on the board.

• Suggestions are welcome!

Memic Vertix-IIPro

Altera

Page 6: Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA Game Characterization Presentation By: Rami Busool Ameer.

Tetris FPGA Game Project, by:Ameer Abdel-hadi & Ahmad Busool

6

The software/emulator

• The Tetris code is written in C++.• Compiled at Microsoft .net• The output is dropped to STDOUT as ascii

text.• The input is the keyboard (STDIN at this

case).• In order to emulate the hardware we

should write the output as a pixels matrix (not ascii text).

Page 7: Tetris FPGA Game Project, by: Ameer Abdel-hadi & Ahmad Busool 1 A HS-DSL project of: Tetris FPGA Game Characterization Presentation By: Rami Busool Ameer.

Tetris FPGA Game Project, by:Ameer Abdel-hadi & Ahmad Busool

7

Tetris program run example