data/full_repos/permissive/522546962/FPGA_code(motor_Trigg).v
1: b"%Error: data/full_repos/permissive/522546962/FPGA_code(motor_Trigg).v:32: syntax error, unexpected IDENTIFIER\nVISVESWARAYA TECHNOLOGICAL UNIVERSITY\n             ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/522546962/FPGA_code(motor_Trigg).v:37: syntax error, unexpected IDENTIFIER\nmotor a1(clk,hours,count);\n      ^~\n%Error: data/full_repos/permissive/522546962/FPGA_code(motor_Trigg).v:56: syntax error, unexpected $end, expecting ',' or ';'\nreg[3:0]register=4   b1001;\n                  ^\n%Error: Cannot continue\n"
module Digital_Clock(
Clk_1sec,
reset,
seconds,
minutes);

input Clk_1sec;
input reset;

output [5:0] seconds;
output [5:0] minutes;

reg [5:0] seconds;
reg [5:0] minutes;
integer count=0;


always @(posedge(Clk_1sec) or posedge(reset))
begin
if(reset == 1'b1) begin

seconds = 0;
minutes = 0; end
else if(Clk_1sec == 1'b1) begin
seconds = seconds + 1;
if(seconds == 60) begin
seconds = 0;
minutes = minutes + 1;
if(minutes == 60) begin
minutes = 0;

VISVESWARAYA TECHNOLOGICAL UNIVERSITY

Dept.of EC, VCET, Puttur Page 14
$display($time,"time=%d",count);
if(minutes==0&&count<12) begin
motor a1(clk,hours,count);
$display($time,"rotate=%d",count);
end
if(count==12) begin
$display($time,"intial position");
end
count=count+1;
if(count==24)
count=0;
end
end
end
end
endmodule
module Digital_Clock(
Clk_1sec,
reset,
seconds,
minutes);


input Clk_1sec;
input reset;

output [5:0] seconds;
output [5:0] minutes;

reg [5:0] seconds;
reg [5:0] minutes;
integer count=0;


always @(posedge(Clk_1sec) or posedge(reset))
begin
if(reset == 1'b1) begin

seconds = 0;
minutes = 0; end
else if(Clk_1sec == 1'b1) begin
seconds = seconds + 1;
if(seconds == 60) begin
seconds = 0;
minutes = minutes + 1;
if(minutes == 60) begin
minutes = 0;

VISVESWARAYA TECHNOLOGICAL UNIVERSITY

Dept.of EC, VCET, Puttur Page 14
$display($time,"time=%d",count);
if(minutes==0&&count<12) begin
motor a1(clk,hours,count);
$display($time,"rotate=%d",count);
end
if(count==12) begin
$display($time,"intial position");
end
count=count+1;
if(count==24)
count=0;
end
end
end
end
endmodule