data/full_repos/permissive/138962343/test_gray/test_gray.v
None: at end of input
1: b'%Error: data/full_repos/permissive/138962343/test_gray/test_gray.v:5: Cannot find include file: powlib_std.vh\n`include "powlib_std.vh" \n         ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/138962343/test_gray,data/full_repos/permissive/138962343/powlib_std.vh\n             data/full_repos/permissive/138962343/test_gray,data/full_repos/permissive/138962343/powlib_std.vh.v\n             data/full_repos/permissive/138962343/test_gray,data/full_repos/permissive/138962343/powlib_std.vh.sv\n             powlib_std.vh\n             powlib_std.vh.v\n             powlib_std.vh.sv\n             obj_dir/powlib_std.vh\n             obj_dir/powlib_std.vh.v\n             obj_dir/powlib_std.vh.sv\n%Error: data/full_repos/permissive/138962343/test_gray/test_gray.v:21: Unsupported or unknown PLI call: $dumpfile\n    $dumpfile("waveform.vcd");\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/138962343/test_gray/test_gray.v:22: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(2, cntr_inst);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/138962343/test_gray/test_gray.v:23: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(2, encode_inst);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/138962343/test_gray/test_gray.v:24: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(2, decode_inst);\n    ^~~~~~~~~\n%Error: Exiting due to 5 error(s)\n'
module test_gray();

`include "powlib_std.vh"

  localparam                       W        = 5;
  localparam                       X        = 1;
  localparam                       INIT     = 0;
                                   
             wire [W-1:0]          cntr; 
             wire [W-1:0]          encoded;
             wire [W-1:0]          decoded;
             wire                  adv;
             wire                  clr;
             wire                  clk;
             wire                  rst;
             
  
  initial begin
    $dumpfile("waveform.vcd");
    $dumpvars(2, cntr_inst);
    $dumpvars(2, encode_inst);
    $dumpvars(2, decode_inst);
  end  

  powlib_cntr #(.W(W),.X(X),.INIT(INIT)) cntr_inst (
    .cntr(cntr),.adv(adv),.clr(clr),
    .clk(clk),.rst(rst));
    
  powlib_grayencodeff #(.W(W),.INIT(INIT)) encode_inst (
    .d(cntr),.q(encoded),
    .clk(clk),.rst(rst));
    
  powlib_graydecodeff #(.W(W),.INIT(powlib_grayencode(INIT))) decode_inst (
    .d(encoded),.q(decoded),
    .clk(clk),.rst(rst));

endmodule
module test_gray();


`include "powlib_std.vh"

  localparam                       W        = 5;
  localparam                       X        = 1;
  localparam                       INIT     = 0;
                                   
             wire [W-1:0]          cntr; 
             wire [W-1:0]          encoded;
             wire [W-1:0]          decoded;
             wire                  adv;
             wire                  clr;
             wire                  clk;
             wire                  rst;
             
  
  initial begin
    $dumpfile("waveform.vcd");
    $dumpvars(2, cntr_inst);
    $dumpvars(2, encode_inst);
    $dumpvars(2, decode_inst);
  end  

  powlib_cntr #(.W(W),.X(X),.INIT(INIT)) cntr_inst (
    .cntr(cntr),.adv(adv),.clr(clr),
    .clk(clk),.rst(rst));
    
  powlib_grayencodeff #(.W(W),.INIT(INIT)) encode_inst (
    .d(cntr),.q(encoded),
    .clk(clk),.rst(rst));
    
  powlib_graydecodeff #(.W(W),.INIT(powlib_grayencode(INIT))) decode_inst (
    .d(encoded),.q(decoded),
    .clk(clk),.rst(rst));

endmodule