module tb_HA16;
  wire [15:0] sum;
  wire cout;
  reg [15:0] a, b;
  reg cin;
  
  HA16 ha16(sum, cout, a, b);
  
  initial
  begin
    $display("a|b||cout|sum");
  end
  
  initial
  begin
    $monitor("%b|%b||%b|%b", a, b, cout, sum);
  end
  
  initial
  begin
    a=16'b1111101011111010; b=16'b1111101011110000;
    #40    a=16'b1111101000111000; b=16'b0000000011110001;
    #40    a=16'b0011100000111000; b=16'b1001000011110001;
    #40    a=16'b1111110001000010; b=16'b1011111100010000;

  end

endmodule