Sequential always Blocks
`always @(posedge clk)` / `always_ff` blocks model flip-flops.
Easy
always_ff @(posedge clk or negedge rst_n)
if (!rst_n) count <= '0; else count <= count + 1;
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.