Four register banks share a clock. Decide which ones get a clock gate, and meet the power budget without an unsafe clock.
Hardware context: Four register banks with different widths and enable duties. Gate only the banks where a clock gate saves more than it burns.
A control block has four register banks on one 10 ns clock. Bank a has 16 flops and loads in 10 % of the cycles. Bank b has 16 flops and loads in every cycle. Bank c is a single flop that loads in half of the cycles. Bank d has 8 flops and loads in half of the cycles.
Today every bank uses enable muxes, and the clock power of the block is 212.2935 µW. The budget is 123 µW.
For each bank choose its build. "mux" keeps the enable muxes. "icg" uses one clock-gating cell. "and" puts a bare AND gate on the clock. A clock driven by a bare AND gate can glitch, so none is allowed.
Requirements
| Requirement | Limit | Unit |
|---|---|---|
| Clocks driven by a bare AND gate | = 0 | count |
Budget: Clock power of the block ≤ 123 µW. Smaller is better after every requirement passes.
Recorded experiments: Recorded build-time OpenSTA 3.1.0 report_power on sky130_fd_sc_hd at tt, 25 °C, 1.8 V, with a 10 ns clock and the stated activity. These are vectorless estimates before clock tree synthesis. No tool runs during grading. Circuit: a clkbuf_4 clock root and four banks of dfxtp_1 flops, built with mux2_1 cells, one dlclkp_1 or one and2_1 per bank. Data inputs are held still, so the power is clock power.
Full specification
| JSON field | Allowed values | Meaning |
|---|---|---|
| bank_a | "mux", "icg", "and" | 16 flops; enable is 1 for 10 % of the time. |
| bank_b | "mux", "icg", "and" | 16 flops; enable is 1 for 100 % of the time. |
| bank_c | "mux", "icg", "and" | 1 flop; enable is 1 for 50 % of the time. |
| bank_d | "mux", "icg", "and" | 8 flops; enable is 1 for 50 % of the time. |
Recorded build-time OpenSTA 3.1.0 report_power on sky130_fd_sc_hd at tt, 25 °C, 1.8 V, with a 10 ns clock and the stated activity. These are vectorless estimates before clock tree synthesis. No tool runs during grading. Circuit: a clkbuf_4 clock root and four banks of dfxtp_1 flops, built with mux2_1 cells, one dlclkp_1 or one and2_1 per bank. Data inputs are held still, so the power is clock power.
Numeric checks use inclusive bounds. Only the documented fields are accepted.
Examples
Example 1
Gate Nothing- Input
{ "bank_a": "mux", "bank_b": "mux", "bank_c": "mux", "bank_d": "mux" }- Output
Clocks driven by a bare AND gate: 0 Clock power of the block: 212.2935 µW
Both the budget and the safety rule apply.
Example 2
Gate Everything- Input
{ "bank_a": "icg", "bank_b": "icg", "bank_c": "icg", "bank_d": "icg" }- Output
Clocks driven by a bare AND gate: 0 Clock power of the block: 130.4134 µW
Both the budget and the safety rule apply.
Example 3
AND Gates on the Two Idle Banks- Input
{ "bank_a": "and", "bank_b": "mux", "bank_c": "mux", "bank_d": "and" }- Output
Clocks driven by a bare AND gate: 2 Clock power of the block: 114.5054 µW
Both the budget and the safety rule apply.
Submission Rules
- Submit one JSON object with every documented field.
- Run checks your submission against the recorded measurements. Submit applies the same requirements and records the result.
- The numbers are estimates for one library corner and one activity. Passing does not sign off the power of a chip.
Hints
Hint 1
A clock gate has its own clock pin. It must save more than it burns.
Hint 2
Ask of each bank: how wide is it, and how often is it idle?
Hint 3
A bank that loads in every cycle never lets its gate close.
What is checked: Recorded build-time OpenSTA 3.1.0 report_power on sky130_fd_sc_hd at tt, 25 °C, 1.8 V, with a 10 ns clock and the stated activity. These are vectorless estimates before clock tree synthesis. No tool runs during grading. Circuit: a clkbuf_4 clock root and four banks of dfxtp_1 flops, built with mux2_1 cells, one dlclkp_1 or one and2_1 per bank. Data inputs are held still, so the power is clock power.
Run and Submit use the same measured requirements. Run is a preview; Submit records an attempt. No physical tool runs during this exercise; the records come from the pinned build-time experiments.
More problems on this topic