data/full_repos/permissive/433122322/src/changing_waves.v
1: b'%Error: data/full_repos/permissive/433122322/src/changing_waves.v:15: Cannot find file containing module: \'frequency_generator\'\nfrequency_generator fg(                         \n^~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/433122322/src,data/full_repos/permissive/433122322/frequency_generator\n             data/full_repos/permissive/433122322/src,data/full_repos/permissive/433122322/frequency_generator.v\n             data/full_repos/permissive/433122322/src,data/full_repos/permissive/433122322/frequency_generator.sv\n             frequency_generator\n             frequency_generator.v\n             frequency_generator.sv\n             obj_dir/frequency_generator\n             obj_dir/frequency_generator.v\n             obj_dir/frequency_generator.sv\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:26: Cannot find file containing module: \'frequency_generator_apf\'\nfrequency_generator_apf ask1(\n^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:36: Cannot find file containing module: \'frequency_generator_apf\'\nfrequency_generator_apf psk1(\n^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:46: Cannot find file containing module: \'frequency_generator_apf\'\nfrequency_generator_apf fsk1(\n^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:75: Cannot find file containing module: \'sin_256\'\nsin_256 sin(\n^~~~~~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:81: Cannot find file containing module: \'square_256\'\nsquare_256 square(\n^~~~~~~~~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:87: Cannot find file containing module: \'triangle_256\'\ntriangle_256 triangle(\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:93: Cannot find file containing module: \'sawtooth_256\'\nsawtooth_256 sawtooth(\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:99: Cannot find file containing module: \'lfm_256\'\nlfm_256 lfm(\n^~~~~~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:106: Cannot find file containing module: \'ASK\'\nASK ask(\n^~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:113: Cannot find file containing module: \'PSK\'\nPSK psk(\n^~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:120: Cannot find file containing module: \'FSK\'\nFSK fsk(\n^~~\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:130: Cannot find file containing module: \'wave_selector\'\nwave_selector ws(                         \n^~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/433122322/src/changing_waves.v:147: Operator ASSIGNW expects 11 bits on the Assign RHS, but Assign RHS\'s VARREF \'temp_wave\' generates 8 bits.\n                                                                             : ... In instance changing_waves\nassign d1  = temp_wave;\n           ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/433122322/src/changing_waves.v:151: Cannot find file containing module: \'amplitude_selector\'\namplitude_selector as(                     \n^~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 14 error(s), 1 warning(s)\n'
module changing_waves(
		input clk,
		input rst_n,
		
		input [2: 0] s0,
		input [2: 0] s1,
		input [1: 0] s2,
		
		output [10: 0] dout, d1
);



wire [7: 0] address;
frequency_generator fg(
	.clk(clk),
	.rst_n(rst_n),
	.data_in(s1),

	.out_address(address)
);


wire n1;

frequency_generator_apf ask1(
	.clk(clk),
	.rst_n(rst_n),
	.data_in(s1),
	.out_address(n1)
);


wire n2;

frequency_generator_apf psk1(
	.clk(clk),
	.rst_n(rst_n),
	.data_in(s1),
	.out_address(n2)
);


wire n3;

frequency_generator_apf fsk1(
	.clk(clk),
	.rst_n(rst_n),
	.data_in(s1),
	.out_address(n3)
);





reg rden;
wire [7: 0] sin_out;
wire [7: 0] square_out;
wire [7: 0] triangle_out;
wire [7: 0] sawtooth_out;
wire [7: 0] lfm_out;
wire [7: 0] ASK_out;
wire [7: 0] PSK_out;
wire [7: 0] FSK_out;
 	 
always@(posedge clk or negedge rst_n)
begin 
	if (!rst_n) 
		rden <= 0;
	else 
		rden <= 1;
end

sin_256 sin(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(sin_out)
);	
square_256 square(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(square_out)
);	
triangle_256 triangle(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(triangle_out)
);	
sawtooth_256 sawtooth(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(sawtooth_out)
);	
lfm_256 lfm(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(lfm_out)
);	

ASK ask(
	.clk(clk),
	.rst_n(rst_n),
	.N(n1),
	.dout_ASK(ASK_out)
);	

PSK psk(
	.clk(clk),
	.rst_n(rst_n),
	.N(n2),
	.dout_PSK(PSK_out)
);	

FSK fsk(
	.clk(clk),
	.rst_n(rst_n),
	.N(n3),
	.dout_FSK(FSK_out)
);	



wire [7: 0] temp_wave;
wave_selector ws(

	.data_in(s0),
	
	.sin(sin_out),
	.square(square_out),
	.triangle(triangle_out),
	.sawtooth(sawtooth_out),
	.lfm(lfm_out),
	.ASK(ASK_out),
	.PSK(PSK_out),
	.FSK(FSK_out),
	
	.clk(clk),
	.rst_n(rst_n),
	.out(temp_wave)
);
assign d1  = temp_wave;



amplitude_selector as(
	.clk(clk),
	.data_in(s2),

	.wave_data(temp_wave),
	.out(dout)
);

endmodule
module changing_waves(
		input clk,
		input rst_n,
		
		input [2: 0] s0,
		input [2: 0] s1,
		input [1: 0] s2,
		
		output [10: 0] dout, d1
);




wire [7: 0] address;
frequency_generator fg(
	.clk(clk),
	.rst_n(rst_n),
	.data_in(s1),

	.out_address(address)
);


wire n1;

frequency_generator_apf ask1(
	.clk(clk),
	.rst_n(rst_n),
	.data_in(s1),
	.out_address(n1)
);


wire n2;

frequency_generator_apf psk1(
	.clk(clk),
	.rst_n(rst_n),
	.data_in(s1),
	.out_address(n2)
);


wire n3;

frequency_generator_apf fsk1(
	.clk(clk),
	.rst_n(rst_n),
	.data_in(s1),
	.out_address(n3)
);





reg rden;
wire [7: 0] sin_out;
wire [7: 0] square_out;
wire [7: 0] triangle_out;
wire [7: 0] sawtooth_out;
wire [7: 0] lfm_out;
wire [7: 0] ASK_out;
wire [7: 0] PSK_out;
wire [7: 0] FSK_out;
 	 
always@(posedge clk or negedge rst_n)
begin 
	if (!rst_n) 
		rden <= 0;
	else 
		rden <= 1;
end

sin_256 sin(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(sin_out)
);	
square_256 square(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(square_out)
);	
triangle_256 triangle(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(triangle_out)
);	
sawtooth_256 sawtooth(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(sawtooth_out)
);	
lfm_256 lfm(
	.clock(clk), 
	.address(address),
	.rden(rden),
	.q(lfm_out)
);	

ASK ask(
	.clk(clk),
	.rst_n(rst_n),
	.N(n1),
	.dout_ASK(ASK_out)
);	

PSK psk(
	.clk(clk),
	.rst_n(rst_n),
	.N(n2),
	.dout_PSK(PSK_out)
);	

FSK fsk(
	.clk(clk),
	.rst_n(rst_n),
	.N(n3),
	.dout_FSK(FSK_out)
);	



wire [7: 0] temp_wave;
wave_selector ws(

	.data_in(s0),
	
	.sin(sin_out),
	.square(square_out),
	.triangle(triangle_out),
	.sawtooth(sawtooth_out),
	.lfm(lfm_out),
	.ASK(ASK_out),
	.PSK(PSK_out),
	.FSK(FSK_out),
	
	.clk(clk),
	.rst_n(rst_n),
	.out(temp_wave)
);
assign d1  = temp_wave;



amplitude_selector as(
	.clk(clk),
	.data_in(s2),

	.wave_data(temp_wave),
	.out(dout)
);

endmodule