bl_dec.v
3.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Module instances modified by /home/rws/workarea/rf/sw/bbplayer/tools/necprimfix
//
// 17 instances of mx81d1h changed to j_mx81.
// 1 instance of or03d2 changed to j_or03.
//
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module: bl_dec
// description: Floating point decode for blend unit.
//
// designer: Phil Gossett
// date: 8/14/94
//
////////////////////////////////////////////////////////////////////////
module bl_dec (i, z);
input [13:0] i; // 3 exp, 11 mant
output [17:0] z; // 0,15.3
j_mx81 mx00 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0( 1'b0), .i1( 1'b0), .i2( 1'b0), .i3( 1'b0),
.i4( 1'b0), .i5( 1'b0), .i6(i[ 0]), .i7(i[ 0]),
.z(z[ 0]));
j_mx81 mx01 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0( 1'b0), .i1( 1'b0), .i2( 1'b0), .i3( 1'b0),
.i4( 1'b0), .i5(i[ 0]), .i6(i[ 1]), .i7(i[ 1]),
.z(z[ 1]));
j_mx81 mx02 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0( 1'b0), .i1( 1'b0), .i2( 1'b0), .i3( 1'b0),
.i4(i[ 0]), .i5(i[ 1]), .i6(i[ 2]), .i7(i[ 2]),
.z(z[ 2]));
j_mx81 mx03 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0( 1'b0), .i1( 1'b0), .i2( 1'b0), .i3(i[ 0]),
.i4(i[ 1]), .i5(i[ 2]), .i6(i[ 3]), .i7(i[ 3]),
.z(z[ 3]));
j_mx81 mx04 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0( 1'b0), .i1( 1'b0), .i2(i[ 0]), .i3(i[ 1]),
.i4(i[ 2]), .i5(i[ 3]), .i6(i[ 4]), .i7(i[ 4]),
.z(z[ 4]));
j_mx81 mx05 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0( 1'b0), .i1(i[ 0]), .i2(i[ 1]), .i3(i[ 2]),
.i4(i[ 3]), .i5(i[ 4]), .i6(i[ 5]), .i7(i[ 5]),
.z(z[ 5]));
j_mx81 mx06 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 0]), .i1(i[ 1]), .i2(i[ 2]), .i3(i[ 3]),
.i4(i[ 4]), .i5(i[ 5]), .i6(i[ 6]), .i7(i[ 6]),
.z(z[ 6]));
j_mx81 mx07 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 1]), .i1(i[ 2]), .i2(i[ 3]), .i3(i[ 4]),
.i4(i[ 5]), .i5(i[ 6]), .i6(i[ 7]), .i7(i[ 7]),
.z(z[ 7]));
j_mx81 mx08 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 2]), .i1(i[ 3]), .i2(i[ 4]), .i3(i[ 5]),
.i4(i[ 6]), .i5(i[ 7]), .i6(i[ 8]), .i7(i[ 8]),
.z(z[ 8]));
j_mx81 mx09 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 3]), .i1(i[ 4]), .i2(i[ 5]), .i3(i[ 6]),
.i4(i[ 7]), .i5(i[ 8]), .i6(i[ 9]), .i7(i[ 9]),
.z(z[ 9]));
j_mx81 mx10 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 4]), .i1(i[ 5]), .i2(i[ 6]), .i3(i[ 7]),
.i4(i[ 8]), .i5(i[ 9]), .i6(i[10]), .i7(i[10]),
.z(z[10]));
j_mx81 mx11 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 5]), .i1(i[ 6]), .i2(i[ 7]), .i3(i[ 8]),
.i4(i[ 9]), .i5(i[10]), .i6( 1'b0), .i7( 1'b1),
.z(z[11]));
j_mx81 mx12 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 6]), .i1(i[ 7]), .i2(i[ 8]), .i3(i[ 9]),
.i4(i[10]), .i5( 1'b0), .i6( 1'b1), .i7( 1'b1),
.z(z[12]));
j_mx81 mx13 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 7]), .i1(i[ 8]), .i2(i[ 9]), .i3(i[10]),
.i4( 1'b0), .i5( 1'b1), .i6( 1'b1), .i7( 1'b1),
.z(z[13]));
j_mx81 mx14 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 8]), .i1(i[ 9]), .i2(i[10]), .i3( 1'b0),
.i4( 1'b1), .i5( 1'b1), .i6( 1'b1), .i7( 1'b1),
.z(z[14]));
j_mx81 mx15 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[ 9]), .i1(i[10]), .i2( 1'b0), .i3( 1'b1),
.i4( 1'b1), .i5( 1'b1), .i6( 1'b1), .i7( 1'b1),
.z(z[15]));
j_mx81 mx16 (.s0(i[11]), .s1(i[12]), .s2(i[13]),
.i0(i[10]), .i1( 1'b0), .i2( 1'b1), .i3( 1'b1),
.i4( 1'b1), .i5( 1'b1), .i6( 1'b1), .i7( 1'b1),
.z(z[16]));
j_or03 mx17 (.a1(i[11]), .a2(i[12]), .a3(i[13]),
.z(z[17]));
endmodule // bl_dec