Verilog Code for BCD to 7 Segment code Decoder:-
Binary Coded Decimal Numbers are counted from 0 to 9 represented
like simple 4 bit binary as follows,
Decimal Number |
BCD Number |
0 |
0000 |
1 |
0001 |
2 |
0010 |
…… |
…… |
9 |
1001 |
Now, 7 segment is electronics device which consist of 7 LEDs for representing Numbers which we can see by our eyes. Below is circuit that shows how can we see BCD numbers in &-segment display.
Below is Truth
Table for BCD to 7-segment Display,
As per Above Truth table Following is Verilog code for
BCD to 7-segment Display.
RTL :-
TB :-
- For simulation Please check following link of EDA Playground :-
https://www.edaplayground.com/x/vw2Y
No comments:
Post a Comment