data/full_repos/permissive/152883307/Project/PWM_IGBT_DRIVER.v
 line:58: before: ")"
1: b'%Error: data/full_repos/permissive/152883307/Project/PWM_IGBT_DRIVER.v:28: Cannot find file containing module: \'Subtractor\'\nSubtractor ErrorOfVoltage(\n^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/152883307/Project,data/full_repos/permissive/152883307/Subtractor\n             data/full_repos/permissive/152883307/Project,data/full_repos/permissive/152883307/Subtractor.v\n             data/full_repos/permissive/152883307/Project,data/full_repos/permissive/152883307/Subtractor.sv\n             Subtractor\n             Subtractor.v\n             Subtractor.sv\n             obj_dir/Subtractor\n             obj_dir/Subtractor.v\n             obj_dir/Subtractor.sv\n%Error: data/full_repos/permissive/152883307/Project/PWM_IGBT_DRIVER.v:34: Cannot find file containing module: \'PID\'\nPID V_PID(\n^~~\n%Error: data/full_repos/permissive/152883307/Project/PWM_IGBT_DRIVER.v:41: Cannot find file containing module: \'Scale\'\nScale Signed13bit_Unsigned9bit(   \n^~~~~\n%Error: data/full_repos/permissive/152883307/Project/PWM_IGBT_DRIVER.v:46: Cannot find file containing module: \'Lock\'\nLock Lock42Percent(\n^~~~\n%Error: data/full_repos/permissive/152883307/Project/PWM_IGBT_DRIVER.v:51: Cannot find file containing module: \'PWM\'\nPWM WithDeadTimeControl(\n^~~\n%Error: data/full_repos/permissive/152883307/Project/PWM_IGBT_DRIVER.v:59: Cannot find file containing module: \'PLL\'\nPLL ForPWM_20_48M(\n^~~\n%Error: data/full_repos/permissive/152883307/Project/PWM_IGBT_DRIVER.v:66: Cannot find file containing module: \'Divisor\'\nDivisor ForPID(\n^~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/152883307/Project/PWM_IGBT_DRIVER.v:73: Operator ASSIGNW expects 13 bits on the Assign RHS, but Assign RHS\'s VARREF \'w_Fix_Duty\' generates 9 bits.\n                                                                                 : ... In instance PWM_IGBT_DRIVER\nassign Test_pin2= w_Fix_Duty;\n                ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 7 error(s), 1 warning(s)\n'
module PWM_IGBT_DRIVER(
	V_feedback,
	V_target,
	clock_50Min,
	reset_n,
	PWM,
	Test_pin,
	Test_pin2,
	Switch
);
input 	[11:0]	V_target;
input 	[11:0]	V_feedback;
input					clock_50Min;
input					reset_n;
input		[9:0]		Switch;
output	[4:3]		PWM;
output	[12:0]	Test_pin;
output	[12:0]	Test_pin2;

wire  				w_clock_2048;
wire     [12:0]	w_PID_out;
wire     [8:0]		w_Scale_PID_out;
wire		[11:0]	w_u_prev;
wire		[8:0]		w_Fix_Duty;
wire		[12:0]	V_error;
wire					w_100Hz;

Subtractor ErrorOfVoltage(
	.A(V_target),
	.B(V_feedback),
	.clk(clock_50Min),
	.Y(V_error)
);
PID V_PID(
	.u_out(w_PID_out),
	.e_in(V_error),
	.clk(w_100Hz),
	.reset_n(reset_n),
	.u_prev(w_u_prev)
);
Scale Signed13bit_Unsigned9bit(
	.in(w_PID_out),
	.clk(clock_50Min),
	.out(w_Scale_PID_out)
);
Lock Lock42Percent(
	.Duty(~w_Scale_PID_out),
	.clk(clock_50Min),
	.Fix_Duty(w_Fix_Duty)
);
PWM WithDeadTimeControl(
	.clock_in(w_clock_2048),
	.reset_n(reset_n),
	.Duty_data(512),
	.Dead_time(w_Fix_Duty),
	.PWM_out1(PWM[3]),
	.PWM_out2(PWM[4]),
);
PLL ForPWM_20_48M(
	.refclk   (clock_50Min),
	.rst      (!reset_n),
	.outclk_0 (w_clock_2048),

);

Divisor ForPID(
	.clock_in(clock_50Min),
	.iHz_in(100),
	.reset_n(reset_n),
	.clock_div(w_100Hz)
);
assign Test_pin = w_PID_out;
assign Test_pin2= w_Fix_Duty;
endmodule
module PWM_IGBT_DRIVER(
	V_feedback,
	V_target,
	clock_50Min,
	reset_n,
	PWM,
	Test_pin,
	Test_pin2,
	Switch
);

input 	[11:0]	V_target;
input 	[11:0]	V_feedback;
input					clock_50Min;
input					reset_n;
input		[9:0]		Switch;
output	[4:3]		PWM;
output	[12:0]	Test_pin;
output	[12:0]	Test_pin2;

wire  				w_clock_2048;
wire     [12:0]	w_PID_out;
wire     [8:0]		w_Scale_PID_out;
wire		[11:0]	w_u_prev;
wire		[8:0]		w_Fix_Duty;
wire		[12:0]	V_error;
wire					w_100Hz;

Subtractor ErrorOfVoltage(
	.A(V_target),
	.B(V_feedback),
	.clk(clock_50Min),
	.Y(V_error)
);
PID V_PID(
	.u_out(w_PID_out),
	.e_in(V_error),
	.clk(w_100Hz),
	.reset_n(reset_n),
	.u_prev(w_u_prev)
);
Scale Signed13bit_Unsigned9bit(
	.in(w_PID_out),
	.clk(clock_50Min),
	.out(w_Scale_PID_out)
);
Lock Lock42Percent(
	.Duty(~w_Scale_PID_out),
	.clk(clock_50Min),
	.Fix_Duty(w_Fix_Duty)
);
PWM WithDeadTimeControl(
	.clock_in(w_clock_2048),
	.reset_n(reset_n),
	.Duty_data(512),
	.Dead_time(w_Fix_Duty),
	.PWM_out1(PWM[3]),
	.PWM_out2(PWM[4]),
);
PLL ForPWM_20_48M(
	.refclk   (clock_50Min),
	.rst      (!reset_n),
	.outclk_0 (w_clock_2048),

);

Divisor ForPID(
	.clock_in(clock_50Min),
	.iHz_in(100),
	.reset_n(reset_n),
	.clock_div(w_100Hz)
);
assign Test_pin = w_PID_out;
assign Test_pin2= w_Fix_Duty;
endmodule