data/full_repos/permissive/207835546/GCD Calculate/GCD.v
 line:19: before: "else"
1: b'%Error: Cannot find file containing module: Calculate,data/full_repos/permissive/207835546\n        ... Looked in:\n             data/full_repos/permissive/207835546/GCD/Calculate,data/full_repos/permissive/207835546\n             data/full_repos/permissive/207835546/GCD/Calculate,data/full_repos/permissive/207835546.v\n             data/full_repos/permissive/207835546/GCD/Calculate,data/full_repos/permissive/207835546.sv\n             Calculate,data/full_repos/permissive/207835546\n             Calculate,data/full_repos/permissive/207835546.v\n             Calculate,data/full_repos/permissive/207835546.sv\n             obj_dir/Calculate,data/full_repos/permissive/207835546\n             obj_dir/Calculate,data/full_repos/permissive/207835546.v\n             obj_dir/Calculate,data/full_repos/permissive/207835546.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/207835546/GCD\n%Error: Cannot find file containing module: Calculate/GCD.v\n%Error: Exiting due to 3 error(s)\n'
module gcd_beh
#( parameter W = 16 )
(
input [W-1:0] inA, inB,
output [W-1:0] out
);
reg [W-1:0] A, B, out, swap;
integer done;
always @(*)
begin
done = 0;
A = inA; B = inB;
while ( !done )
begin
if ( A < B )
swap <= A;
A <= B;
B <= swap;
else if ( B != 0 )
A <= A - B;
else done <= 1;
end
out <= A;
end
endmodule
module gcd_beh
#( parameter W = 16 )
(
input [W-1:0] inA, inB,
output [W-1:0] out
);

reg [W-1:0] A, B, out, swap;
integer done;
always @(*)
begin
done = 0;
A = inA; B = inB;
while ( !done )
begin
if ( A < B )
swap <= A;
A <= B;
B <= swap;
else if ( B != 0 )
A <= A - B;
else done <= 1;
end
out <= A;
end
endmodule