www.pudn.com > brent_kung_add.rar > INC.v, change:2019-12-26,size:315b


module INC(A,B,COUT);
  input [3:0] A;
  output [3:0] B;
  output COUT;
  wire [3:0] B;
  wire COUT;
  wire C1,C2,C3;
  not N1(B[0],A[0]);
  xor X1(B[1],A[1],A[0]);
  and A1(C1,A[1],A[0]);
  and A2(C2,A[2],A[3]);
  and A3(COUT,C1,C2);
  and A4(C3,C1,A[2]);
  xor X2(B[2],A[2],C1);
  xor X3(B[3],A[3],C3);
endmodule