Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Gated clock module for reducing power consumption

Status
Not open for further replies.
about Gated clock

clock gating is a very common. because the RTL level description is very hard in BE, setup and hold and gated timing check. So vendor will provide the ICG cell for CTS tree, which be balanced, is easy to timing closure.
 

Re: about Gated clock

FLEXcertifydll said:
clock gating is a very common. because the RTL level description is very hard in BE, setup and hold and gated timing check. So vendor will provide the ICG cell for CTS tree, which be balanced, is easy to timing closure.

What is the term 'ICG' ?
 

Re: about Gated clock

beta0 said:
rakko said:
Here is a simple and reliable clock gating scheme. Only one gate and one latch and it will not fail.

better use a low level sensitive latch

Why don't use DFF? I think as below

===== verilog code ===
always @ (negedge clkin or negedge xreset)
if(~xreset) enablereg <= 1'b0;
else enablereg <= enable;
clkout = enablereg & clkin;
==================

Any someone can tell me, Why is better to use latch?
 

Re: about Gated clock

latch is taking less area than flipflop.
 

Re: about Gated clock

If your DFFs to be clocked are in the posedge clock domain, you need to generate the
clock_en signal at the -ve edge. So when the clock is gated, it happens on the negedge
which would take care of glitches and metastability.

Basic principal is to gate (disable) the clock in the 180 deg phase shifted clock to your target
clock domain.
 

Re: about Gated clock

roli said:
FLEXcertifydll said:
clock gating is a very common. because the RTL level description is very hard in BE, setup and hold and gated timing check. So vendor will provide the ICG cell for CTS tree, which be balanced, is easy to timing closure.

What is the term 'ICG' ?

ICG - Integrated Clock Gating cell
 

Re: about Gated clock

If your DFFs to be clocked are in the posedge clock domain, you need to generate the
clock_en signal at the -ve edge. So when the clock is gated, it happens on the negedge
which would take care of glitches and metastability.

Basic principal is to gate (disable) the clock in the 180 deg phase shifted clock to your target
clock domain.

Hi, packet and hash_delay,
I am also confused about why not use DFF for gated clock instead of D-LATCH.
Even I knew clock_en signal need to be re-sync. at the negative edge of clock.
I still wonder to know what is the advantage of using D-LATCH for gated clock.
Below is what I know about the advantages of latched-based gating clock.
1): Latch is smaller than DFF.
2): Latch delay is smaller than DFF.
3): EDA-tool has built-in ICG cell and built-in check.
etc...

Thank you.
 

Re: about Gated clock

You can't use DFF to gating clock because it will not work properly in some cases.
22_1284712513.jpg


Let's say Td - time after positive edge of Clk when En unstable.
1. LATCH, Td < T(clk)/2
74_1284712513.jpg

2. LATCH, Td > T(clk)/2
14_1284712513.jpg

3. DFF, Td < T(clk)/2
49_1284712513.jpg

4. DFF, Td > T(clk)/2
69_1284712513.jpg


In case 4 you will skip active edge of Clk. 2nd Clk must be on A, but in this case 3rd will be.

yln2k2 already said
I saw your implementation it is ok . But please take care of following points .

1) When do you want to latch data , if you see do you need to take data when clk_en high and clk is with pos edge ? then you need to balance delay for clk_en path and clk path .

Other wise there is a possibility of missing data for first clk cylce ...
 
Re: about Gated clock

The issue of using DFF for clock gating is
1. If DFF in CG is posedge triggered, you create a race condition between CLK and DFF output and may cause a glitch on the clock tree when CLK_EN goes from 1 to 0. A Low-through latch doesn't have this issue because posedge of the clock doesn't "trigger" the latch output.
2. If DFF in CG is negedge triggered, clock enable signal has only a half cycle to reach the DFF. The setup time could be a problem if the path is deep. A low-through latch doesn't have this issue, because it can borrow the time from CLK=0 period.
 
  • Like
Reactions: iamaeag

    iamaeag

    Points: 2
    Helpful Answer Positive Rating
    V

    Points: 2
    Helpful Answer Positive Rating
gated clock cell is a special cell for glitch should be treated as macro cell
What does it mean "macro cell"? What's special in this cell?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top