CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Sequential Logic

Clock Gating with Test Enable Pin

MediumLogic CircuitBuild

Power-optimized ASICs aggressively shut down clocks to inactive blocks to save dynamic power. However, gating clocks during manufacturing tests prevents automatic test pattern generation (ATPG) tools from scanning data into downstream flip-flops.

The clock gating cell must pass the input clk to the output gclk when either the functional enable en or the test enable te is asserted. To prevent glitches on the clock line, the combined enable signal must be synchronized to the negative edge of clk before gating.

Assume en and te are stable before the rising edge of clk.

| clk | en | te | gclk | |-------|------|------|--------| | 0 | 0 | 0 | 0 | | 0 | 0 | 1 | 0 | | 0 | 1 | 0 | 0 | | 0 | 1 | 1 | 0 | | 1 | 0 | 0 | 0 | | 1 | 0 | 1 | 1 | | 1 | 1 | 0 | 1 | | 1 | 1 | 1 | 1 |

Constraints

  • Implement a glitch-free clock gate using a negative-edge transparent latch and an AND gate.
  • Combine the enable signals using a single OR gate before the latch.
  • Do not use edge-triggered flip-flops for the gating logic.

Topics

clockingpowerdft

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

Sign in to solveSee what Pro unlocks

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Related problems

  • 3-bit Ripple Counter from Toggle Flip-FlopsEasy
  • D Latch from a 2:1 MUXEasy
  • 2-bit Ring CounterEasy
  • T Flip-Flop from a D Flip-FlopEasy
  • Handshake Deadlock Due to Early ResetHard
  • Reconvergence of Individually Synchronized BitsHard
  • Debug: Asynchronous Clear GlitchHard
  • Clock Gate Enable Crossing DomainsHard

Browse all problems · Learning tracks