data/full_repos/permissive/52196097/DSP/Radar_DSP/FPGA/Individual Modules/FFT_Mag/FFT_Mag/tb_magnitude.v
1: b'%Error: Cannot find file containing module: Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097\n        ... Looked in:\n             data/full_repos/permissive/52196097/DSP/Radar_DSP/FPGA/Individual/Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097\n             data/full_repos/permissive/52196097/DSP/Radar_DSP/FPGA/Individual/Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097.v\n             data/full_repos/permissive/52196097/DSP/Radar_DSP/FPGA/Individual/Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097.sv\n             Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097\n             Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097.v\n             Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097.sv\n             obj_dir/Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097\n             obj_dir/Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097.v\n             obj_dir/Modules/FFT_Mag/FFT_Mag,data/full_repos/permissive/52196097.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/52196097/DSP/Radar_DSP/FPGA/Individual\n%Error: Cannot find file containing module: Modules/FFT_Mag/FFT_Mag/tb_magnitude.v\n%Error: Exiting due to 3 error(s)\n'
module tb_magnitude();
	reg clk;
	
	initial clk = 0;
	always #10000 clk = ~clk;
	wire [11:0] mag1, mag2;
	reg [11:0] Y0, Y1, Y2, Y3;

	magnitude magnitude_inst(.Y0(Y0), .Y1(Y1), .Y2(Y2), .Y3(Y3), .mag1(mag1), .mag2(mag2));
	
	
	initial begin
		@(posedge clk);
		Y0 <= 12'b111111111101;
 		Y1 <= 12'b111111111110;
		Y2 <= 12'b111111111111;
		Y3 <= 12'b111111111110;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= 12'b000000010110;
 		Y1 <= 12'b000001000100;
		Y2 <= 12'b000001001110;
		Y3 <= 12'b000011110011;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= $random;
 		Y1 <= $random;
		Y2 <= $random;
		Y3 <= $random;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= $random;
 		Y1 <= $random;
		Y2 <= $random;
		Y3 <= $random;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= $random;
 		Y1 <= $random;
		Y2 <= $random;
		Y3 <= $random;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= $random;
 		Y1 <= $random;
		Y2 <= $random;
		Y3 <= $random;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		
		#1000 $finish;
	end



endmodule
module tb_magnitude();

	reg clk;
	
	initial clk = 0;
	always #10000 clk = ~clk;
	wire [11:0] mag1, mag2;
	reg [11:0] Y0, Y1, Y2, Y3;

	magnitude magnitude_inst(.Y0(Y0), .Y1(Y1), .Y2(Y2), .Y3(Y3), .mag1(mag1), .mag2(mag2));
	
	
	initial begin
		@(posedge clk);
		Y0 <= 12'b111111111101;
 		Y1 <= 12'b111111111110;
		Y2 <= 12'b111111111111;
		Y3 <= 12'b111111111110;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= 12'b000000010110;
 		Y1 <= 12'b000001000100;
		Y2 <= 12'b000001001110;
		Y3 <= 12'b000011110011;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= $random;
 		Y1 <= $random;
		Y2 <= $random;
		Y3 <= $random;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= $random;
 		Y1 <= $random;
		Y2 <= $random;
		Y3 <= $random;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= $random;
 		Y1 <= $random;
		Y2 <= $random;
		Y3 <= $random;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		Y0 <= $random;
 		Y1 <= $random;
		Y2 <= $random;
		Y3 <= $random;
		#10;
		$display("Y0 = %d, Y1 = %d, Y2 = %d, Y3 = %d.", Y0, Y1, Y2, Y3);
		
		@(posedge clk);
		$display("mag1 = %d, mag2 = %d", mag1, mag2);
		
		#1000 $finish;
	end



endmodule