//--------------1ms计数器----------------//
always@(posedge clk, negedge rst)
begin
if(!rst)
begin
cnt0<='b0;
cnt_100ms<=0; //------100ms计数器----------------------------//
led_out<='b001;
end
//-------------每100ms移位一次-----------------//
else if(cnt_100ms==7'd99)
begin
if(led_out==3'b000)//判断是否移到末位//
led_out<=3'b001;
else led_out<={led_out[1:0],1'b0};
end
else if (cnt0==T1ms)
begin
cnt0<='b0;
cnt_100ms<=cnt_100ms+1;
end
else cnt0<=cnt0+1;
quartus 仿真没有错误 但是modelsim错误 : ** Warning: (vsim-3009) [TSCALE] - Module 'flash_mod' does not have a `timescale directive in effect, but previous modules do.
# Region: /waterlap_tb/i1/i1
# Loading work.run_mod
# ** Warning: (vsim-3009) [TSCALE] - Module 'run_mod' does not have a `timescale directive in effect, but previous modules do.
# Region: /waterlap_tb/i1/i2
# WARNING: No extended dataflow License exists