Write a Verilog code to describe the 6-bit BCD to Binary converter. The converter depends on the table.
6-BIT CONVERTER
MSD
LSD
SN54184 OR SN74184
Y5
Y4
E2
Y2
Y1
6-BIT BINARY OUTPUT
FUNCTION TABLE BCD-TO-BINARY CONVERTER
BCD WORDS E
INPUTS OUTPUTS (See Note A) (See Note B D C B A 3 Y5 Y4 Y3 Y2 Y1
0-1 L L 2^3 L - 4-5 6-7 8-9 H 10-11 L H 12-13 14-15 H 16-17 H 18-19 H H 20-21 H L 22-23 24-25 26-27 28-29 H L H 30-31 H 22-22 H 34-35 36-37 H 38-39 H H H ANY X +
-
L - L L H H
L
H
L
T
L
H
H
L
H
H
T
H
H
-
H
H
H
H
H
H
H
H
H
X
H= high level, L= low level, X= irrelevant
NOTES:
A. Input conditions other than those shown produce highs at outputs Y1 through Y5.
B. Outputs Y6, Y7, and Y8 are not used for BCD-to-binary conversion.