[FPGA] FND_Counter 리셋 추가 구현
2021. 11. 10. 00:04ㆍ코딩/FPGA
counter_10000v
`timescale 1ns / 1ps
module counter_10000(
input i_rst_sw,
input i_100hz_clk,
output [13:0] o_fndCnt
);
reg [13:0] r_fndCnt = 0;
always @(posedge i_100hz_clk or negedge i_rst_sw ) begin
if (i_rst_sw == 0)
r_fndCnt = 0;
else
r_fndCnt <= (r_fndCnt+1) % 10000;
end
'코딩 > FPGA' 카테고리의 다른 글
[FPGA] Stopwatch + Clock + LED bar (0) | 2021.11.10 |
---|---|
[FPGA] Watch + Fan + FND 구현 (0) | 2021.11.10 |
[FPGA] cnt4 출력값 7-segment LED에 표시하기 (0) | 2021.11.10 |
[FPGA] cnt_priority 설계 (0) | 2021.11.10 |
[FPGA] mux4b 설계 (0) | 2021.11.10 |