bl_exp.v 1.81 KB
// Module instances modified by /home/rws/workarea/rf/sw/bbplayer/tools/necprimfix 
//
//    4 instances of in01d2 changed to j_in01.
//    16 instances of nr04d2 changed to j_nr04.
//

////////////////////////////////////////////////////////////////////////
//
// Project Reality
//
// module:	bl_exp
// description:	Generate 2^i (decode) for blend unit.
//
// designer:	Phil Gossett
// date:	8/14/94
//
////////////////////////////////////////////////////////////////////////

module bl_exp (i, z);

input [3:0] i;

output [15:0] z;

wire [3:0] n;

j_in01  in0 (	.i(i[0]), .zn(n[0]));
j_in01  in1 (	.i(i[1]), .zn(n[1]));
j_in01  in2 (	.i(i[2]), .zn(n[2]));
j_in01  in3 (	.i(i[3]), .zn(n[3]));

j_nr04  nr0 (	.a1(i[3]), .a2(i[2]), .a3(i[1]), .a4(i[0]), .zn(z[ 0]));
j_nr04  nr1 (	.a1(i[3]), .a2(i[2]), .a3(i[1]), .a4(n[0]), .zn(z[ 1]));
j_nr04  nr2 (	.a1(i[3]), .a2(i[2]), .a3(n[1]), .a4(i[0]), .zn(z[ 2]));
j_nr04  nr3 (	.a1(i[3]), .a2(i[2]), .a3(n[1]), .a4(n[0]), .zn(z[ 3]));
j_nr04  nr4 (	.a1(i[3]), .a2(n[2]), .a3(i[1]), .a4(i[0]), .zn(z[ 4]));
j_nr04  nr5 (	.a1(i[3]), .a2(n[2]), .a3(i[1]), .a4(n[0]), .zn(z[ 5]));
j_nr04  nr6 (	.a1(i[3]), .a2(n[2]), .a3(n[1]), .a4(i[0]), .zn(z[ 6]));
j_nr04  nr7 (	.a1(i[3]), .a2(n[2]), .a3(n[1]), .a4(n[0]), .zn(z[ 7]));
j_nr04  nr8 (	.a1(n[3]), .a2(i[2]), .a3(i[1]), .a4(i[0]), .zn(z[ 8]));
j_nr04  nr9 (	.a1(n[3]), .a2(i[2]), .a3(i[1]), .a4(n[0]), .zn(z[ 9]));
j_nr04  nra (	.a1(n[3]), .a2(i[2]), .a3(n[1]), .a4(i[0]), .zn(z[10]));
j_nr04  nrb (	.a1(n[3]), .a2(i[2]), .a3(n[1]), .a4(n[0]), .zn(z[11]));
j_nr04  nrc (	.a1(n[3]), .a2(n[2]), .a3(i[1]), .a4(i[0]), .zn(z[12]));
j_nr04  nrd (	.a1(n[3]), .a2(n[2]), .a3(i[1]), .a4(n[0]), .zn(z[13]));
j_nr04  nre (	.a1(n[3]), .a2(n[2]), .a3(n[1]), .a4(i[0]), .zn(z[14]));
j_nr04  nrf (	.a1(n[3]), .a2(n[2]), .a3(n[1]), .a4(n[0]), .zn(z[15]));

endmodule // bl_exp