data/full_repos/permissive/101171422/zcu104/sim/cordic/testbench.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/101171422/zcu104/sim/cordic/testbench.v:18: Unsupported: Ignoring delay on this delayed statement.\n  #100 rst = 0;\n  ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/101171422/zcu104/sim/cordic/testbench.v:29: Cannot find file containing module: \'cordic_0\'\n cordic_0 sqrt(\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/101171422/zcu104/sim/cordic,data/full_repos/permissive/101171422/cordic_0\n             data/full_repos/permissive/101171422/zcu104/sim/cordic,data/full_repos/permissive/101171422/cordic_0.v\n             data/full_repos/permissive/101171422/zcu104/sim/cordic,data/full_repos/permissive/101171422/cordic_0.sv\n             cordic_0\n             cordic_0.v\n             cordic_0.sv\n             obj_dir/cordic_0\n             obj_dir/cordic_0.v\n             obj_dir/cordic_0.sv\n%Error: Exiting due to 1 error(s), 1 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module testbench;
	reg clk;
	reg rst;
	
	reg  [31:0] x;
	wire [31:0] y;
	wire        valid;

	initial begin
		clk = 0;
		forever clk = #1 ~clk;
	end
	
	initial begin
		rst = 1;
		#100 rst = 0;
	end
	
	always @(posedge clk)
	begin
		if (rst == 1)
			x <= 0;
		else
			x <= x + 1;
	end
	
	cordic_0 sqrt(
		.s_axis_cartesian_tdata(x),
		.s_axis_cartesian_tvalid(~rst),
		.m_axis_dout_tdata(y),
		.m_axis_dout_tvalid(valid)
	);
endmodule
module testbench;

	reg clk;
	reg rst;
	
	reg  [31:0] x;
	wire [31:0] y;
	wire        valid;

	initial begin
		clk = 0;
		forever clk = #1 ~clk;
	end
	
	initial begin
		rst = 1;
		#100 rst = 0;
	end
	
	always @(posedge clk)
	begin
		if (rst == 1)
			x <= 0;
		else
			x <= x + 1;
	end
	
	cordic_0 sqrt(
		.s_axis_cartesian_tdata(x),
		.s_axis_cartesian_tvalid(~rst),
		.m_axis_dout_tdata(y),
		.m_axis_dout_tvalid(valid)
	);
endmodule