|
10资产
Quartus 16.1无法编译出计时器?
- ////
- Project Name: Test01;
- Function: Just test my FPGA board
- Version: 0.1
- Editor: Vincent Li
- Date: 2017-04-03
- clk=50MHz
- ///
- module test01( clk, nRST, LED );
- input clk,nRST;
- output[3:0] LED;
- parameter T500MS = 25'd24_999_999;
- reg[3:0] rLED;
- reg[24:0] Count;
- always@(posedge clk or negedge nRST)
- if(!nRST)
- Count <= 25'd0;
- else
- Count <= Count + 1'b1;
- always@(posedge clk or negedge nRST)
- if(!nRST)
- rLED <= 4'd1;
- else if(T500MS==25'd24_999_999)
- rLED <= {rLED[2:0],rLED[3]};
- assign LED = rLED;
- endmodule
复制代码 |
|