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.

clock gating latches

Status
Not open for further replies.

promach

Advanced Member level 4
Joined
Feb 22, 2016
Messages
1,199
Helped
2
Reputation
4
Reaction score
5
Trophy points
1,318
Activity points
11,636
Could anyone help to explain why OR type Clock Gate requires positive latch ?
while AND type Clock Gate requires negative latch ?


Xe0tpw4.png
 

Hi,

I assume to avoid glitches at the output.

Is it a true transparent latch or a D-FF?

Klaus
 

Someone told me A & B = !(!A | !B) , but I am not sure how it is directly related to my question above since both are using CP and there is no negation in one of the inputs for the AND gate ?
 

For AND-type clock gate:

4J9y0KO.png


exkpsCj.png
 
  • Like
Reactions: d123

    d123

    Points: 2
    Helpful Answer Positive Rating
The only difference between the 2 clock gating latches is 1 clock cycle.

The AND cell is one clock cycle behind compared to the output of the OR cell.

D latches only ‘listen’ to the input on CLK rising.


By inverting CLK input the latch has to wait until next rising flange.

As you have correctly spotted in the added diagram these cells prevent ‘chopped’ clock pulses, finishing to complete clock period in case what the latch considers input data (E TE EB TEB .. whatever) ends up (or starts up) asynchronously.

May be you would gain further insight what seems to be, at least from the contents of the following link:


the author of the diagrams used in your question, including a contact form, regarding those 2 cells not as consumption efficient as the proposed improvement.
 

The only difference between the 2 clock gating latches is 1 clock cycle.

The AND cell is one clock cycle behind compared to the output of the OR cell.

D latches only ‘listen’ to the input on CLK rising.


https://www.electronics-tutorials.ws/sequential/seq_4.html

By inverting CLK input the latch has to wait until next rising flange.

Wait, I am still confused with your "1 clock cycle" statements above.
I do not think the inverter will cause such issue.
 

The major difference between both gating circuits is that the clock idles low respectively high.

Using transparent latches instead of DFF brings up a risk of glitches if the enable signal toggles near one clock edge. But metastability avoidance would require to synchronize enable to clock anyway.
 


Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top