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.

[moved] D-flipflop freq divider initial phase

Status
Not open for further replies.

AllenD

Member level 5
Member level 5
Joined
Aug 7, 2017
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
1,193
Hi All,
I am using a Hybrid Latch Flip-Flop (HLFF) circuit work as a D-flipflop, and feedback from Q_b to D to realize a freq divide by 2 circuit.

My question is how to regulate the initial phase?
In the attached pic on the left is the HLFF with reset and feedback. On the right:
1. Blue is the reset signal.
2. For the red group, the signals are D, CLK, Q in order (the first line is D, the second line is CLK and the third line is Q ). Same for the Green group
3. The difference of red and green is that I use a different transistor from PDK to simulate the exact HLFF circuit topology.
You can see in both cases, the CLK signal (the 2nd and 5th signal in plot) of red and green are the same. But the difference is the starting phase of the output. For red, Q rise with the 3rd, 5th, and 7th rising edge of CLK but in green, Q rise with the 2nd, 4th, and 6th rising edge of CLK.
As result, the Q of red and green are the opposite.
Can you please let me know how to prevent this phenomenon?
Thanks
Al
Screenshot from 2020-12-10 17-05-58.png
 

The thing that immediately jumps out at me is that as soon as the reset is de-asserted, the green Q output changes. There's something wrong there. Is the reset supposed to be asychronous? If it's synchronous there might be a timing issue.

I once had a situation where I was de-asserting the asynchronous reset too close to the clock edge, which erroneously caused the Q output to change. The manufacturer traced the glitch down to a particular fab facility. Only devices from a particular fab exhibited this behavior.
 

The thing that immediately jumps out at me is that as soon as the reset is de-asserted, the green Q output changes. There's something wrong there. Is the reset supposed to be asychronous? If it's synchronous there might be a timing issue.
Thanks for your reply. I plan to add a switch off-chip to manually reset the IC. So I pick the reset signal phase randomly. Can you please elaborate on "synchronous "? synchronous to whom? If you mean for the case of red and greed, the blue reset signal is identical for both red and green cases.
--- Updated ---

The thing that immediately jumps out at me is that as soon as the reset is de-asserted, the green Q output changes. There's something wrong there. Is the reset supposed to be asychronous? If it's synchronous there might be a timing issue.

I once had a situation where I was de-asserting the asynchronous reset too close to the clock edge, which erroneously caused the Q output to change. The manufacturer traced the glitch down to a particular fab facility. Only devices from a particular fab exhibited this behavior.
Hi!, I found this..... It seems interesting! Thanks for mentioning this potential problem to me!
 

"synchronous to whom?" Synchronous to your clock.
Yes you are right. I delayed the reset by 0.2 clk period and both red and green case synchronized..... I guess I need to find a way to, as you suggested, Synchronous to the clock. Can you please recommend any circuit to achieve it? Just the name or keywords would be immensely helpful.
 

I'm not quite sure you're doing here. Are you building a flip-flop out of discrete transistors? Designing a chip?

Regardless, look up "synchronous reset". But, do you actually WANT synchronous reset and not ASYNCHRONOUS reset?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top