W
Weng Tianxiang
Guest
On Mar 8, 4:18 pm, Jim Lewis <j...@synthworks.com> wrote:
Thank you for your response and help.
Anyway now I understand the latch a little more than before the
posting.
In coding experiences, when writing code equations, a reasonalble FPGA
engineer will never generate a situation that leads to a signal
appearing in both sides of logic equation in concurrent area. Because
most of time the odd behavior equations would be fully beyond the
acknowledgable. And there is no reason to generate an oscillator
neither.
Jim correctly repeated my question and both of you gave me a right
answer.
Weng
Hi KJ, Jim and Peter,Peter,
No argument from me as you seem to be saying the same
thing I said.
I interpreted Weng's question as being, when a combinational
signal is on both the right and left side of an equation,
is the only hardware solution a latch.
The answer which we both observed is no and the simple
case is an oscillator.
Cheers,
Jim
I think we will agree that a latch needs positive feedback from the
output to at least one of the inputs.
If the feedback is negative (Qbar to D, for example) you end up with
an oscillator.
Peter Alfke
On Mar 8, 9:49 am, Jim Lewis <j...@synthworks.com> wrote:
Weng> Hi KJ,
I have another question for you.
Q <= (C and D) or (not(C) and Q);
1. Is any combinational equation with target signal in both right part
and left part of the equation a latch like your equations 3 or 4 show?
A latch is the most benign form.
There are oscillators (however when they occur by
accident, they are not necessarily this obvious):
Q <= not Q ;
There is also other strange latch-like behavior.
I don't have an equation for you, but I do remember
analyzing one - it was very interesting.
Cheers,
Jim- Hide quoted text -
- Show quoted text -
Thank you for your response and help.
Anyway now I understand the latch a little more than before the
posting.
In coding experiences, when writing code equations, a reasonalble FPGA
engineer will never generate a situation that leads to a signal
appearing in both sides of logic equation in concurrent area. Because
most of time the odd behavior equations would be fully beyond the
acknowledgable. And there is no reason to generate an oscillator
neither.
Jim correctly repeated my question and both of you gave me a right
answer.
Weng