data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v
1: b'%Error: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:11: Cannot find include file: baudgen.vh\n`include "baudgen.vh" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/47573604/uart-rx/examples/rxleds,data/full_repos/permissive/47573604/baudgen.vh\n             data/full_repos/permissive/47573604/uart-rx/examples/rxleds,data/full_repos/permissive/47573604/baudgen.vh.v\n             data/full_repos/permissive/47573604/uart-rx/examples/rxleds,data/full_repos/permissive/47573604/baudgen.vh.sv\n             baudgen.vh\n             baudgen.vh.v\n             baudgen.vh.sv\n             obj_dir/baudgen.vh\n             obj_dir/baudgen.vh.v\n             obj_dir/baudgen.vh.sv\n%Error: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:17: Define or directive not defined: \'`B115200\'\nlocalparam BAUDRATE = `B115200;\n                      ^~~~~~~~\n%Error: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:17: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\nlocalparam BAUDRATE = `B115200;\n                              ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:32: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= char[0];    \n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:33: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= char[1];    \n    ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:34: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= char[2];    \n    ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:35: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= char[3];    \n    ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:36: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= char[4];    \n    ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:37: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= char[5];    \n    ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:38: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= char[6];    \n    ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:39: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= char[7];    \n    ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:40: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= 1;          \n    ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:41: Unsupported: Ignoring delay on this delayed statement.\n    #BAUDRATE rx <= 1;          \n    ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:64: Unsupported: Ignoring delay on this delayed statement.\n  # 0.5 clk <= ~clk;\n  ^\n%Error: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:69: Unsupported or unknown PLI call: $dumpfile\n  $dumpfile("rxleds_tb.vcd");\n  ^~~~~~~~~\n%Error: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:70: Unsupported or unknown PLI call: $dumpvars\n  $dumpvars(0, rxleds_tb);\n  ^~~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:73: Unsupported: Ignoring delay on this delayed statement.\n  #BAUDRATE    send_char(8\'h55);\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:74: Unsupported: Ignoring delay on this delayed statement.\n  #WAIT        send_char("K");\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/47573604/uart-rx/examples/rxleds/rxleds_tb.v:76: Unsupported: Ignoring delay on this delayed statement.\n  #(WAIT * 4) $display("END of the simulation");\n  ^\n%Error: Exiting due to 5 error(s), 14 warning(s)\n'
module rxleds_tb();


localparam BAUDRATE = `B115200;


localparam SERIAL_PACK = (BAUDRATE * 10);


localparam WAIT = (BAUDRATE * 4);




  task send_char;
    input [7:0] char;
  begin
    rx <= 0;
    #BAUDRATE rx <= char[0];
    #BAUDRATE rx <= char[1];
    #BAUDRATE rx <= char[2];
    #BAUDRATE rx <= char[3];
    #BAUDRATE rx <= char[4];
    #BAUDRATE rx <= char[5];
    #BAUDRATE rx <= char[6];
    #BAUDRATE rx <= char[7];
    #BAUDRATE rx <= 1;
    #BAUDRATE rx <= 1;
  end
  endtask


reg clk = 0;


reg rx = 1;


wire [3:0] leds;


rxleds #(.BAUDRATE(BAUDRATE))
  dut(
    .clk(clk),
    .rx(rx),
    .leds(leds)
  );


always
  # 0.5 clk <= ~clk;

initial begin


  $dumpfile("rxleds_tb.vcd");
  $dumpvars(0, rxleds_tb);


  #BAUDRATE    send_char(8'h55);
  #WAIT        send_char("K");

  #(WAIT * 4) $display("END of the simulation");
  $finish;
end

endmodule
module rxleds_tb();



localparam BAUDRATE = `B115200;


localparam SERIAL_PACK = (BAUDRATE * 10);


localparam WAIT = (BAUDRATE * 4);




  task send_char;
    input [7:0] char;
  begin
    rx <= 0;
    #BAUDRATE rx <= char[0];
    #BAUDRATE rx <= char[1];
    #BAUDRATE rx <= char[2];
    #BAUDRATE rx <= char[3];
    #BAUDRATE rx <= char[4];
    #BAUDRATE rx <= char[5];
    #BAUDRATE rx <= char[6];
    #BAUDRATE rx <= char[7];
    #BAUDRATE rx <= 1;
    #BAUDRATE rx <= 1;
  end
  endtask


reg clk = 0;


reg rx = 1;


wire [3:0] leds;


rxleds #(.BAUDRATE(BAUDRATE))
  dut(
    .clk(clk),
    .rx(rx),
    .leds(leds)
  );


always
  # 0.5 clk <= ~clk;

initial begin


  $dumpfile("rxleds_tb.vcd");
  $dumpvars(0, rxleds_tb);


  #BAUDRATE    send_char(8'h55);
  #WAIT        send_char("K");

  #(WAIT * 4) $display("END of the simulation");
  $finish;
end

endmodule