Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Glitch-free clock-gate checks

Hardware interview practice

Glitch-free clock-gate checks

MediumLow PowerSystemVerilog

An integrated clock gate latches enable only while clk is low and forms gclk from clk AND the latched enable. A test override also enables the gate. Verify it with assertions and directed edge cases that catch runt or extra pulses.

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Starting point

Question code

input logic clk, rst_n, enable, test_enable;
output logic gclk;
Reviewed example

Work through one case

Input
gclk is high; enable falls halfway through the clk high phase
Expected output
gclk stays high until the matching clk falling edge, then remains low on later cycles.

The low-transparent enable latch cannot capture the disable until clk is low, so the active pulse completes at full width.

What to cover

Requirements

  1. Use effective_enable=enable OR test_enable, captured only while clk is low.
  2. Require every gclk edge to align with the corresponding clk edge and require gclk low whenever clk is low.
  3. A high-phase enable change must neither create nor cut the current gclk pulse.
  4. Disable checks in reset and require the reference latched enable to clear during a low phase before re-enabling checks.
Continue practicing

Related questions

Low PowerClassify CMOS power components→Low PowerChoose between an FPGA and a CPLD→Low PowerChoose a low-power technique for a short idle interval→
asic.fyi · Learn silicon end to end.info@asic.fyi