module top ( input logic clk, input logic rst, output logic [1:0] count ); // Active-high synchronous reset: sampled only at the rising clock edge. always_ff @(posedge clk) if (rst) count <= 2'b00; else count <= count + 2'b01; endmodule