• 0
JLDIJDYI

Need example for seven segment display control for NEXYS 4 VHDL

Question

Hi,

   I just brought the NEXYS 4 FPGA and want to start learn it myself. The first project I am trying to do is changing the seven segment display one by one. Is there any example code that I can start with? 

Thank you. 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @JLDIJDYI,

Here is a forum thread that discusses using the 7 segment display. The vhdl should be the same only the xdc/ucf will be different.  There are a few projects that use the 7 segment display in vhdl on the resource center here.

cheers,

Jon

Share this post


Link to post
Share on other sites
  • 0

Make sure you understand the problem first, as it can be daunting to begin with. It's really simple though, when everything is said and done. The datasheet will inform you on which segments light up to form a character, like a 3 or A for example. Now, all segments will display the same information, 3 or A or whatever, so it's up to you to turn on only the relevand digit position for that character, so you "sweep" over the display in very rapid succession.

For my project on the Basys 3 I split up every character to 4 bits (I wanted hexadecimal notation), made a decoder (simple case-statement list) to produce the specific bit combination depending on which number to display. Then a way to switch position to light up and what information to send to the decoder as a result.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now