data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/de0_nano/bench/orpsoc_tb.v
None: at end of input
1: b'%Error: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/de0_nano/bench/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/de0_nano/bench,data/full_repos/permissive/19905110/timescale.v\n             data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/de0_nano/bench,data/full_repos/permissive/19905110/timescale.v.v\n             data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/de0_nano/bench,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%Warning-STMTDLY: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/de0_nano/bench/orpsoc_tb.v:9: Unsupported: Ignoring delay on this delayed statement.\n #5 clk <= ~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/de0_nano/bench/orpsoc_tb.v:12: Unsupported: Ignoring delay on this delayed statement.\n #100 rst_n <= 0;\n ^\n%Warning-STMTDLY: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/de0_nano/bench/orpsoc_tb.v:13: Unsupported: Ignoring delay on this delayed statement.\n #200 rst_n <= 1;\n ^\n%Error: data/full_repos/permissive/19905110/fusesoc/orpsoc-cores/systems/de0_nano/bench/orpsoc_tb.v:25: 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/de0_nano/bench/orpsoc_tb.v:27: 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/de0_nano/bench/orpsoc_tb.v:29: Unsupported or unknown PLI call: $elf_read_32\n   orpsoc_tb.dut.ram_wb0.ram_wb_b3_0.mem[i] = $elf_read_32(i*4);\n                                              ^~~~~~~~~~~~\n%Error: Exiting due to 4 error(s), 3 warning(s)\n'
module orpsoc_tb;

reg clk   = 0;
reg rst_n = 1;

always
	#5 clk <= ~clk;

initial begin
	#100 rst_n <= 0;
	#200 rst_n <= 1;
end

vlog_tb_utils vlog_tb_utils0();

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;
		for(i=0; i < mem_words; i = i+1)
			orpsoc_tb.dut.ram_wb0.ram_wb_b3_0.mem[i] = $elf_read_32(i*4);
	end else
		$display("No ELF file specified");
end

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));

orpsoc_top dut
(
	.sys_clk_pad_i		(clk),
	.rst_n_pad_i		(rst_n),

	.tms_pad_i		(tms),
	.tck_pad_i		(tck),
	.tdi_pad_i		(tdi),
	.tdo_pad_o		(tdo),

	.uart0_srx_pad_i	(uart),
	.uart0_stx_pad_o	(uart)
);

or1200_monitor i_monitor();


uart_decoder
	#(.uart_baudrate_period_ns(8680/2))
uart_decoder0
(
	.clk(clk),
	.uart_tx(uart)
);

endmodule
module orpsoc_tb;


reg clk   = 0;
reg rst_n = 1;

always
	#5 clk <= ~clk;

initial begin
	#100 rst_n <= 0;
	#200 rst_n <= 1;
end

vlog_tb_utils vlog_tb_utils0();

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;
		for(i=0; i < mem_words; i = i+1)
			orpsoc_tb.dut.ram_wb0.ram_wb_b3_0.mem[i] = $elf_read_32(i*4);
	end else
		$display("No ELF file specified");
end

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));

orpsoc_top dut
(
	.sys_clk_pad_i		(clk),
	.rst_n_pad_i		(rst_n),

	.tms_pad_i		(tms),
	.tck_pad_i		(tck),
	.tdi_pad_i		(tdi),
	.tdo_pad_o		(tdo),

	.uart0_srx_pad_i	(uart),
	.uart0_stx_pad_o	(uart)
);

or1200_monitor i_monitor();


uart_decoder
	#(.uart_baudrate_period_ns(8680/2))
uart_decoder0
(
	.clk(clk),
	.uart_tx(uart)
);

endmodule