![]() |
7 segment 0-99 converter
Hi, I'm trying to make a decimal to 7 segment display converter for numbers from 0 to 99 in dataflow with synchronous clock (using a Clock process). It's my first VHDL attempt so I have some problems. My thought was to make an assignemt like this:
Code:
S(0) <= (P(0)) OR (P(2)) OR (NOT P(1) AND NOT P(3)) OR (P(1) AND P(3));Code:
P : in BIT_VECTOR(0 TO 3);I'll appreciate any kind of suggestion. Thank you. |
Unless I'm totally misunderstanding the code you have there is to translate
a binary number (0000 - 1001) into the different segments. I'll assume you'll give it the name bin2seg You will also need a 'counter' entity which, given a clock input, will increment such that: Code:
inc state next | CThen you can use these entities as building parts: Code:
bcd1map : bcd9Counter port map ( clk, b1In, '1' -- for increment |
| All times are GMT. The time now is 09:50 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.