SystemVerilog · Easy · SystemVerilog

Clock and Reset Generator

Create reusable testbench clock and reset stimulus.

Task

Generate a 10 ns clock period and hold active-high reset for three rising edges before deasserting it.

Examples

Constraints

What this problem is testing

The interviewer is usually testing language semantics as much as syntax: driver intent, scheduling, type behavior, interface directionality, and whether the construct communicates hardware intent clearly.

Interview habit: before coding, state reset behavior, the state that must be stored, and the conditions that update each output.

Verification plan

Edge cases worth testing

Common mistakes

Interview follow-up questions

Concepts to review

testbench, clock, reset

Open Clock and Reset Generator in the HDLForge interactive editor.

Related problems

Explore the SystemVerilog Practice & Interview Preparation hub.

Continue practising