data/full_repos/permissive/138962343/test_cntr/test_cntr.v
1: b'%Error: data/full_repos/permissive/138962343/test_cntr/test_cntr.v:12: Unsupported or unknown PLI call: $dumpfile\n    $dumpfile("waveform.vcd");\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/138962343/test_cntr/test_cntr.v:13: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(2, dut0);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/138962343/test_cntr/test_cntr.v:14: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(2, dut1);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/138962343/test_cntr/test_cntr.v:15: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(2, dut2);\n    ^~~~~~~~~\n%Error: Exiting due to 4 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module test_cntr;
  
  parameter              W    = 8;
  parameter      [W-1:0] X    = 1;
  parameter      [W-1:0] INIT = 0;
  parameter              ELD  = 1;
  parameter              EAR  = 1;

  initial begin
    $dumpfile("waveform.vcd");
    $dumpvars(2, dut0);
    $dumpvars(2, dut1);
    $dumpvars(2, dut2);
  end

  powlib_cntr #(.W(W),.X(1), .INIT(INIT),.ELD(ELD),        .EAR(EAR)) dut0 (.cntr(),.nval(),.adv(),.ld(),.clr(),      .clk(),.rst());  
  powlib_cntr #(.W(W),.X(-1),.INIT(INIT),.ELD(ELD),        .EAR(EAR)) dut1 (.cntr(),.nval(),.adv(),.ld(),.clr(),      .clk(),.rst());
  powlib_cntr #(.W(W),       .INIT(INIT),.ELD(ELD),.EDX(1),.EAR(EAR)) dut2 (.cntr(),.nval(),.adv(),.ld(),.clr(),.dx(),.clk(),.rst());               
    
endmodule
module test_cntr;

  
  parameter              W    = 8;
  parameter      [W-1:0] X    = 1;
  parameter      [W-1:0] INIT = 0;
  parameter              ELD  = 1;
  parameter              EAR  = 1;

  initial begin
    $dumpfile("waveform.vcd");
    $dumpvars(2, dut0);
    $dumpvars(2, dut1);
    $dumpvars(2, dut2);
  end

  powlib_cntr #(.W(W),.X(1), .INIT(INIT),.ELD(ELD),        .EAR(EAR)) dut0 (.cntr(),.nval(),.adv(),.ld(),.clr(),      .clk(),.rst());  
  powlib_cntr #(.W(W),.X(-1),.INIT(INIT),.ELD(ELD),        .EAR(EAR)) dut1 (.cntr(),.nval(),.adv(),.ld(),.clr(),      .clk(),.rst());
  powlib_cntr #(.W(W),       .INIT(INIT),.ELD(ELD),.EDX(1),.EAR(EAR)) dut2 (.cntr(),.nval(),.adv(),.ld(),.clr(),.dx(),.clk(),.rst());               
    
endmodule