Clock Gating That Pays
Decide where a clock gate saves power, where it saves nothing, and where it costs more than it saves.
You Will Be Able To
- Read from a power report what a clock gate saves at each enable duty.
- Weigh the power of the gate itself against the register bank it serves.
- Write RTL that a tool can gate, and check that it did.
- Lesson
- W2.1
- Time
- 25 min
- Runs on
- OpenROAD
- Check
- 5 questions
A multiply-accumulate block waits for data nine cycles in ten. Its registers already hold their values through an enable, so the team expected a tiny idle power. The report says 214 µW with the block doing nothing.
| Design | Working in every cycle | Idle | Idle, as a share of working |
|---|---|---|---|
Enable muxes (mac8, 447 cells) | 1.182 mW | 214 µW | 18.1 % |
One clock gate (mac8g, 354 cells) | 1.090 mW | 3.21 µW | 0.3 % |
OpenSTA report_power, 10 ns clock, data inputs toggling 0.2 times per cycle. "Idle" holds en at 0.
The same block with one clock gate idles at 3.21 µW: 67 times less.
An Enable Mux Holds the Data While the Clock Runs
- Clock / reset
- Storage
- Clock
- Enable logic
With
enat 0 the enable logic feeds each flop its own output. The data holds. The clock still toggles 52 clock pins, and that costs 214 µW. - One clock gate
With
enat 0 the gate holds its output low. No flop sees an edge. Only the clock pin of the gate itself toggles: 2.65 µW.
Read the diagram as text
- clk: Toggles in every cycle
- 52 flops: Behind enable logic
- clk: Toggles in every cycle
- Clock gate: One dlclkp_1 cell
- 52 flops: No muxes
- clk → 52 flops: every edge reaches every flop
- clk → Clock gate: one clock pin
- Clock gate → 52 flops: only while en is 1
The inside of the gate, a latch and an AND, is lesson R2.3. Its timing check is lesson L5.6.
Lesson W1.2 found the idle power of this block in one place: the Internal column of the Sequential row. That is the clock pin of every flop. An enable mux cannot remove it, because the mux sits on the data input.
A clock gate sits on the clock. One cell stops the clock for a whole bank of flops. The muxes are no longer needed, so the design also gets smaller.
Before: a flop that reloads itself
sky130_fd_sc_hd__mux2_1 _680_ (
.A0(\rb[6] ), .A1(b[6]),
.S(en), .X(_012_));
sky130_fd_sc_hd__dfrtp_1 _790_ (
.CLK(clk), .D(_012_),
.Q(\rb[6] ), .RESET_B(rst_n));
The flop takes clk directly. When en is 0 it reloads its own value in every cycle.
After: one gate, plain flops
sky130_fd_sc_hd__dlclkp_1 _603_ (
.CLK(clk), .GATE(en),
.GCLK(_285_));
sky130_fd_sc_hd__dfrtp_1 _604_ (
.CLK(_285_), .D(b[6]),
.Q(\rb[6] ), .RESET_B(rst_n));
All 52 flops take the gated clock _285_. The data input goes straight to the flop.
Bit 6 of register rb in the two netlists. In the first, 17 mux2_1 cells and other gates carry the enable for 52 flops. Yosys made the second one with its clockgate pass, from the same RTL.
What the Gate Saves at Each Duty
The duty of the enable is the share of time it is 1. It decides how much a clock gate saves.
Duty of en | One clock gate (mac8g) | Clock row | Sequential row |
|---|---|---|---|
| 1.0 (always working) | 1.090 mW | 36.1 µW | 349 µW |
| 0.5 | 0.806 mW | 19.9 µW | 192 µW |
| 0.1 | 0.349 mW | 6.50 µW | 49.9 µW |
| 0.0 (idle) | 3.21 µW | 2.65 µW | 555 nW |
The gated block at four duties. The clock gate and the clock net that it drives are in the Clock row.
Power falls with the duty, because the flops and the logic behind them toggle only while the gate is open. At a duty of 0.1 the block burns 0.349 mW.
Now compare the two designs when they work in every cycle. The gated one burns 1.090 mW against 1.182 mW. That is only 7.8 % less. The gate never closes, so the saving comes from the missing muxes alone.
So a clock gate pays when the block is often idle. For a block that works in every cycle it saves very little.
The Gate Has a Cost: The Smallest Bank Worth Gating
A clock gate is a cell with its own clock pin and its own latch. It burns power in every cycle, even when the bank behind it is idle. So a gate must save more than it burns.
The runs below use one register bank behind a clock buffer. The enable has a duty of 0.5, and the data inputs are held still. So only the clock power differs.
| Flops in the bank | Enable muxes | One clock gate | Gating |
|---|---|---|---|
| 1 | 9.26 µW | 12.0 µW | costs 30 % more |
| 2 | 14.2 µW | 14.4 µW | costs 1.6 % more |
| 4 | 24.1 µW | 19.2 µW | saves 20 % |
| 16 | 83.0 µW | 48.0 µW | saves 42 % |
Total power of the bank, its clock buffer and its gate. 10 ns clock, enable duty 0.5.
For one flop the gate costs more than it saves. For two flops the two designs are almost equal. From four flops on the gate wins, and at sixteen it saves 42 %.
The duty matters as much as the width. Hold the enable of the sixteen-flop bank at 1. The gated bank now burns 85.4 µW against 79.7 µW: the gate only adds its own power.
Tools know this. The clockgate pass of Yosys has an option, -min_net_size, that gates only groups of at least that many flops.
Where Clock Gates Come From
You do not place clock gates by hand. You write a register with an enable, and the synthesis tool does the rest.
Write the enable in the RTL
Use
if (en) q <= d;inside a clocked block. The register holds whenenis 0.The tool groups registers
It collects the flops that share one clock and one enable. Each group becomes one clock gate and plain flops.
The tool skips small groups
A group below the minimum size keeps its enable muxes, because a gate would cost more than it saves.
Check the result
Count the clock-gating cells in the netlist, and run the power report at the duty you expect.
A register with no enable loads in every cycle. The tool has no condition to gate it with. If the register could hold, the RTL must say when.
A design that will be scan-tested needs one more pin. In scan shift every flop must be clocked, whatever the enable says. This library has a second clock gate for that, sdlclkp, with a scan-enable input.
Asked in interviews
Why does clock gating save power?
A flop burns internal power at its clock pin in every cycle, even when its data holds. A clock gate stops the clock for a whole bank, so that power disappears while the bank is idle. Measured here: 214 µW idle without the gate and 3.21 µW with it.
When is clock gating not worth it?
When the bank is small or its enable is almost always 1. The gate has its own clock pin and burns power in every cycle. Here a gated one-flop bank burns more than a plain one, and a bank that is always enabled gains nothing.
How does clock gating get into a design?
The designer writes registers with enables. The synthesis tool groups the flops that share a clock and an enable. It replaces their enable muxes with one integrated clock-gating cell. It skips groups below a minimum size.
Try It
This lab places the gated block and builds its clock tree, then runs report_power. Open the Clock tree stage and read the total power and the clock power.
The run cannot set the duty of en: it uses the default activity of OpenSTA for every input. It reports 0.6746 mW in total and 0.0722 mW in the clock network.
The enable-mux block through the same flow reports 1.3224 mW in total and 0.1284 mW in the clock network. Its tree must reach all 52 flops in every cycle.
Open Layout and find the clock gate in the tree. Then change the period to 20 and predict both numbers before you run.
Run to draw the timing paths here.
Run the flow to see each stage of the layout here.
clock tree totalPower 0.6746 clock tree clockPower 0.0722Read the netlist: mac.v (the bundled design mac8g)
/* Generated by Yosys 0.70+290 (git sha1 e8968a4f7, Release, Clang /usr/bin/clang++ 21.1.8) */
module mac(clk, rst_n, en, a, b, acc);
input clk;
wire clk;
input rst_n;
wire rst_n;
input en;
wire en;
input [7:0] a;
wire [7:0] a;
input [7:0] b;
wire [7:0] b;
output [19:0] acc;
wire [19:0] acc;
wire _000_;
wire _001_;
wire _002_;
wire _003_;
wire _004_;
wire _005_;
wire _006_;
wire _007_;
wire _008_;
wire _009_;
wire _010_;
wire _011_;
wire _012_;
wire _013_;
wire _014_;
wire _015_;
wire _016_;
wire _017_;
wire _018_;
wire _019_;
wire _020_;
wire _021_;
wire _022_;
wire _023_;
wire _024_;
wire _025_;
wire _026_;
wire _027_;
wire _028_;
wire _029_;
wire _030_;
wire _031_;
wire _032_;
wire _033_;
wire _034_;
wire _035_;
wire _036_;
wire _037_;
wire _038_;
wire _039_;
wire _040_;
wire _041_;
wire _042_;
wire _043_;
wire _044_;
wire _045_;
wire _046_;
wire _047_;
wire _048_;
wire _049_;
wire _050_;
wire _051_;
wire _052_;
wire _053_;
wire _054_;
wire _055_;
wire _056_;
wire _057_;
wire _058_;
wire _059_;
wire _060_;
wire _061_;
wire _062_;
wire _063_;
wire _064_;
wire _065_;
wire _066_;
wire _067_;
wire _068_;
wire _069_;
wire _070_;
wire _071_;
wire _072_;
wire _073_;
wire _074_;
wire _075_;
wire _076_;
wire _077_;
wire _078_;
wire _079_;
wire _080_;
wire _081_;
wire _082_;
wire _083_;
wire _084_;
wire _085_;
wire _086_;
wire _087_;
wire _088_;
wire _089_;
wire _090_;
wire _091_;
wire _092_;
wire _093_;
wire _094_;
wire _095_;
wire _096_;
wire _097_;
wire _098_;
wire _099_;
wire _100_;
wire _101_;
wire _102_;
wire _103_;
wire _104_;
wire _105_;
wire _106_;
wire _107_;
wire _108_;
wire _109_;
wire _110_;
wire _111_;
wire _112_;
wire _113_;
wire _114_;
wire _115_;
wire _116_;
wire _117_;
wire _118_;
wire _119_;
wire _120_;
wire _121_;
wire _122_;
wire _123_;
wire _124_;
wire _125_;
wire _126_;
wire _127_;
wire _128_;
wire _129_;
wire _130_;
wire _131_;
wire _132_;
wire _133_;
wire _134_;
wire _135_;
wire _136_;
wire _137_;
wire _138_;
wire _139_;
wire _140_;
wire _141_;
wire _142_;
wire _143_;
wire _144_;
wire _145_;
wire _146_;
wire _147_;
wire _148_;
wire _149_;
wire _150_;
wire _151_;
wire _152_;
wire _153_;
wire _154_;
wire _155_;
wire _156_;
wire _157_;
wire _158_;
wire _159_;
wire _160_;
wire _161_;
wire _162_;
wire _163_;
wire _164_;
wire _165_;
wire _166_;
wire _167_;
wire _168_;
wire _169_;
wire _170_;
wire _171_;
wire _172_;
wire _173_;
wire _174_;
wire _175_;
wire _176_;
wire _177_;
wire _178_;
wire _179_;
wire _180_;
wire _181_;
wire _182_;
wire _183_;
wire _184_;
wire _185_;
wire _186_;
wire _187_;
wire _188_;
wire _189_;
wire _190_;
wire _191_;
wire _192_;
wire _193_;
wire _194_;
wire _195_;
wire _196_;
wire _197_;
wire _198_;
wire _199_;
wire _200_;
wire _201_;
wire _202_;
wire _203_;
wire _204_;
wire _205_;
wire _206_;
wire _207_;
wire _208_;
wire _209_;
wire _210_;
wire _211_;
wire _212_;
wire _213_;
wire _214_;
wire _215_;
wire _216_;
wire _217_;
wire _218_;
wire _219_;
wire _220_;
wire _221_;
wire _222_;
wire _223_;
wire _224_;
wire _225_;
wire _226_;
wire _227_;
wire _228_;
wire _229_;
wire _230_;
wire _231_;
wire _232_;
wire _233_;
wire _234_;
wire _235_;
wire _236_;
wire _237_;
wire _238_;
wire _239_;
wire _240_;
wire _241_;
wire _242_;
wire _243_;
wire _244_;
wire _245_;
wire _246_;
wire _247_;
wire _248_;
wire _249_;
wire _250_;
wire _251_;
wire _252_;
wire _253_;
wire _254_;
wire _255_;
wire _256_;
wire _257_;
wire _258_;
wire _259_;
wire _260_;
wire _261_;
wire _262_;
wire _263_;
wire _264_;
wire _265_;
wire _266_;
wire _267_;
wire _268_;
wire _269_;
wire _270_;
wire _271_;
wire _272_;
wire _273_;
wire _274_;
wire _275_;
wire _276_;
wire _277_;
wire _278_;
wire _279_;
wire _280_;
wire _281_;
wire _282_;
wire _283_;
wire _284_;
wire _285_;
wire _286_;
wire _287_;
wire _288_;
wire _289_;
wire _290_;
wire _291_;
wire _292_;
wire _293_;
wire _294_;
wire _295_;
wire _296_;
wire _297_;
wire _298_;
wire _299_;
wire _300_;
wire _301_;
wire \p[0] ;
wire \p[10] ;
wire \p[11] ;
wire \p[12] ;
wire \p[13] ;
wire \p[14] ;
wire \p[15] ;
wire \p[1] ;
wire \p[2] ;
wire \p[3] ;
wire \p[4] ;
wire \p[5] ;
wire \p[6] ;
wire \p[7] ;
wire \p[8] ;
wire \p[9] ;
wire \ra[0] ;
wire \ra[1] ;
wire \ra[2] ;
wire \ra[3] ;
wire \ra[4] ;
wire \ra[5] ;
wire \ra[6] ;
wire \ra[7] ;
wire \rb[0] ;
wire \rb[1] ;
wire \rb[2] ;
wire \rb[3] ;
wire \rb[4] ;
wire \rb[5] ;
wire \rb[6] ;
wire \rb[7] ;
sky130_fd_sc_hd__and2_0 _302_ (
.A(\p[15] ),
.B(acc[15]),
.X(_254_)
);
sky130_fd_sc_hd__nor2_1 _303_ (
.A(\p[15] ),
.B(acc[15]),
.Y(_255_)
);
sky130_fd_sc_hd__and2_0 _304_ (
.A(\p[11] ),
.B(acc[11]),
.X(_264_)
);
sky130_fd_sc_hd__nor2b_1 _305_ (
.A(_060_),
.B_N(_070_),
.Y(_071_)
);
sky130_fd_sc_hd__xor2_1 _306_ (
.A(_060_),
.B(_070_),
.X(_072_)
);
sky130_fd_sc_hd__maj3_1 _307_ (
.A(_049_),
.B(_055_),
.C(_056_),
.X(_073_)
);
sky130_fd_sc_hd__xnor2_1 _308_ (
.A(_063_),
.B(_072_),
.Y(_074_)
);
sky130_fd_sc_hd__maj3_1 _309_ (
.A(_063_),
.B(_072_),
.C(_073_),
.X(_075_)
);
sky130_fd_sc_hd__o21ai_0 _310_ (
.A1(_064_),
.A2(_067_),
.B1(_068_),
.Y(_076_)
);
sky130_fd_sc_hd__a22oi_1 _311_ (
.A1(\rb[7] ),
.A2(\ra[6] ),
.B1(\ra[7] ),
.B2(\rb[6] ),
.Y(_077_)
);
sky130_fd_sc_hd__a31oi_1 _312_ (
.A1(\rb[7] ),
.A2(\ra[7] ),
.A3(_066_),
.B1(_077_),
.Y(_078_)
);
sky130_fd_sc_hd__xnor2_1 _313_ (
.A(_071_),
.B(_078_),
.Y(_079_)
);
sky130_fd_sc_hd__xor2_1 _314_ (
.A(_076_),
.B(_079_),
.X(_080_)
);
sky130_fd_sc_hd__nor2_1 _315_ (
.A(\p[11] ),
.B(acc[11]),
.Y(_000_)
);
sky130_fd_sc_hd__nor2_1 _316_ (
.A(_075_),
.B(_080_),
.Y(_081_)
);
sky130_fd_sc_hd__nand2_1 _317_ (
.A(\rb[1] ),
.B(\ra[6] ),
.Y(_082_)
);
sky130_fd_sc_hd__and2_0 _318_ (
.A(\rb[5] ),
.B(\ra[4] ),
.X(_083_)
);
sky130_fd_sc_hd__nand2_1 _319_ (
.A(\rb[4] ),
.B(\ra[5] ),
.Y(_084_)
);
sky130_fd_sc_hd__nand2_1 _320_ (
.A(_050_),
.B(_084_),
.Y(_085_)
);
sky130_fd_sc_hd__nand2_1 _321_ (
.A(\rb[3] ),
.B(\ra[5] ),
.Y(_086_)
);
sky130_fd_sc_hd__xnor3_1 _322_ (
.A(_050_),
.B(_083_),
.C(_084_),
.X(_087_)
);
sky130_fd_sc_hd__nand2_1 _323_ (
.A(_082_),
.B(_087_),
.Y(_088_)
);
sky130_fd_sc_hd__nand3_1 _324_ (
.A(\rb[2] ),
.B(\ra[7] ),
.C(_088_),
.Y(_089_)
);
sky130_fd_sc_hd__xnor2_1 _325_ (
.A(_053_),
.B(_054_),
.Y(_090_)
);
sky130_fd_sc_hd__and2_0 _326_ (
.A(\p[10] ),
.B(acc[10]),
.X(_001_)
);
sky130_fd_sc_hd__nand2_1 _327_ (
.A(\ra[3] ),
.B(\rb[7] ),
.Y(_091_)
);
sky130_fd_sc_hd__a2bb2oi_1 _328_ (
.A1_N(_051_),
.A2_N(_086_),
.B1(_085_),
.B2(_083_),
.Y(_092_)
);
sky130_fd_sc_hd__nand2_1 _329_ (
.A(\rb[6] ),
.B(\ra[4] ),
.Y(_093_)
);
sky130_fd_sc_hd__xnor2_1 _330_ (
.A(_092_),
.B(_093_),
.Y(_094_)
);
sky130_fd_sc_hd__xnor2_1 _331_ (
.A(_091_),
.B(_094_),
.Y(_095_)
);
sky130_fd_sc_hd__maj3_1 _332_ (
.A(_089_),
.B(_090_),
.C(_095_),
.X(_096_)
);
sky130_fd_sc_hd__xnor2_1 _333_ (
.A(_058_),
.B(_062_),
.Y(_097_)
);
sky130_fd_sc_hd__clkinv_1 _334_ (
.A(_097_),
.Y(_098_)
);
sky130_fd_sc_hd__maj3_1 _335_ (
.A(_091_),
.B(_092_),
.C(_093_),
.X(_099_)
);
sky130_fd_sc_hd__xnor2_1 _336_ (
.A(_096_),
.B(_097_),
.Y(_100_)
);
sky130_fd_sc_hd__nor2_1 _337_ (
.A(\p[10] ),
.B(acc[10]),
.Y(_002_)
);
sky130_fd_sc_hd__maj3_1 _338_ (
.A(_096_),
.B(_098_),
.C(_099_),
.X(_101_)
);
sky130_fd_sc_hd__xor2_1 _339_ (
.A(_073_),
.B(_074_),
.X(_102_)
);
sky130_fd_sc_hd__nand2b_1 _340_ (
.A_N(_101_),
.B(_102_),
.Y(_103_)
);
sky130_fd_sc_hd__nand2_1 _341_ (
.A(\rb[1] ),
.B(\ra[7] ),
.Y(_104_)
);
sky130_fd_sc_hd__nand2_1 _342_ (
.A(\rb[0] ),
.B(\ra[6] ),
.Y(_105_)
);
sky130_fd_sc_hd__nand2_1 _343_ (
.A(\rb[0] ),
.B(\ra[7] ),
.Y(_106_)
);
sky130_fd_sc_hd__nand2_1 _344_ (
.A(\rb[2] ),
.B(\ra[5] ),
.Y(_107_)
);
sky130_fd_sc_hd__maj3_1 _345_ (
.A(_082_),
.B(_106_),
.C(_107_),
.X(_108_)
);
sky130_fd_sc_hd__nand2_1 _346_ (
.A(\rb[2] ),
.B(\ra[6] ),
.Y(_109_)
);
sky130_fd_sc_hd__xnor2_1 _347_ (
.A(_104_),
.B(_109_),
.Y(_110_)
);
sky130_fd_sc_hd__nor2_1 _348_ (
.A(_001_),
.B(_002_),
.Y(_003_)
);
sky130_fd_sc_hd__nand2_1 _349_ (
.A(\rb[5] ),
.B(\ra[3] ),
.Y(_111_)
);
sky130_fd_sc_hd__nand2_1 _350_ (
.A(\rb[4] ),
.B(\ra[4] ),
.Y(_112_)
);
sky130_fd_sc_hd__nand2_1 _351_ (
.A(\rb[3] ),
.B(\ra[4] ),
.Y(_113_)
);
sky130_fd_sc_hd__xor3_1 _352_ (
.A(_086_),
.B(_111_),
.C(_112_),
.X(_114_)
);
sky130_fd_sc_hd__maj3_1 _353_ (
.A(_108_),
.B(_110_),
.C(_114_),
.X(_115_)
);
sky130_fd_sc_hd__nand3_1 _354_ (
.A(\rb[2] ),
.B(\ra[7] ),
.C(_082_),
.Y(_116_)
);
sky130_fd_sc_hd__xnor2_1 _355_ (
.A(_087_),
.B(_116_),
.Y(_117_)
);
sky130_fd_sc_hd__nand2_1 _356_ (
.A(\ra[2] ),
.B(\rb[7] ),
.Y(_118_)
);
sky130_fd_sc_hd__maj3_1 _357_ (
.A(_086_),
.B(_111_),
.C(_112_),
.X(_119_)
);
sky130_fd_sc_hd__nand2_1 _358_ (
.A(\rb[6] ),
.B(\ra[3] ),
.Y(_120_)
);
sky130_fd_sc_hd__nand2_1 _359_ (
.A(\p[9] ),
.B(acc[9]),
.Y(_004_)
);
sky130_fd_sc_hd__xnor2_1 _360_ (
.A(_119_),
.B(_120_),
.Y(_121_)
);
sky130_fd_sc_hd__xnor2_1 _361_ (
.A(_118_),
.B(_121_),
.Y(_122_)
);
sky130_fd_sc_hd__xor2_1 _362_ (
.A(_115_),
.B(_117_),
.X(_123_)
);
sky130_fd_sc_hd__maj3_1 _363_ (
.A(_115_),
.B(_117_),
.C(_122_),
.X(_124_)
);
sky130_fd_sc_hd__xor3_1 _364_ (
.A(_089_),
.B(_090_),
.C(_095_),
.X(_125_)
);
sky130_fd_sc_hd__maj3_1 _365_ (
.A(_118_),
.B(_119_),
.C(_120_),
.X(_126_)
);
sky130_fd_sc_hd__xor2_1 _366_ (
.A(_124_),
.B(_125_),
.X(_127_)
);
sky130_fd_sc_hd__maj3_1 _367_ (
.A(_124_),
.B(_125_),
.C(_126_),
.X(_128_)
);
sky130_fd_sc_hd__xor2_1 _368_ (
.A(_099_),
.B(_100_),
.X(_129_)
);
sky130_fd_sc_hd__nand2_1 _369_ (
.A(\rb[0] ),
.B(\ra[5] ),
.Y(_130_)
);
sky130_fd_sc_hd__lpflow_inputiso1p_1 _370_ (
.A(\p[9] ),
.SLEEP(acc[9]),
.X(_005_)
);
sky130_fd_sc_hd__nand2_1 _371_ (
.A(\rb[1] ),
.B(\ra[5] ),
.Y(_131_)
);
sky130_fd_sc_hd__nand2_1 _372_ (
.A(\rb[2] ),
.B(\ra[4] ),
.Y(_132_)
);
sky130_fd_sc_hd__maj3_1 _373_ (
.A(_105_),
.B(_131_),
.C(_132_),
.X(_133_)
);
sky130_fd_sc_hd__clkinv_1 _374_ (
.A(_133_),
.Y(_134_)
);
sky130_fd_sc_hd__xnor3_1 _375_ (
.A(_082_),
.B(_106_),
.C(_107_),
.X(_135_)
);
sky130_fd_sc_hd__nand2_1 _376_ (
.A(\ra[2] ),
.B(\rb[5] ),
.Y(_136_)
);
sky130_fd_sc_hd__nand2_1 _377_ (
.A(\rb[4] ),
.B(\ra[3] ),
.Y(_137_)
);
sky130_fd_sc_hd__nand2_1 _378_ (
.A(\rb[3] ),
.B(\ra[3] ),
.Y(_138_)
);
sky130_fd_sc_hd__xnor3_1 _379_ (
.A(_113_),
.B(_136_),
.C(_137_),
.X(_139_)
);
sky130_fd_sc_hd__maj3_1 _380_ (
.A(_134_),
.B(_135_),
.C(_139_),
.X(_140_)
);
sky130_fd_sc_hd__nand2_1 _381_ (
.A(\p[8] ),
.B(acc[8]),
.Y(_006_)
);
sky130_fd_sc_hd__xnor3_1 _382_ (
.A(_108_),
.B(_110_),
.C(_114_),
.X(_141_)
);
sky130_fd_sc_hd__nand2_1 _383_ (
.A(\ra[1] ),
.B(\rb[7] ),
.Y(_142_)
);
sky130_fd_sc_hd__maj3_1 _384_ (
.A(_113_),
.B(_136_),
.C(_137_),
.X(_143_)
);
sky130_fd_sc_hd__nand2_1 _385_ (
.A(\ra[2] ),
.B(\rb[6] ),
.Y(_144_)
);
sky130_fd_sc_hd__xor2_1 _386_ (
.A(_143_),
.B(_144_),
.X(_145_)
);
sky130_fd_sc_hd__xnor2_1 _387_ (
.A(_142_),
.B(_145_),
.Y(_146_)
);
sky130_fd_sc_hd__xor2_1 _388_ (
.A(_140_),
.B(_141_),
.X(_147_)
);
sky130_fd_sc_hd__maj3_1 _389_ (
.A(_140_),
.B(_141_),
.C(_146_),
.X(_148_)
);
sky130_fd_sc_hd__xnor2_1 _390_ (
.A(_122_),
.B(_123_),
.Y(_149_)
);
sky130_fd_sc_hd__maj3_1 _391_ (
.A(_142_),
.B(_143_),
.C(_144_),
.X(_150_)
);
sky130_fd_sc_hd__xnor2_1 _392_ (
.A(\p[8] ),
.B(acc[8]),
.Y(_007_)
);
sky130_fd_sc_hd__xor2_1 _393_ (
.A(_148_),
.B(_149_),
.X(_151_)
);
sky130_fd_sc_hd__lpflow_isobufsrc_1 _394_ (
.A(_151_),
.SLEEP(_150_),
.X(_152_)
);
sky130_fd_sc_hd__a21oi_1 _395_ (
.A1(_148_),
.A2(_149_),
.B1(_152_),
.Y(_153_)
);
sky130_fd_sc_hd__xor2_1 _396_ (
.A(_126_),
.B(_127_),
.X(_154_)
);
sky130_fd_sc_hd__nand2_1 _397_ (
.A(\rb[1] ),
.B(\ra[4] ),
.Y(_155_)
);
sky130_fd_sc_hd__and2_0 _398_ (
.A(\rb[0] ),
.B(\ra[4] ),
.X(_156_)
);
sky130_fd_sc_hd__nand2_1 _399_ (
.A(\rb[2] ),
.B(\ra[3] ),
.Y(_157_)
);
sky130_fd_sc_hd__maj3_1 _400_ (
.A(_130_),
.B(_155_),
.C(_157_),
.X(_158_)
);
sky130_fd_sc_hd__xor3_1 _401_ (
.A(_105_),
.B(_131_),
.C(_132_),
.X(_159_)
);
sky130_fd_sc_hd__nand2_1 _402_ (
.A(\ra[1] ),
.B(\rb[5] ),
.Y(_160_)
);
sky130_fd_sc_hd__and2_0 _403_ (
.A(\p[7] ),
.B(acc[7]),
.X(_008_)
);
sky130_fd_sc_hd__nand2_1 _404_ (
.A(\rb[4] ),
.B(\ra[2] ),
.Y(_161_)
);
sky130_fd_sc_hd__nand2_1 _405_ (
.A(\rb[3] ),
.B(\ra[2] ),
.Y(_162_)
);
sky130_fd_sc_hd__xor3_1 _406_ (
.A(_138_),
.B(_160_),
.C(_161_),
.X(_163_)
);
sky130_fd_sc_hd__maj3_1 _407_ (
.A(_158_),
.B(_159_),
.C(_163_),
.X(_164_)
);
sky130_fd_sc_hd__xnor3_1 _408_ (
.A(_133_),
.B(_135_),
.C(_139_),
.X(_165_)
);
sky130_fd_sc_hd__nand2b_1 _409_ (
.A_N(_164_),
.B(_165_),
.Y(_166_)
);
sky130_fd_sc_hd__nand2_1 _410_ (
.A(\ra[0] ),
.B(\rb[7] ),
.Y(_167_)
);
sky130_fd_sc_hd__maj3_1 _411_ (
.A(_138_),
.B(_160_),
.C(_161_),
.X(_168_)
);
sky130_fd_sc_hd__nand2_1 _412_ (
.A(\ra[1] ),
.B(\rb[6] ),
.Y(_169_)
);
sky130_fd_sc_hd__xor3_1 _413_ (
.A(_167_),
.B(_168_),
.C(_169_),
.X(_170_)
);
sky130_fd_sc_hd__and2_0 _414_ (
.A(\p[14] ),
.B(acc[14]),
.X(_256_)
);
sky130_fd_sc_hd__nor2_1 _415_ (
.A(\p[7] ),
.B(acc[7]),
.Y(_009_)
);
sky130_fd_sc_hd__lpflow_isobufsrc_1 _416_ (
.A(_164_),
.SLEEP(_165_),
.X(_171_)
);
sky130_fd_sc_hd__o21a_1 _417_ (
.A1(_170_),
.A2(_171_),
.B1(_166_),
.X(_172_)
);
sky130_fd_sc_hd__xnor2_1 _418_ (
.A(_146_),
.B(_147_),
.Y(_173_)
);
sky130_fd_sc_hd__maj3_1 _419_ (
.A(_167_),
.B(_168_),
.C(_169_),
.X(_174_)
);
sky130_fd_sc_hd__xor3_1 _420_ (
.A(_146_),
.B(_147_),
.C(_172_),
.X(_175_)
);
sky130_fd_sc_hd__maj3_1 _421_ (
.A(_172_),
.B(_173_),
.C(_174_),
.X(_176_)
);
sky130_fd_sc_hd__xnor2_1 _422_ (
.A(_150_),
.B(_151_),
.Y(_177_)
);
sky130_fd_sc_hd__lpflow_isobufsrc_1 _423_ (
.A(_177_),
.SLEEP(_176_),
.X(_178_)
);
sky130_fd_sc_hd__and2_0 _424_ (
.A(\rb[1] ),
.B(\ra[3] ),
.X(_179_)
);
sky130_fd_sc_hd__and2_0 _425_ (
.A(\rb[0] ),
.B(\ra[3] ),
.X(_180_)
);
sky130_fd_sc_hd__and2_0 _426_ (
.A(\p[6] ),
.B(acc[6]),
.X(_010_)
);
sky130_fd_sc_hd__and2_0 _427_ (
.A(\rb[2] ),
.B(\ra[2] ),
.X(_181_)
);
sky130_fd_sc_hd__maj3_1 _428_ (
.A(_156_),
.B(_179_),
.C(_181_),
.X(_182_)
);
sky130_fd_sc_hd__xnor3_1 _429_ (
.A(_130_),
.B(_155_),
.C(_157_),
.X(_183_)
);
sky130_fd_sc_hd__nand2_1 _430_ (
.A(\ra[0] ),
.B(\rb[5] ),
.Y(_184_)
);
sky130_fd_sc_hd__nand2_1 _431_ (
.A(\ra[1] ),
.B(\rb[4] ),
.Y(_185_)
);
sky130_fd_sc_hd__xnor3_1 _432_ (
.A(_162_),
.B(_184_),
.C(_185_),
.X(_186_)
);
sky130_fd_sc_hd__maj3_1 _433_ (
.A(_182_),
.B(_183_),
.C(_186_),
.X(_187_)
);
sky130_fd_sc_hd__xnor3_1 _434_ (
.A(_158_),
.B(_159_),
.C(_163_),
.X(_188_)
);
sky130_fd_sc_hd__maj3_1 _435_ (
.A(_162_),
.B(_184_),
.C(_185_),
.X(_189_)
);
sky130_fd_sc_hd__nand2_1 _436_ (
.A(\ra[0] ),
.B(\rb[6] ),
.Y(_190_)
);
sky130_fd_sc_hd__nand2_1 _437_ (
.A(\p[1] ),
.B(acc[1]),
.Y(_011_)
);
sky130_fd_sc_hd__nor2_1 _438_ (
.A(_189_),
.B(_190_),
.Y(_191_)
);
sky130_fd_sc_hd__xor2_1 _439_ (
.A(_189_),
.B(_190_),
.X(_192_)
);
sky130_fd_sc_hd__maj3_1 _440_ (
.A(_187_),
.B(_188_),
.C(_192_),
.X(_193_)
);
sky130_fd_sc_hd__xor3_1 _441_ (
.A(_164_),
.B(_165_),
.C(_170_),
.X(_194_)
);
sky130_fd_sc_hd__maj3_1 _442_ (
.A(_191_),
.B(_193_),
.C(_194_),
.X(_195_)
);
sky130_fd_sc_hd__xor2_1 _443_ (
.A(_174_),
.B(_175_),
.X(_196_)
);
sky130_fd_sc_hd__xnor2_1 _444_ (
.A(_195_),
.B(_196_),
.Y(_197_)
);
sky130_fd_sc_hd__xnor3_1 _445_ (
.A(_191_),
.B(_193_),
.C(_194_),
.X(_198_)
);
sky130_fd_sc_hd__and2_0 _446_ (
.A(\rb[1] ),
.B(\ra[2] ),
.X(_199_)
);
sky130_fd_sc_hd__nand2_1 _447_ (
.A(\rb[0] ),
.B(\ra[2] ),
.Y(_200_)
);
sky130_fd_sc_hd__nand2_1 _448_ (
.A(\p[0] ),
.B(acc[0]),
.Y(_012_)
);
sky130_fd_sc_hd__and2_0 _449_ (
.A(\rb[2] ),
.B(\ra[1] ),
.X(_201_)
);
sky130_fd_sc_hd__maj3_1 _450_ (
.A(_180_),
.B(_199_),
.C(_201_),
.X(_202_)
);
sky130_fd_sc_hd__xor3_1 _451_ (
.A(_156_),
.B(_179_),
.C(_181_),
.X(_203_)
);
sky130_fd_sc_hd__a22oi_1 _452_ (
.A1(\ra[1] ),
.A2(\rb[3] ),
.B1(\rb[4] ),
.B2(\ra[0] ),
.Y(_204_)
);
sky130_fd_sc_hd__nand2_1 _453_ (
.A(\ra[0] ),
.B(\rb[3] ),
.Y(_205_)
);
sky130_fd_sc_hd__nand4_1 _454_ (
.A(\ra[0] ),
.B(\ra[1] ),
.C(\rb[3] ),
.D(\rb[4] ),
.Y(_206_)
);
sky130_fd_sc_hd__clkinv_1 _455_ (
.A(_206_),
.Y(_207_)
);
sky130_fd_sc_hd__nor2b_1 _456_ (
.A(_204_),
.B_N(_206_),
.Y(_208_)
);
sky130_fd_sc_hd__maj3_1 _457_ (
.A(_202_),
.B(_203_),
.C(_208_),
.X(_209_)
);
sky130_fd_sc_hd__xor3_1 _458_ (
.A(_182_),
.B(_183_),
.C(_186_),
.X(_210_)
);
sky130_fd_sc_hd__nor2_1 _459_ (
.A(\p[1] ),
.B(acc[1]),
.Y(_013_)
);
sky130_fd_sc_hd__xor2_1 _460_ (
.A(_209_),
.B(_210_),
.X(_211_)
);
sky130_fd_sc_hd__maj3_1 _461_ (
.A(_207_),
.B(_209_),
.C(_210_),
.X(_212_)
);
sky130_fd_sc_hd__xor3_1 _462_ (
.A(_187_),
.B(_188_),
.C(_192_),
.X(_213_)
);
sky130_fd_sc_hd__nand2_1 _463_ (
.A(_212_),
.B(_213_),
.Y(_214_)
);
sky130_fd_sc_hd__xnor2_1 _464_ (
.A(_212_),
.B(_213_),
.Y(_215_)
);
sky130_fd_sc_hd__nand2_1 _465_ (
.A(\rb[1] ),
.B(\ra[1] ),
.Y(_216_)
);
sky130_fd_sc_hd__nand2_1 _466_ (
.A(\ra[0] ),
.B(\rb[2] ),
.Y(_217_)
);
sky130_fd_sc_hd__maj3_1 _467_ (
.A(_200_),
.B(_216_),
.C(_217_),
.X(_218_)
);
sky130_fd_sc_hd__xnor3_1 _468_ (
.A(_180_),
.B(_199_),
.C(_201_),
.X(_219_)
);
sky130_fd_sc_hd__maj3_1 _469_ (
.A(_205_),
.B(_218_),
.C(_219_),
.X(_220_)
);
sky130_fd_sc_hd__lpflow_isobufsrc_1 _470_ (
.A(_011_),
.SLEEP(_013_),
.X(_014_)
);
sky130_fd_sc_hd__xor3_1 _471_ (
.A(_202_),
.B(_203_),
.C(_208_),
.X(_221_)
);
sky130_fd_sc_hd__nand2b_1 _472_ (
.A_N(_220_),
.B(_221_),
.Y(_222_)
);
sky130_fd_sc_hd__xnor2_1 _473_ (
.A(_207_),
.B(_211_),
.Y(_223_)
);
sky130_fd_sc_hd__and2_0 _474_ (
.A(\rb[0] ),
.B(\ra[0] ),
.X(_286_)
);
sky130_fd_sc_hd__nand3_1 _475_ (
.A(\rb[1] ),
.B(\ra[1] ),
.C(_286_),
.Y(_224_)
);
sky130_fd_sc_hd__xor3_1 _476_ (
.A(_200_),
.B(_216_),
.C(_217_),
.X(_225_)
);
sky130_fd_sc_hd__lpflow_inputiso1p_1 _477_ (
.A(_224_),
.SLEEP(_225_),
.X(_226_)
);
sky130_fd_sc_hd__xor3_1 _478_ (
.A(_205_),
.B(_218_),
.C(_219_),
.X(_227_)
);
sky130_fd_sc_hd__nor2_1 _479_ (
.A(_226_),
.B(_227_),
.Y(_228_)
);
sky130_fd_sc_hd__xnor2_1 _480_ (
.A(_220_),
.B(_221_),
.Y(_229_)
);
sky130_fd_sc_hd__o21ai_0 _481_ (
.A1(_012_),
.A2(_013_),
.B1(_011_),
.Y(_015_)
);
sky130_fd_sc_hd__nand2_1 _482_ (
.A(_228_),
.B(_229_),
.Y(_230_)
);
sky130_fd_sc_hd__maj3_1 _483_ (
.A(_222_),
.B(_223_),
.C(_230_),
.X(_231_)
);
sky130_fd_sc_hd__o21ai_0 _484_ (
.A1(_215_),
.A2(_231_),
.B1(_214_),
.Y(_232_)
);
sky130_fd_sc_hd__lpflow_inputiso1p_1 _485_ (
.A(_198_),
.SLEEP(_214_),
.X(_233_)
);
sky130_fd_sc_hd__o31ai_1 _486_ (
.A1(_198_),
.A2(_215_),
.A3(_231_),
.B1(_233_),
.Y(_234_)
);
sky130_fd_sc_hd__maj3_1 _487_ (
.A(_195_),
.B(_196_),
.C(_234_),
.X(_235_)
);
sky130_fd_sc_hd__nand2b_1 _488_ (
.A_N(_177_),
.B(_176_),
.Y(_236_)
);
sky130_fd_sc_hd__nand2b_1 _489_ (
.A_N(_178_),
.B(_236_),
.Y(_237_)
);
sky130_fd_sc_hd__a21oi_1 _490_ (
.A1(_235_),
.A2(_236_),
.B1(_178_),
.Y(_238_)
);
sky130_fd_sc_hd__xor2_1 _491_ (
.A(_153_),
.B(_154_),
.X(_239_)
);
sky130_fd_sc_hd__xnor2_1 _492_ (
.A(\p[2] ),
.B(acc[2]),
.Y(_016_)
);
sky130_fd_sc_hd__maj3_1 _493_ (
.A(_153_),
.B(_154_),
.C(_238_),
.X(_240_)
);
sky130_fd_sc_hd__xor2_1 _494_ (
.A(_128_),
.B(_129_),
.X(_241_)
);
sky130_fd_sc_hd__maj3_1 _495_ (
.A(_128_),
.B(_129_),
.C(_240_),
.X(_242_)
);
sky130_fd_sc_hd__xnor2_1 _496_ (
.A(_101_),
.B(_102_),
.Y(_243_)
);
sky130_fd_sc_hd__clkinv_1 _497_ (
.A(_243_),
.Y(_244_)
);
sky130_fd_sc_hd__o21ai_0 _498_ (
.A1(_242_),
.A2(_244_),
.B1(_103_),
.Y(_245_)
);
sky130_fd_sc_hd__nand2_1 _499_ (
.A(_075_),
.B(_080_),
.Y(_246_)
);
sky130_fd_sc_hd__nand2b_1 _500_ (
.A_N(_081_),
.B(_246_),
.Y(_247_)
);
sky130_fd_sc_hd__a21oi_1 _501_ (
.A1(_245_),
.A2(_246_),
.B1(_081_),
.Y(_248_)
);
sky130_fd_sc_hd__nand3_1 _502_ (
.A(\rb[7] ),
.B(\ra[7] ),
.C(_065_),
.Y(_249_)
);
sky130_fd_sc_hd__maj3_1 _503_ (
.A(\p[2] ),
.B(acc[2]),
.C(_015_),
.X(_017_)
);
sky130_fd_sc_hd__maj3_1 _504_ (
.A(_071_),
.B(_076_),
.C(_078_),
.X(_250_)
);
sky130_fd_sc_hd__xor2_1 _505_ (
.A(_249_),
.B(_250_),
.X(_251_)
);
sky130_fd_sc_hd__xor2_1 _506_ (
.A(_248_),
.B(_251_),
.X(_296_)
);
sky130_fd_sc_hd__xnor2_1 _507_ (
.A(_245_),
.B(_247_),
.Y(_295_)
);
sky130_fd_sc_hd__xnor2_1 _508_ (
.A(_242_),
.B(_243_),
.Y(_294_)
);
sky130_fd_sc_hd__xnor2_1 _509_ (
.A(_240_),
.B(_241_),
.Y(_293_)
);
sky130_fd_sc_hd__xnor2_1 _510_ (
.A(_238_),
.B(_239_),
.Y(_292_)
);
sky130_fd_sc_hd__xnor2_1 _511_ (
.A(_235_),
.B(_237_),
.Y(_301_)
);
sky130_fd_sc_hd__xnor2_1 _512_ (
.A(_197_),
.B(_234_),
.Y(_300_)
);
sky130_fd_sc_hd__xnor2_1 _513_ (
.A(_198_),
.B(_232_),
.Y(_299_)
);
sky130_fd_sc_hd__xnor2_1 _514_ (
.A(\p[3] ),
.B(acc[3]),
.Y(_018_)
);
sky130_fd_sc_hd__xor2_1 _515_ (
.A(_215_),
.B(_231_),
.X(_298_)
);
sky130_fd_sc_hd__xnor3_1 _516_ (
.A(_222_),
.B(_223_),
.C(_230_),
.X(_291_)
);
sky130_fd_sc_hd__xor2_1 _517_ (
.A(_228_),
.B(_229_),
.X(_290_)
);
sky130_fd_sc_hd__xor2_1 _518_ (
.A(_226_),
.B(_227_),
.X(_289_)
);
sky130_fd_sc_hd__xor2_1 _519_ (
.A(_224_),
.B(_225_),
.X(_288_)
);
sky130_fd_sc_hd__a22oi_1 _520_ (
.A1(\ra[0] ),
.A2(\rb[1] ),
.B1(\ra[1] ),
.B2(\rb[0] ),
.Y(_252_)
);
sky130_fd_sc_hd__a31oi_1 _521_ (
.A1(\rb[1] ),
.A2(\ra[1] ),
.A3(_286_),
.B1(_252_),
.Y(_287_)
);
sky130_fd_sc_hd__xor2_1 _522_ (
.A(\p[0] ),
.B(acc[0]),
.X(_265_)
);
sky130_fd_sc_hd__o211ai_1 _523_ (
.A1(_066_),
.A2(_250_),
.B1(\rb[7] ),
.C1(\ra[7] ),
.Y(_253_)
);
sky130_fd_sc_hd__o21ai_0 _524_ (
.A1(_248_),
.A2(_251_),
.B1(_253_),
.Y(_297_)
);
sky130_fd_sc_hd__nor2_1 _525_ (
.A(\p[14] ),
.B(acc[14]),
.Y(_257_)
);
sky130_fd_sc_hd__maj3_1 _526_ (
.A(\p[3] ),
.B(acc[3]),
.C(_017_),
.X(_019_)
);
sky130_fd_sc_hd__xnor2_1 _527_ (
.A(acc[19]),
.B(_042_),
.Y(_275_)
);
sky130_fd_sc_hd__xnor2_1 _528_ (
.A(\p[4] ),
.B(acc[4]),
.Y(_020_)
);
sky130_fd_sc_hd__maj3_1 _529_ (
.A(\p[4] ),
.B(acc[4]),
.C(_019_),
.X(_021_)
);
sky130_fd_sc_hd__xnor2_1 _530_ (
.A(\p[5] ),
.B(acc[5]),
.Y(_022_)
);
sky130_fd_sc_hd__maj3_1 _531_ (
.A(\p[5] ),
.B(acc[5]),
.C(_021_),
.X(_023_)
);
sky130_fd_sc_hd__nor2_1 _532_ (
.A(\p[6] ),
.B(acc[6]),
.Y(_024_)
);
sky130_fd_sc_hd__nor2_1 _533_ (
.A(_010_),
.B(_024_),
.Y(_025_)
);
sky130_fd_sc_hd__a21oi_1 _534_ (
.A1(_023_),
.A2(_025_),
.B1(_010_),
.Y(_026_)
);
sky130_fd_sc_hd__a211oi_1 _535_ (
.A1(_023_),
.A2(_025_),
.B1(_008_),
.C1(_010_),
.Y(_027_)
);
sky130_fd_sc_hd__nor2_1 _536_ (
.A(_009_),
.B(_027_),
.Y(_028_)
);
sky130_fd_sc_hd__nor2_1 _537_ (
.A(_256_),
.B(_257_),
.Y(_258_)
);
sky130_fd_sc_hd__o31ai_1 _538_ (
.A1(_007_),
.A2(_009_),
.A3(_027_),
.B1(_006_),
.Y(_029_)
);
sky130_fd_sc_hd__o311ai_0 _539_ (
.A1(_007_),
.A2(_009_),
.A3(_027_),
.B1(_006_),
.C1(_004_),
.Y(_030_)
);
sky130_fd_sc_hd__nand2_1 _540_ (
.A(_005_),
.B(_030_),
.Y(_031_)
);
sky130_fd_sc_hd__a31oi_1 _541_ (
.A1(_003_),
.A2(_005_),
.A3(_030_),
.B1(_001_),
.Y(_032_)
);
sky130_fd_sc_hd__a311oi_1 _542_ (
.A1(_003_),
.A2(_005_),
.A3(_030_),
.B1(_001_),
.C1(_264_),
.Y(_033_)
);
sky130_fd_sc_hd__lpflow_inputiso1p_1 _543_ (
.A(_000_),
.SLEEP(_033_),
.X(_034_)
);
sky130_fd_sc_hd__o21ai_0 _544_ (
.A1(_262_),
.A2(_034_),
.B1(_261_),
.Y(_035_)
);
sky130_fd_sc_hd__o311ai_0 _545_ (
.A1(_262_),
.A2(_000_),
.A3(_033_),
.B1(_261_),
.C1(_259_),
.Y(_036_)
);
sky130_fd_sc_hd__and2_0 _546_ (
.A(_260_),
.B(_036_),
.X(_037_)
);
sky130_fd_sc_hd__a31oi_1 _547_ (
.A1(_258_),
.A2(_260_),
.A3(_036_),
.B1(_256_),
.Y(_038_)
);
sky130_fd_sc_hd__nand2_1 _548_ (
.A(\p[13] ),
.B(acc[13]),
.Y(_259_)
);
sky130_fd_sc_hd__nor2_1 _549_ (
.A(_255_),
.B(_038_),
.Y(_039_)
);
sky130_fd_sc_hd__o21ai_0 _550_ (
.A1(_254_),
.A2(_039_),
.B1(acc[16]),
.Y(_040_)
);
sky130_fd_sc_hd__o211ai_1 _551_ (
.A1(_254_),
.A2(_039_),
.B1(acc[17]),
.C1(acc[16]),
.Y(_041_)
);
sky130_fd_sc_hd__o2111ai_1 _552_ (
.A1(_254_),
.A2(_039_),
.B1(acc[18]),
.C1(acc[17]),
.D1(acc[16]),
.Y(_042_)
);
sky130_fd_sc_hd__xnor2_1 _553_ (
.A(acc[18]),
.B(_041_),
.Y(_274_)
);
sky130_fd_sc_hd__xnor2_1 _554_ (
.A(acc[17]),
.B(_040_),
.Y(_273_)
);
sky130_fd_sc_hd__nor3_1 _555_ (
.A(acc[16]),
.B(_254_),
.C(_039_),
.Y(_043_)
);
sky130_fd_sc_hd__lpflow_isobufsrc_1 _556_ (
.A(_040_),
.SLEEP(_043_),
.X(_272_)
);
sky130_fd_sc_hd__nor2_1 _557_ (
.A(_254_),
.B(_255_),
.Y(_044_)
);
sky130_fd_sc_hd__xnor2_1 _558_ (
.A(_038_),
.B(_044_),
.Y(_271_)
);
sky130_fd_sc_hd__lpflow_inputiso1p_1 _559_ (
.A(\p[13] ),
.SLEEP(acc[13]),
.X(_260_)
);
sky130_fd_sc_hd__xor2_1 _560_ (
.A(_258_),
.B(_037_),
.X(_270_)
);
sky130_fd_sc_hd__nand2_1 _561_ (
.A(_259_),
.B(_260_),
.Y(_045_)
);
sky130_fd_sc_hd__xnor2_1 _562_ (
.A(_035_),
.B(_045_),
.Y(_269_)
);
sky130_fd_sc_hd__xnor2_1 _563_ (
.A(_263_),
.B(_034_),
.Y(_268_)
);
sky130_fd_sc_hd__nor2_1 _564_ (
.A(_264_),
.B(_000_),
.Y(_046_)
);
sky130_fd_sc_hd__xnor2_1 _565_ (
.A(_032_),
.B(_046_),
.Y(_267_)
);
sky130_fd_sc_hd__xnor2_1 _566_ (
.A(_003_),
.B(_031_),
.Y(_266_)
);
sky130_fd_sc_hd__nand2_1 _567_ (
.A(_004_),
.B(_005_),
.Y(_047_)
);
sky130_fd_sc_hd__xnor2_1 _568_ (
.A(_029_),
.B(_047_),
.Y(_284_)
);
sky130_fd_sc_hd__xnor2_1 _569_ (
.A(_007_),
.B(_028_),
.Y(_283_)
);
sky130_fd_sc_hd__nand2_1 _570_ (
.A(\p[12] ),
.B(acc[12]),
.Y(_261_)
);
sky130_fd_sc_hd__lpflow_inputiso1p_1 _571_ (
.A(_008_),
.SLEEP(_009_),
.X(_048_)
);
sky130_fd_sc_hd__xor2_1 _572_ (
.A(_026_),
.B(_048_),
.X(_282_)
);
sky130_fd_sc_hd__xor2_1 _573_ (
.A(_023_),
.B(_025_),
.X(_281_)
);
sky130_fd_sc_hd__xnor2_1 _574_ (
.A(_021_),
.B(_022_),
.Y(_280_)
);
sky130_fd_sc_hd__xnor2_1 _575_ (
.A(_019_),
.B(_020_),
.Y(_279_)
);
sky130_fd_sc_hd__xnor2_1 _576_ (
.A(_017_),
.B(_018_),
.Y(_278_)
);
sky130_fd_sc_hd__xnor2_1 _577_ (
.A(_015_),
.B(_016_),
.Y(_277_)
);
sky130_fd_sc_hd__xnor2_1 _578_ (
.A(_012_),
.B(_014_),
.Y(_276_)
);
sky130_fd_sc_hd__nand2_1 _579_ (
.A(\rb[7] ),
.B(\ra[4] ),
.Y(_049_)
);
sky130_fd_sc_hd__nand2_1 _580_ (
.A(\rb[3] ),
.B(\ra[6] ),
.Y(_050_)
);
sky130_fd_sc_hd__nor2_1 _581_ (
.A(\p[12] ),
.B(acc[12]),
.Y(_262_)
);
sky130_fd_sc_hd__nand2_1 _582_ (
.A(\rb[4] ),
.B(\ra[6] ),
.Y(_051_)
);
sky130_fd_sc_hd__nand2_1 _583_ (
.A(\rb[3] ),
.B(\ra[7] ),
.Y(_052_)
);
sky130_fd_sc_hd__nand2_1 _584_ (
.A(\rb[5] ),
.B(\ra[5] ),
.Y(_053_)
);
sky130_fd_sc_hd__xnor2_1 _585_ (
.A(_051_),
.B(_052_),
.Y(_054_)
);
sky130_fd_sc_hd__maj3_1 _586_ (
.A(_051_),
.B(_052_),
.C(_053_),
.X(_055_)
);
sky130_fd_sc_hd__nand2_1 _587_ (
.A(\rb[6] ),
.B(\ra[5] ),
.Y(_056_)
);
sky130_fd_sc_hd__xnor2_1 _588_ (
.A(_055_),
.B(_056_),
.Y(_057_)
);
sky130_fd_sc_hd__xnor2_1 _589_ (
.A(_049_),
.B(_057_),
.Y(_058_)
);
sky130_fd_sc_hd__a22oi_1 _590_ (
.A1(\rb[5] ),
.A2(\ra[6] ),
.B1(\ra[7] ),
.B2(\rb[4] ),
.Y(_059_)
);
sky130_fd_sc_hd__nand2_1 _591_ (
.A(\rb[5] ),
.B(\ra[7] ),
.Y(_060_)
);
sky130_fd_sc_hd__lpflow_isobufsrc_1 _592_ (
.A(_261_),
.SLEEP(_262_),
.X(_263_)
);
sky130_fd_sc_hd__nor2_1 _593_ (
.A(_051_),
.B(_060_),
.Y(_061_)
);
sky130_fd_sc_hd__nor2_1 _594_ (
.A(_059_),
.B(_061_),
.Y(_062_)
);
sky130_fd_sc_hd__nand2b_1 _595_ (
.A_N(_058_),
.B(_062_),
.Y(_063_)
);
sky130_fd_sc_hd__nand2_1 _596_ (
.A(\rb[7] ),
.B(\ra[5] ),
.Y(_064_)
);
sky130_fd_sc_hd__nand2_1 _597_ (
.A(\rb[6] ),
.B(\ra[6] ),
.Y(_065_)
);
sky130_fd_sc_hd__clkinv_1 _598_ (
.A(_065_),
.Y(_066_)
);
sky130_fd_sc_hd__nor2_1 _599_ (
.A(_061_),
.B(_066_),
.Y(_067_)
);
sky130_fd_sc_hd__nand2_1 _600_ (
.A(\rb[6] ),
.B(_061_),
.Y(_068_)
);
sky130_fd_sc_hd__a21oi_1 _601_ (
.A1(\rb[6] ),
.A2(_061_),
.B1(_067_),
.Y(_069_)
);
sky130_fd_sc_hd__xnor2_1 _602_ (
.A(_064_),
.B(_069_),
.Y(_070_)
);
sky130_fd_sc_hd__dlclkp_1 _603_ (
.CLK(clk),
.GATE(en),
.GCLK(_285_)
);
sky130_fd_sc_hd__dfrtp_1 _604_ (
.CLK(_285_),
.D(b[6]),
.Q(\rb[6] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _605_ (
.CLK(_285_),
.D(b[7]),
.Q(\rb[7] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _606_ (
.CLK(_285_),
.D(_286_),
.Q(\p[0] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _607_ (
.CLK(_285_),
.D(_287_),
.Q(\p[1] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _608_ (
.CLK(_285_),
.D(_288_),
.Q(\p[2] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _609_ (
.CLK(_285_),
.D(_289_),
.Q(\p[3] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _610_ (
.CLK(_285_),
.D(_290_),
.Q(\p[4] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _611_ (
.CLK(_285_),
.D(_291_),
.Q(\p[5] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _612_ (
.CLK(_285_),
.D(_298_),
.Q(\p[6] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _613_ (
.CLK(_285_),
.D(_299_),
.Q(\p[7] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _614_ (
.CLK(_285_),
.D(_300_),
.Q(\p[8] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _615_ (
.CLK(_285_),
.D(_301_),
.Q(\p[9] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _616_ (
.CLK(_285_),
.D(_292_),
.Q(\p[10] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _617_ (
.CLK(_285_),
.D(_293_),
.Q(\p[11] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _618_ (
.CLK(_285_),
.D(_294_),
.Q(\p[12] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _619_ (
.CLK(_285_),
.D(_295_),
.Q(\p[13] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _620_ (
.CLK(_285_),
.D(_296_),
.Q(\p[14] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _621_ (
.CLK(_285_),
.D(_297_),
.Q(\p[15] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _622_ (
.CLK(_285_),
.D(_265_),
.Q(acc[0]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _623_ (
.CLK(_285_),
.D(_276_),
.Q(acc[1]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _624_ (
.CLK(_285_),
.D(_277_),
.Q(acc[2]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _625_ (
.CLK(_285_),
.D(_278_),
.Q(acc[3]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _626_ (
.CLK(_285_),
.D(_279_),
.Q(acc[4]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _627_ (
.CLK(_285_),
.D(_280_),
.Q(acc[5]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _628_ (
.CLK(_285_),
.D(_281_),
.Q(acc[6]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _629_ (
.CLK(_285_),
.D(_282_),
.Q(acc[7]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _630_ (
.CLK(_285_),
.D(_283_),
.Q(acc[8]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _631_ (
.CLK(_285_),
.D(_284_),
.Q(acc[9]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _632_ (
.CLK(_285_),
.D(_266_),
.Q(acc[10]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _633_ (
.CLK(_285_),
.D(_267_),
.Q(acc[11]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _634_ (
.CLK(_285_),
.D(_268_),
.Q(acc[12]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _635_ (
.CLK(_285_),
.D(_269_),
.Q(acc[13]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _636_ (
.CLK(_285_),
.D(_270_),
.Q(acc[14]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _637_ (
.CLK(_285_),
.D(_271_),
.Q(acc[15]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _638_ (
.CLK(_285_),
.D(_272_),
.Q(acc[16]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _639_ (
.CLK(_285_),
.D(_273_),
.Q(acc[17]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _640_ (
.CLK(_285_),
.D(_274_),
.Q(acc[18]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _641_ (
.CLK(_285_),
.D(_275_),
.Q(acc[19]),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _642_ (
.CLK(_285_),
.D(a[0]),
.Q(\ra[0] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _643_ (
.CLK(_285_),
.D(a[1]),
.Q(\ra[1] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _644_ (
.CLK(_285_),
.D(a[2]),
.Q(\ra[2] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _645_ (
.CLK(_285_),
.D(a[3]),
.Q(\ra[3] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _646_ (
.CLK(_285_),
.D(a[4]),
.Q(\ra[4] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _647_ (
.CLK(_285_),
.D(a[5]),
.Q(\ra[5] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _648_ (
.CLK(_285_),
.D(a[6]),
.Q(\ra[6] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _649_ (
.CLK(_285_),
.D(a[7]),
.Q(\ra[7] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _650_ (
.CLK(_285_),
.D(b[0]),
.Q(\rb[0] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _651_ (
.CLK(_285_),
.D(b[1]),
.Q(\rb[1] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _652_ (
.CLK(_285_),
.D(b[2]),
.Q(\rb[2] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _653_ (
.CLK(_285_),
.D(b[3]),
.Q(\rb[3] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _654_ (
.CLK(_285_),
.D(b[4]),
.Q(\rb[4] ),
.RESET_B(rst_n)
);
sky130_fd_sc_hd__dfrtp_1 _655_ (
.CLK(_285_),
.D(b[5]),
.Q(\rb[5] ),
.RESET_B(rst_n)
);
endmodule
Check Yourself
Common Mistakes
Wrong Gate a wide bank because it is wide, without asking how often it idles.
A 16-flop bank whose enable is always 1 burns 85.4 µW with a gate and 79.7 µW without. The gate never closes, so it only adds its own power.
Fix Check the enable duty as well as the width.
Wrong Gate the clock by hand with an AND gate, because it is a smaller cell.
The AND gate passes a glitch when the enable changes while the clock is high (R2.3).
Fix Write an enable in the RTL and let the tool insert a clock-gating cell.
assign gclk = clk & en;
always_ff @(posedge gclk)
q <= d;always_ff @(posedge clk)
if (en) q <= d;Wrong Drive the enable of a clock gate from a long path late in the cycle.
The latch in the gate must capture the enable before the clock rises. A late enable fails that check, and the bank misses an edge or takes an extra one.
Fix Time the enable path to the gate like any other path (lesson L5.6).
Wrong Use a clock gate with no test pin in a design that will be scanned.
During scan shift every flop must receive the clock, whatever the enable says.
Fix Use the gate with a scan-enable pin: sdlclkp in this library.
Remember
- An enable mux holds the data. The clock pin of the flop still burns power in every cycle.
- A clock gate stops the clock of a whole bank: 67 times less idle power here.
- The saving follows the enable duty. A block that always works gains almost nothing.
- The gate has its own cost, so tiny banks and always-enabled banks should stay ungated.
- Write enables in the RTL and let the tool insert the gates.