Advertisement
AbraaoAllysson

Untitled

May 11th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.88 KB | None | 0 0
  1. int Mux_32_1(int s0, int s1, int s2, int s3, int s4, int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7,
  2.                           int i8, int i9, int i10, int i11, int i12,int i13, int i14, int i15, int i16, int i17, int i18, int i19,    
  3.                           int i20, int i21, int i22, int i23, int i24, int i25, int i26, int i27, int i28, int i29, int i30,
  4.                           int i31)
  5. {
  6.     int y[11];
  7.  
  8.     y[0] = Mux_4_1(i0,i1,i2,i3,s0,s1);
  9.     y[1] = Mux_4_1(i4,i5,i6,i7,s0,s1);
  10.     y[2] = Mux_4_1(i8,i9,i10,i11,s0,s1);
  11.     y[3] = Mux_4_1(i12,i13,i14,i15,s0,s1);
  12.     y[4] = Mux_4_1(i16,i17,i18,i19,s0,s1);
  13.     y[5] = Mux_4_1(i20,i21,i22,i23,s0,s1);
  14.     y[6] = Mux_4_1(i24,i25,i26,i27,s0,s1);
  15.     y[7] = Mux_4_1(i28,i29,i30,i31,s0,s1);
  16.  
  17.     y[8] = Mux_4_1(y[0],y[1],y[2],y[3],s2,s3);
  18.     y[9] = Mux_4_1(y[4],y[5],y[6],y[7],s2,s3);
  19.  
  20.     y[10]= Mux_2_1(y[8],y[9],s4);
  21.  
  22.     return y[10];
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement