//===========================================================================
//Wire and reg declaration
//===========================================================================
wire SYSCLK_50M;
wire RST_B;
reg [5:0] LED_DATA;
wire PUSH_SW1;
//wire key;
//===========================================================================
//Wire and reg in the module
//===========================================================================
reg [23:0] TIME_CNT; //Count the time, everyone show 1ms.
reg [5:0] LED_DATA_N; //Next value of LED_DATA.
(
//Input ports.
SYSCLK_50M,
RST_B,
PUSH_SW1,
//Output ports.
LED_DATA
);
//===========================================================================
//Input and output declaration
//===========================================================================
input SYSCLK_50M; //System clock, 50MHz.
input RST_B; //Global reset, low active.
input PUSH_SW1; //G
//input key; //G
output [5:0] LED_DATA; //LED data output.
//===========================================================================
//Wire and reg declaration
//===========================================================================
wire SYSCLK_50M;
wire RST_B;
reg [5:0] LED_DATA;
wire PUSH_SW1;
//wire key;
//===========================================================================
//Wire and reg in the module
//===========================================================================
reg [23:0] TIME_CNT; //Count the time, everyone show 1ms.
reg [5:0] LED_DATA_N; //Next value of LED_DATA.
wire [23:0] TIME_CNT_N; //Next value of TIME_CNT.
一周热门 更多>