data/full_repos/permissive/160437780/Source/movementMain.v
1: b"%Error: data/full_repos/permissive/160437780/Source/movementMain.v:21: Cannot find file containing module: 'PWM'\nPWM powa(\n^~~\n        ... Looked in:\n             data/full_repos/permissive/160437780/Source,data/full_repos/permissive/160437780/PWM\n             data/full_repos/permissive/160437780/Source,data/full_repos/permissive/160437780/PWM.v\n             data/full_repos/permissive/160437780/Source,data/full_repos/permissive/160437780/PWM.sv\n             PWM\n             PWM.v\n             PWM.sv\n             obj_dir/PWM\n             obj_dir/PWM.v\n             obj_dir/PWM.sv\n%Error: data/full_repos/permissive/160437780/Source/movementMain.v:29: Cannot find file containing module: 'dirMovement'\ndirMovement SetDirection(\n^~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module movementMain(
	input CLK100MHZ,
	input reset,
	input [2:0] movementCommand, 
	input [1:0] curSpeed,
	input [1:0] speedChange,
	output enableA,
	output enableB,
	output [3:0] motor

);
reg [4:0] dutyCycle;



PWM powa(
.CLK100MHZ(CLK100MHZ),
.speed(dutyCycle),
.reset(reset),
.pwm_1(enableA),
.pwm_2(enableB)
);

dirMovement SetDirection(
.CLK100MHZ(CLK100MHZ),
.movementCommand(movementCommand),
.motor(motor)
);

always @(*) begin
     if (speedChange == 2'b00) begin
		case(curSpeed)
			0: dutyCycle <= 5'b00000;
			1: dutyCycle <= 5'b00111;
			2: dutyCycle <= 5'b01101;
			3: dutyCycle <= 5'b10011;
		endcase
     end
     else if (speedChange == 2'b11) begin
             dutyCycle <= 5'b00000;
     end
	
end       

endmodule
module movementMain(
	input CLK100MHZ,
	input reset,
	input [2:0] movementCommand, 
	input [1:0] curSpeed,
	input [1:0] speedChange,
	output enableA,
	output enableB,
	output [3:0] motor

);

reg [4:0] dutyCycle;



PWM powa(
.CLK100MHZ(CLK100MHZ),
.speed(dutyCycle),
.reset(reset),
.pwm_1(enableA),
.pwm_2(enableB)
);

dirMovement SetDirection(
.CLK100MHZ(CLK100MHZ),
.movementCommand(movementCommand),
.motor(motor)
);

always @(*) begin
     if (speedChange == 2'b00) begin
		case(curSpeed)
			0: dutyCycle <= 5'b00000;
			1: dutyCycle <= 5'b00111;
			2: dutyCycle <= 5'b01101;
			3: dutyCycle <= 5'b10011;
		endcase
     end
     else if (speedChange == 2'b11) begin
             dutyCycle <= 5'b00000;
     end
	
end       

endmodule