nbuzs
Junior Member level 2
Any suggestion on the expression using verilog will be thankful.
Input Data is D[3:0], encoded output Z[6:0]
Z = (D mod 15) + (8-1)*(2n-1)
listed in below table
D[3:0] n Z[6:0]
---------------------
0 0 0
1 1 8
2 1 9
3 2 24
4 2 25
5 2 26
6 2 27
7 3 58
8 3 57
9 3 58
10 3 59
11 3 60
12 3 61
13 3 62
14 3 63
15 0 0
Input Data is D[3:0], encoded output Z[6:0]
Z = (D mod 15) + (8-1)*(2n-1)
listed in below table
D[3:0] n Z[6:0]
---------------------
0 0 0
1 1 8
2 1 9
3 2 24
4 2 25
5 2 26
6 2 27
7 3 58
8 3 57
9 3 58
10 3 59
11 3 60
12 3 61
13 3 62
14 3 63
15 0 0