data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v
1: b'%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:30: Cannot find include file: common_defines.v\n`include "common_defines.v" \n         ^~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source,data/full_repos/permissive/114714167/common_defines.v\n             data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source,data/full_repos/permissive/114714167/common_defines.v.v\n             data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source,data/full_repos/permissive/114714167/common_defines.v.sv\n             common_defines.v\n             common_defines.v.v\n             common_defines.v.sv\n             obj_dir/common_defines.v\n             obj_dir/common_defines.v.v\n             obj_dir/common_defines.v.sv\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:33: Define or directive not defined: \'`PWM_VALUE_BIT_WIDTH\'\n output wire [`PWM_VALUE_BIT_WIDTH - 1:0] throttle_val,\n              ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:34: Define or directive not defined: \'`PWM_VALUE_BIT_WIDTH\'\n output wire [`PWM_VALUE_BIT_WIDTH - 1:0] yaw_val,\n              ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:35: Define or directive not defined: \'`PWM_VALUE_BIT_WIDTH\'\n output wire [`PWM_VALUE_BIT_WIDTH - 1:0] roll_val,\n              ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:36: Define or directive not defined: \'`PWM_VALUE_BIT_WIDTH\'\n output wire [`PWM_VALUE_BIT_WIDTH - 1:0] pitch_val,\n              ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:37: Define or directive not defined: \'`PWM_VALUE_BIT_WIDTH\'\n output wire [`PWM_VALUE_BIT_WIDTH - 1:0] aux1_val,\n              ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:38: Define or directive not defined: \'`PWM_VALUE_BIT_WIDTH\'\n output wire [`PWM_VALUE_BIT_WIDTH - 1:0] aux2_val,\n              ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:39: Define or directive not defined: \'`PWM_VALUE_BIT_WIDTH\'\n output wire [`PWM_VALUE_BIT_WIDTH - 1:0] swa_swb_val,\n              ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:50: Define or directive not defined: \'`PWM_TIME_BIT_WIDTH\'\n wire [`PWM_TIME_BIT_WIDTH - 1:0]\n       ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:60: Define or directive not defined: \'`THROTTLE_DEFAULT_PULSE_TIME_HIGH_US\'\n pwm_reader #(`THROTTLE_DEFAULT_PULSE_TIME_HIGH_US) throttle_reader (\n              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:76: Define or directive not defined: \'`YAW_DEFAULT_PULSE_TIME_HIGH_US\'\n pwm_reader #(`YAW_DEFAULT_PULSE_TIME_HIGH_US) yaw_reader (\n              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:92: Define or directive not defined: \'`ROLL_DEFAULT_PULSE_TIME_HIGH_US\'\n pwm_reader #(`ROLL_DEFAULT_PULSE_TIME_HIGH_US) roll_reader (\n              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:108: Define or directive not defined: \'`PITCH_DEFAULT_PULSE_TIME_HIGH_US\'\n pwm_reader #(`PITCH_DEFAULT_PULSE_TIME_HIGH_US) pitch_reader (\n              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:124: Define or directive not defined: \'`AUX1_DEFAULT_PULSE_TIME_HIGH_US\'\n pwm_reader #(`AUX1_DEFAULT_PULSE_TIME_HIGH_US)\n              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:141: Define or directive not defined: \'`AUX2_DEFAULT_PULSE_TIME_HIGH_US\'\n pwm_reader #(`AUX2_DEFAULT_PULSE_TIME_HIGH_US)\n              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114714167/Source-Code/Drone2/impl1/source/receiver.v:158: Define or directive not defined: \'`SWAB_DEFAULT_PULSE_TIME_HIGH_US\'\n pwm_reader #(`SWAB_DEFAULT_PULSE_TIME_HIGH_US)\n              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 16 error(s)\n'
module receiver (
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] throttle_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] yaw_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] roll_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] pitch_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] aux1_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] aux2_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] swa_swb_val,
	input wire throttle_pwm,
	input wire yaw_pwm,
	input wire roll_pwm,
	input wire pitch_pwm,
	input wire aux1_pwm,
	input wire aux2_pwm,
	input wire swa_swb_pwm,
	input wire us_clk,
	input wire resetn);

	wire [`PWM_TIME_BIT_WIDTH - 1:0]
		throttle_pwm_pulse_length_us,
		yaw_pwm_pulse_length_us,
		roll_pwm_pulse_length_us,
		pitch_pwm_pulse_length_us,
		aux1_pwm_pulse_length_us,
		aux2_pwm_pulse_length_us,
		swa_swb_pwm_pulse_length_us;


	pwm_reader #(`THROTTLE_DEFAULT_PULSE_TIME_HIGH_US) throttle_reader (

		.pwm_pulse_length_us(throttle_pwm_pulse_length_us),

		.pwm(throttle_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value throttle_pwm_to_value (

		.value_out(throttle_val),

		.pwm_time_high_us(throttle_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`YAW_DEFAULT_PULSE_TIME_HIGH_US) yaw_reader (

		.pwm_pulse_length_us(yaw_pwm_pulse_length_us),

		.pwm(yaw_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value yaw_pwm_to_value (

		.value_out(yaw_val),

		.pwm_time_high_us(yaw_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`ROLL_DEFAULT_PULSE_TIME_HIGH_US) roll_reader (

		.pwm_pulse_length_us(roll_pwm_pulse_length_us),

		.pwm(roll_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value roll_pwm_to_value (

		.value_out(roll_val),

		.pwm_time_high_us(roll_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`PITCH_DEFAULT_PULSE_TIME_HIGH_US) pitch_reader (

		.pwm_pulse_length_us(pitch_pwm_pulse_length_us),

		.pwm(pitch_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value pitch_pwm_to_value (

		.value_out(pitch_val),

		.pwm_time_high_us(pitch_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`AUX1_DEFAULT_PULSE_TIME_HIGH_US)
	aux1_reader (

		.pwm_pulse_length_us(aux1_pwm_pulse_length_us),

		.pwm(aux1_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value aux1_pwm_to_value (

		.value_out(aux1_val),

		.pwm_time_high_us(aux1_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`AUX2_DEFAULT_PULSE_TIME_HIGH_US)
	aux2_reader (

		.pwm_pulse_length_us(aux2_pwm_pulse_length_us),

		.pwm(aux2_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value aux2_pwm_to_value (

		.value_out(aux2_val),

		.pwm_time_high_us(aux2_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`SWAB_DEFAULT_PULSE_TIME_HIGH_US)
	swa_swb_reader (

		.pwm_pulse_length_us(swa_swb_pwm_pulse_length_us),

		.pwm(swa_swb_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value swab_pwm_to_value (

		.value_out(swa_swb_val),

		.pwm_time_high_us(swa_swb_pwm_pulse_length_us),
		.us_clk(us_clk));
endmodule
module receiver (
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] throttle_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] yaw_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] roll_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] pitch_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] aux1_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] aux2_val,
	output wire [`PWM_VALUE_BIT_WIDTH - 1:0] swa_swb_val,
	input wire throttle_pwm,
	input wire yaw_pwm,
	input wire roll_pwm,
	input wire pitch_pwm,
	input wire aux1_pwm,
	input wire aux2_pwm,
	input wire swa_swb_pwm,
	input wire us_clk,
	input wire resetn);


	wire [`PWM_TIME_BIT_WIDTH - 1:0]
		throttle_pwm_pulse_length_us,
		yaw_pwm_pulse_length_us,
		roll_pwm_pulse_length_us,
		pitch_pwm_pulse_length_us,
		aux1_pwm_pulse_length_us,
		aux2_pwm_pulse_length_us,
		swa_swb_pwm_pulse_length_us;


	pwm_reader #(`THROTTLE_DEFAULT_PULSE_TIME_HIGH_US) throttle_reader (

		.pwm_pulse_length_us(throttle_pwm_pulse_length_us),

		.pwm(throttle_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value throttle_pwm_to_value (

		.value_out(throttle_val),

		.pwm_time_high_us(throttle_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`YAW_DEFAULT_PULSE_TIME_HIGH_US) yaw_reader (

		.pwm_pulse_length_us(yaw_pwm_pulse_length_us),

		.pwm(yaw_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value yaw_pwm_to_value (

		.value_out(yaw_val),

		.pwm_time_high_us(yaw_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`ROLL_DEFAULT_PULSE_TIME_HIGH_US) roll_reader (

		.pwm_pulse_length_us(roll_pwm_pulse_length_us),

		.pwm(roll_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value roll_pwm_to_value (

		.value_out(roll_val),

		.pwm_time_high_us(roll_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`PITCH_DEFAULT_PULSE_TIME_HIGH_US) pitch_reader (

		.pwm_pulse_length_us(pitch_pwm_pulse_length_us),

		.pwm(pitch_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value pitch_pwm_to_value (

		.value_out(pitch_val),

		.pwm_time_high_us(pitch_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`AUX1_DEFAULT_PULSE_TIME_HIGH_US)
	aux1_reader (

		.pwm_pulse_length_us(aux1_pwm_pulse_length_us),

		.pwm(aux1_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value aux1_pwm_to_value (

		.value_out(aux1_val),

		.pwm_time_high_us(aux1_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`AUX2_DEFAULT_PULSE_TIME_HIGH_US)
	aux2_reader (

		.pwm_pulse_length_us(aux2_pwm_pulse_length_us),

		.pwm(aux2_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value aux2_pwm_to_value (

		.value_out(aux2_val),

		.pwm_time_high_us(aux2_pwm_pulse_length_us),
		.us_clk(us_clk));


	pwm_reader #(`SWAB_DEFAULT_PULSE_TIME_HIGH_US)
	swa_swb_reader (

		.pwm_pulse_length_us(swa_swb_pwm_pulse_length_us),

		.pwm(swa_swb_pwm),
		.us_clk(us_clk),
		.resetn(resetn));

	pwm_to_value swab_pwm_to_value (

		.value_out(swa_swb_val),

		.pwm_time_high_us(swa_swb_pwm_pulse_length_us),
		.us_clk(us_clk));
endmodule