简单的LED实验失败....求助 啊啊啊
时间:10-02
整理:3721RD
点击:
请大神帮我看看啊
- module led(
- clk,rstn,led);
- input clk,rstn;
- output led;
- reg[11:0]count;
- parameter T200MS = 12'd4095;
- always@(posedge clk or negedge rstn)
- if(!rstn)
- count <= 12'd0;
- else if(count==T200MS)
- count <= 12'd0;
- else
- count <= count + 1'b1;
-
- assign led = ((count>12'd2048)&&(count<=T200MS))?1'b1:1'b0;
- endmodule
大哥怎么失败了?你的时钟是不是太快了?
是滴,后来发现是时钟太快了。谢谢啊
