Forum: FPGA, VHDL & Verilog i need help for my project.

von Dimitris (Guest)

Rate this post
0 useful
not useful
I want to fix a code  in vhdl.i have to give the numbers from 0-255 as 
input and i want to take in outout the nymbers in hex system in 2 seven 
segment display.

von nobody (Guest)

Rate this post
0 useful
not useful
And the question is what is the question?!

von Dimitris (Guest)

Rate this post
0 useful
not useful
i dont know how to do this..how i will present the naumbers in the 2 

von Armin (Guest)

Rate this post
0 useful
not useful
here you can find display patterns for the digits 0 to f used in HEX 

von Patrick (Guest)

Rate this post
0 useful
not useful
I'm afraid your question is incomplete. So I'm now guessing:

- I believe you have an eight bits wide unsigned input vector.
- I also estimate that your seven segment displays are connected to your 
FPGA 1:1 and thus do not need to be multiplexed.

If I'm right with both estimations, the simplest way for you to do it is 
the following:

- In your thoughts, split up your eight bits wide vector into two four 
bits wide vectors, each of them serving one display.
- For each four-bit-vector, instantiate a truth table converting all 
input value patterns possible (0..15) into their correct representations 
on your display.

I suppose you're a VHDL beginner. Here's a good tutorial: 

The truth tables could be implemented with a SELECT or a CASE statement, 
for example.



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.