data/full_repos/permissive/218126213/spi_tb.v
1: b'%Error: data/full_repos/permissive/218126213/spi_tb.v:1: Cannot find include file: global_memory_parameters.v\n`include "global_memory_parameters.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/218126213,data/full_repos/permissive/218126213/global_memory_parameters.v\n             data/full_repos/permissive/218126213,data/full_repos/permissive/218126213/global_memory_parameters.v.v\n             data/full_repos/permissive/218126213,data/full_repos/permissive/218126213/global_memory_parameters.v.sv\n             global_memory_parameters.v\n             global_memory_parameters.v.v\n             global_memory_parameters.v.sv\n             obj_dir/global_memory_parameters.v\n             obj_dir/global_memory_parameters.v.v\n             obj_dir/global_memory_parameters.v.sv\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:36: Unsupported: Ignoring delay on this delayed statement.\n #10 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/218126213/spi_tb.v:41: Unsupported: Ignoring delay on this delayed statement.\n #65104 SPI_SCK=!SPI_SCK;\n ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:46: Unsupported: Ignoring delay on this delayed statement.\n #130208 SPI_S=1\'b0;\n ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:47: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b0; #130208  \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:48: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:49: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:50: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:51: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:52: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:53: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:54: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:55: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; Q=8\'hAA; #130208 \n                     ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:57: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:58: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:59: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b0; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:60: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b0; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:61: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:62: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:63: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b1; #130208 \n            ^\n%Warning-STMTDLY: data/full_repos/permissive/218126213/spi_tb.v:64: Unsupported: Ignoring delay on this delayed statement.\n MOSI=1\'b0; #130208 \n            ^\n%Error: Exiting due to 1 error(s), 20 warning(s)\n'
module spi_tb();
reg MOSI,SPI_SCK,SPI_RESET,SPI_S,clk;
wire DATA_DONE;
reg [7:0] Q;
wire MISO,RESET,S;
wire [7:0] D;

spi_ip_core uut(
	.clk(clk),
	.MOSI(MOSI), 
	.SPI_SCK(SPI_SCK),
	.SPI_RESET(SPI_RESET),
	.SPI_S(SPI_S),
	.MISO(MISO),
	.D(D),
	.RESET(RESET),
	.S(S),
	.Q(Q),
	.DATA_DONE(DATA_DONE)
);

initial
begin
	MOSI=1'b0;
	SPI_SCK=1'b0;
	SPI_RESET=1'b1;
	SPI_S=1'b1;
	Q=8'h00;
	clk=1'b0;
end

always 
begin
	#10 clk=!clk;
end

always
begin
	#65104 SPI_SCK=!SPI_SCK;
end

always @ (negedge SPI_SCK)
begin	
	#130208 SPI_S=1'b0;
	MOSI=1'b0; #130208
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; Q=8'hAA; #130208 
	
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b0; #130208 
	MOSI=1'b0; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b0; #130208 
	SPI_S=1'b1;

end

endmodule
module spi_tb();

reg MOSI,SPI_SCK,SPI_RESET,SPI_S,clk;
wire DATA_DONE;
reg [7:0] Q;
wire MISO,RESET,S;
wire [7:0] D;

spi_ip_core uut(
	.clk(clk),
	.MOSI(MOSI), 
	.SPI_SCK(SPI_SCK),
	.SPI_RESET(SPI_RESET),
	.SPI_S(SPI_S),
	.MISO(MISO),
	.D(D),
	.RESET(RESET),
	.S(S),
	.Q(Q),
	.DATA_DONE(DATA_DONE)
);

initial
begin
	MOSI=1'b0;
	SPI_SCK=1'b0;
	SPI_RESET=1'b1;
	SPI_S=1'b1;
	Q=8'h00;
	clk=1'b0;
end

always 
begin
	#10 clk=!clk;
end

always
begin
	#65104 SPI_SCK=!SPI_SCK;
end

always @ (negedge SPI_SCK)
begin	
	#130208 SPI_S=1'b0;
	MOSI=1'b0; #130208
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; Q=8'hAA; #130208 
	
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b0; #130208 
	MOSI=1'b0; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b1; #130208 
	MOSI=1'b0; #130208 
	SPI_S=1'b1;

end

endmodule