

The architecture describes the internal description of the circuit design or in simple way, it tells what is there inside the design. In this style, all assignments are performed by mapping signals to components defined before the architecture body. They are BCD-to-7-segment which is used to map the Binary-Coded Decimal to the 7-segment display in the FPGA board, and CLOCDIV which is used to slow down the clock frequency so that we can see the LED movement on the FPGA board.Īnyway, I use a structural description in this project. In this project, I use 2 other circuit design which has be defined before. OUT : Data flows out of the entity (Note that an output can not be read back by the entity) The ENTITY declaration describes only the input and output ports of the design. The architecture body represents the internal description of the design entity.Īnd the code for the entity declaration of this project’s gonna be something like this : The entity declaration represents the external interface to the design entity.

Before I start to explain my code, you should know the structure of a VHDL file. This project design is described in VHDL (it stands for Very-high-speed-integrated-circuit Hardware Description Language, which is one of the programming language used to model a digital system), using the concept of a design entity. 1 FPGA board (I use UP2 Altera) which contains :.A software for making the circuit design (I use Altera Quartus II).To make things clear, this is the schema of how my project’s gonna look like. The game is over when one of the two player’s score reaches 9 points. There are also a score board (which in this case, I use a dual-digit 7 segment) representing the score for each player.

Once it has reached the 8th LED, if player #2 push the second button, the ball must return back to the left (which means, the LED will be running from the 8th LED to the 1st LED) or otherwise, player #1 will get an extra +1 point. When player #1 serves the ball (the first push button is pushed), the light should turn on from the 1st LED to the 8th LED. In my case, there are 8 LEDs representing the ball movement. The LEDs should turned on and off, as if they are running (from left to right OR from right to left). We have to build a digital system project, named LED Ping Pong which means that the ping pong ball is going to be represented by LEDs on an FPGA board (I use UP2 from Altera).
