data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog/orpsoc_tb.v
None: at end of input
1: b'%Error: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog/orpsoc_tb.v:1: Cannot find include file: timescale.v\n`include "timescale.v" \n         ^~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog,data/full_repos/permissive/19905110/timescale.v\n             data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog,data/full_repos/permissive/19905110/timescale.v.v\n             data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog,data/full_repos/permissive/19905110/timescale.v.sv\n             timescale.v\n             timescale.v.v\n             timescale.v.sv\n             obj_dir/timescale.v\n             obj_dir/timescale.v.v\n             obj_dir/timescale.v.sv\n%Error: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog/orpsoc_tb.v:43: Unsupported or unknown PLI call: $elf_load_file\n  $elf_load_file(elf_file);\n  ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog/orpsoc_tb.v:45: Unsupported or unknown PLI call: $elf_get_size\n  mem_words = $elf_get_size/4;\n              ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog/orpsoc_tb.v:48: Unsupported or unknown PLI call: $elf_read_32\n    orpsoc_tb.dut.wb_bfm_memory0.mem[i] = $elf_read_32(i*4);\n                                          ^~~~~~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog/orpsoc_tb.v:62: Unsupported: Ignoring delay on this delayed statement.\n   always #5 syst_clk <= ~syst_clk;\n          ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/or1200-generic/bench/verilog/orpsoc_tb.v:63: Unsupported: Ignoring delay on this delayed statement.\n   initial #100 syst_rst <= 0;\n           ^\n%Error: Exiting due to 4 error(s), 2 warning(s)\n'
module orpsoc_tb;

   vlog_tb_utils vlog_tb_utils0();







    wire tms;
    wire tck;
    wire tdi;
    wire tdo;

    reg enable_jtag_vpi;
    initial enable_jtag_vpi = $test$plusargs("enable_jtag_vpi");

    jtag_vpi jtag_vpi0
    (
        .tms		(tms),
        .tck		(tck),
        .tdi		(tdi),
        .tdo		(tdo),
        .enable		(enable_jtag_vpi),
        .init_done	(orpsoc_tb.dut.wb_rst)
    );






   integer mem_words;
   integer i;
   reg [31:0] mem_word;
   reg [1023:0] elf_file;

   initial begin
      if($value$plusargs("elf_load=%s", elf_file)) begin
	 $elf_load_file(elf_file);
	 
	 mem_words = $elf_get_size/4;
	 $display("Loading %d words", mem_words);
	 for(i=0; i < mem_words; i = i+1)
	   orpsoc_tb.dut.wb_bfm_memory0.mem[i] = $elf_read_32(i*4);
      end else
	$display("No ELF file specified");
      
   end






   reg syst_clk = 1;
   reg syst_rst = 1;

   always #5 syst_clk <= ~syst_clk;
   initial #100 syst_rst <= 0;






   or1200_monitor i_monitor();
   





   orpsoc_top
     #(.UART_SIM (1))
   dut
     (.wb_clk_i (syst_clk),
      .wb_rst_i (syst_rst),
      .tms_pad_i (tms),
      .tck_pad_i (tck),
      .tdi_pad_i (tdi),
      .tdo_pad_o (tdo));

endmodule
module orpsoc_tb;


   vlog_tb_utils vlog_tb_utils0();







    wire tms;
    wire tck;
    wire tdi;
    wire tdo;

    reg enable_jtag_vpi;
    initial enable_jtag_vpi = $test$plusargs("enable_jtag_vpi");

    jtag_vpi jtag_vpi0
    (
        .tms		(tms),
        .tck		(tck),
        .tdi		(tdi),
        .tdo		(tdo),
        .enable		(enable_jtag_vpi),
        .init_done	(orpsoc_tb.dut.wb_rst)
    );






   integer mem_words;
   integer i;
   reg [31:0] mem_word;
   reg [1023:0] elf_file;

   initial begin
      if($value$plusargs("elf_load=%s", elf_file)) begin
	 $elf_load_file(elf_file);
	 
	 mem_words = $elf_get_size/4;
	 $display("Loading %d words", mem_words);
	 for(i=0; i < mem_words; i = i+1)
	   orpsoc_tb.dut.wb_bfm_memory0.mem[i] = $elf_read_32(i*4);
      end else
	$display("No ELF file specified");
      
   end






   reg syst_clk = 1;
   reg syst_rst = 1;

   always #5 syst_clk <= ~syst_clk;
   initial #100 syst_rst <= 0;






   or1200_monitor i_monitor();
   





   orpsoc_top
     #(.UART_SIM (1))
   dut
     (.wb_clk_i (syst_clk),
      .wb_rst_i (syst_rst),
      .tms_pad_i (tms),
      .tck_pad_i (tck),
      .tdi_pad_i (tdi),
      .tdo_pad_o (tdo));

endmodule