always@(posedge SW1_LED_CLK0) //计数
begin
if(SYS_Reset == 1'b0 || JTAG_SYS_Reset==1'b0 ||SW1_LED_STB0==1 )
cycle0 <= 0;
else
begin
if(cycle0 ==8'b11111111)
cycle0 <= 0;
else
cycle0<=cycle0+1;
end
end
always@(posedge SW1_LED_CLK0)
begin
if(SYS_Reset == 1'b0 || JTAG_SYS_Reset==1'b0)
begin
Link48 <= 1'b0;
Link49 <= 1'b0;
end
else
begin
case(cycle0)
8'b11011011: //219,link
Link48<=SW1_LED_Data0;
8'b11101111: //239,link
Link49<=SW1_LED_Data0;
default:
begin
Link48<=Link48;
Link49<=Link49;
end
endcase
end
end