www.pudn.com > x86.rar > compare.v, change:2007-12-05,size:3626b


module compare(compOut, compIn1, compIn2); 
input [31:0] compIn1, compIn2; 
output [2:0] compOut; 
wire [31:0]notcompIn1; 
wire [31:0]notcompIn2; 
wire [31:0]agtb; 
wire [31:0]bgta; 
wire [31:0]x; 
wire [31:0]agtbprod; 
wire [31:0]bgtaprod; 
assign notcompIn1 = !compIn1; 
assign notcompIn2 = !compIn2; 
and and_gate1[31:0] (agtb,compIn1,notcompIn2); 
and and_gate2[31:0] (bgta,notcompIn1,compIn2); 
xnor xnor_gate[31:0] (x,agtb,bgta); 
assign agtbprod[31] = agtb[31]; 
and and_agtb30(agtbprod[30],x[31],agtb[30]); 
and and_agtb29(agtbprod[29],&x[31:30],agtb[29]); 
and and_agtb28(agtbprod[28],&x[31:29],agtb[28]); 
and and_agtb27(agtbprod[27],&x[31:28],agtb[27]); 
and and_agtb26(agtbprod[26],&x[31:27],agtb[26]); 
and and_agtb25(agtbprod[25],&x[31:26],agtb[25]); 
and and_agtb24(agtbprod[24],&x[31:25],agtb[24]); 
and and_agtb23(agtbprod[23],&x[31:24],agtb[23]); 
and and_agtb22(agtbprod[22],&x[31:23],agtb[22]); 
and and_agtb21(agtbprod[21],&x[31:22],agtb[21]); 
and and_agtb20(agtbprod[20],&x[31:21],agtb[20]); 
and and_agtb19(agtbprod[19],&x[31:20],agtb[19]); 
and and_agtb18(agtbprod[18],&x[31:19],agtb[18]); 
and and_agtb17(agtbprod[17],&x[31:18],agtb[17]); 
and and_agtb16(agtbprod[16],&x[31:17],agtb[16]); 
and and_agtb15(agtbprod[15],&x[31:16],agtb[15]); 
and and_agtb14(agtbprod[14],&x[31:15],agtb[14]); 
and and_agtb13(agtbprod[13],&x[31:14],agtb[13]); 
and and_agtb12(agtbprod[12],&x[31:13],agtb[12]); 
and and_agtb11(agtbprod[11],&x[31:12],agtb[11]); 
and and_agtb10(agtbprod[10],&x[31:11],agtb[10]); 
and and_agtb9(agtbprod[9],&x[31:10],agtb[19]); 
and and_agtb8(agtbprod[8],&x[31:9],agtb[8]); 
and and_agtb7(agtbprod[7],&x[31:8],agtb[7]); 
and and_agtb6(agtbprod[6],&x[31:7],agtb[6]); 
and and_agtb5(agtbprod[5],&x[31:6],agtb[5]); 
and and_agtb4(agtbprod[4],&x[31:5],agtb[4]); 
and and_agtb3(agtbprod[3],&x[31:4],agtb[3]); 
and and_agtb2(agtbprod[2],&x[31:3],agtb[2]); 
and and_agtb1(agtbprod[1],&x[31:2],agtb[1]); 
and and_agtb0(agtbprod[0],&x[31:1],agtb[0]); 
 
 
 
assign bgtaprod[31] = bgta[31]; 
and and_bgta30(bgtaprod[30],x[31],bgta[30]); 
and and_bgta29(bgtaprod[29],&x[31:30],bgta[29]); 
and and_bgta28(bgtaprod[28],&x[31:29],bgta[28]); 
and and_bgta27(bgtaprod[27],&x[31:28],bgta[27]); 
and and_bgta26(bgtaprod[26],&x[31:27],bgta[26]); 
and and_bgta25(bgtaprod[25],&x[31:26],bgta[25]); 
and and_bgta24(bgtaprod[24],&x[31:25],bgta[24]); 
and and_bgta23(bgtaprod[23],&x[31:24],bgta[23]); 
and and_bgta22(bgtaprod[22],&x[31:23],bgta[22]); 
and and_bgta21(bgtaprod[21],&x[31:22],bgta[21]); 
and and_bgta20(bgtaprod[20],&x[31:21],bgta[20]); 
and and_bgta19(bgtaprod[19],&x[31:20],bgta[19]); 
and and_bgta18(bgtaprod[18],&x[31:19],bgta[18]); 
and and_bgta17(bgtaprod[17],&x[31:18],bgta[17]); 
and and_bgta16(bgtaprod[16],&x[31:17],bgta[16]); 
and and_bgta15(bgtaprod[15],&x[31:16],bgta[15]); 
and and_bgta14(bgtaprod[14],&x[31:15],bgta[14]); 
and and_bgta13(bgtaprod[13],&x[31:14],bgta[13]); 
and and_bgta12(bgtaprod[12],&x[31:13],bgta[12]); 
and and_bgta11(bgtaprod[11],&x[31:12],bgta[11]); 
and and_bgta10(bgtaprod[10],&x[31:11],bgta[10]); 
and and_bgta9(bgtaprod[9],&x[31:10],bgta[9]); 
and and_bgta8(bgtaprod[8],&x[31:9],bgta[8]); 
and and_bgta7(bgtaprod[7],&x[31:8],bgta[7]); 
and and_bgta6(bgtaprod[6],&x[31:7],bgta[6]); 
and and_bgta5(bgtaprod[5],&x[31:6],bgta[5]); 
and and_bgta4(bgtaprod[4],&x[31:5],bgta[4]); 
and and_bgta3(bgtaprod[3],&x[31:4],bgta[3]); 
and and_bgta2(bgtaprod[2],&x[31:3],bgta[2]); 
and and_bgta1(bgtaprod[1],&x[31:2],bgta[1]); 
and and_bgta0(bgtaprod[0],&x[31:1],bgta[0]); 
 
assign compOut[1] = &x; 
assign compOut[2] = |agtbprod; 
assign compOut[0] = |bgtaprod; 
endmodule