bl_nrmb.v
1.3 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
// Module instances modified by /home/rws/workarea/rf/sw/bbplayer/tools/necprimfix
//
// 3 instances of an02d1h changed to j_an02.
// 3 instances of me41d1h changed to j_me41.
// 2 instances of or02d2 changed to j_or02.
//
////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module: bl_nrmb
// description: 5 bit 1 to 4 bit shifter for blend unit.
//
// designer: Phil Gossett
// date: 11/1/94
//
////////////////////////////////////////////////////////////////////////
module bl_nrmb (lsen, sh, i, z);
input lsen;
input [2:0] sh;
input [4:0] i;
output [4:0] z;
wire [2:0] ash;
j_an02 mxa0 ( .a1(lsen), .a2(sh[0]), .z(ash[0]));
j_an02 mxa1 ( .a1(lsen), .a2(sh[1]), .z(ash[1]));
j_an02 mxa2 ( .a1(lsen), .a2(sh[2]), .z(ash[2]));
j_or02 mxe0 ( .a1(lsen), .a2( i[0]), .z( z[0]));
j_or02 mxe1 ( .a1(lsen), .a2( i[1]), .z( z[1]));
j_me41 mxe2 ( .s0(ash[0]), .s1(ash[1]), .en(ash[2]),
.i0(i[2]), .i1(i[3]), .i2(i[4]), .i3(1'b0),
.z( z[2]));
j_me41 mxe3 ( .s0(ash[0]), .s1(ash[1]), .en(ash[2]),
.i0(i[3]), .i1(i[4]), .i2(1'b0), .i3(1'b0),
.z( z[3]));
j_me41 mxe4 ( .s0(ash[0]), .s1(ash[1]), .en(ash[2]),
.i0(i[4]), .i1(1'b0), .i2(1'b0), .i3(1'b0),
.z( z[4]));
endmodule // bl_nrmb