data/full_repos/permissive/126912904/COADEXP8/COADEXP8.v
'utf-8' codec can't decode byte 0xca in position 36: invalid continuation byte
data/verilator_xmls/2283cfdc-eeea-49cc-8b86-d9d5fa4a2ed8.xml
module divide_led(
input sys_clk,
output wire [1:0] led
);
parameter HW=8;
parameter LW=8;
reg sys_clk_out;
reg [9:0] count1;
reg state;
always@(posedge sys_clk )
begin
case(state)
0: if(count1<LW-1)
begin
count1<=count1+1'd1;
state<=0;
end
else
begin
count1<=0;
sys_clk_out<=1'b1;
state<=1;
end
1: if(count1<HW-1)
begin
count1<=count1+1'd1;
state<=1;
end
else
begin
count1<=0;
sys_clk_out<=1'b0;
state<=0;
end
default:state<=0;
endcase
end
assign led[0]=sys_clk;
assign led[1]=sys_clk_out;
endmodule
module divide_led(
input sys_clk,
output wire [1:0] led
);

parameter HW=8;
parameter LW=8;
reg sys_clk_out;
reg [9:0] count1;
reg state;
always@(posedge sys_clk )
begin
case(state)
0: if(count1<LW-1)
begin
count1<=count1+1'd1;
state<=0;
end
else
begin
count1<=0;
sys_clk_out<=1'b1;
state<=1;
end
1: if(count1<HW-1)
begin
count1<=count1+1'd1;
state<=1;
end
else
begin
count1<=0;
sys_clk_out<=1'b0;
state<=0;
end
default:state<=0;
endcase
end
assign led[0]=sys_clk;
assign led[1]=sys_clk_out;
endmodule