0/70 pts
2. Counter & Rollover
EasyDigital Design~35 minbadge: Clocked In
Your first clocked design — an 8-bit counter with synchronous reset, enable and a wrap pulse.
Task 1 · Count with reset and enable
Fill in the always @(posedge clk) block. Priority matters: reset first, then enable.
if (rst) count <= 8'd0;
else if (en) count <= count + 8'd1;
Use non-blocking assignment (<=) for everything inside a clocked block.
○ reset, enable, hold25 pts
10 steps · module
counter8design.v
Bench ready. Edit design.v and run a check (Ctrl/⌘+Enter runs the current task).