data/full_repos/permissive/433225833/Testbench/one_complement_adder_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/433225833/Testbench/one_complement_adder_tb.v:17: Unsupported: Ignoring delay on this delayed statement.\n    #5;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/433225833/Testbench/one_complement_adder_tb.v:20: Unsupported: Ignoring delay on this delayed statement.\n    #5;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/433225833/Testbench/one_complement_adder_tb.v:23: Unsupported: Ignoring delay on this delayed statement.\n    #5;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/433225833/Testbench/one_complement_adder_tb.v:26: Unsupported: Ignoring delay on this delayed statement.\n    #5;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/433225833/Testbench/one_complement_adder_tb.v:29: Unsupported: Ignoring delay on this delayed statement.\n    #5;\n    ^\n%Error: data/full_repos/permissive/433225833/Testbench/one_complement_adder_tb.v:35: Unsupported or unknown PLI call: $monitor\n    $monitor("%3d\\t%h\\t%h\\t%h", $time, a1, a2, res);\n    ^~~~~~~~\n%Error: Exiting due to 1 error(s), 5 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module one_complement_adder_tb ();
  parameter LENGTH = 16;
  
  reg [LENGTH-1:0] a1;
  reg [LENGTH-1:0] a2;
  wire [LENGTH-1:0] res;
  
  





  initial begin
    a1 = 0;
    a2 = 0;
    #5;
    a1 = 1;
    a2 = 1;
    #5;
    a1 = 'd1234;
    a2 = 'd5678;
    #5;
    a1 = 'hFFFE;
    a2 = 'h0001;
    #5;
    a1 = 'hFFFE;
    a2 = 'h0002;
    #5;
    $finish;
  end
  
  initial begin
    $display("  T\ta1\ta2\tres");
    $monitor("%3d\t%h\t%h\t%h", $time, a1, a2, res);
  end
  
  one_complement_adder #(.LENGTH(LENGTH)) dut (.a1(a1), .a2(a2), .res(res));

endmodule
module one_complement_adder_tb ();

  parameter LENGTH = 16;
  
  reg [LENGTH-1:0] a1;
  reg [LENGTH-1:0] a2;
  wire [LENGTH-1:0] res;
  
  





  initial begin
    a1 = 0;
    a2 = 0;
    #5;
    a1 = 1;
    a2 = 1;
    #5;
    a1 = 'd1234;
    a2 = 'd5678;
    #5;
    a1 = 'hFFFE;
    a2 = 'h0001;
    #5;
    a1 = 'hFFFE;
    a2 = 'h0002;
    #5;
    $finish;
  end
  
  initial begin
    $display("  T\ta1\ta2\tres");
    $monitor("%3d\t%h\t%h\t%h", $time, a1, a2, res);
  end
  
  one_complement_adder #(.LENGTH(LENGTH)) dut (.a1(a1), .a2(a2), .res(res));

endmodule