Combinational Loop

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello,

   

during the design process PSoC produced a warning that I created a combinational loop. After searching for this term I understand what it is but not why it is a problem.

   

I uploaded a project for the specific problem. There are two inputs (resistive pull-down) und two outputs. If one of the inputs goes high, the corresponding output should go high as well, if the other input is low. If one input and therefor one output is high and the second input goes high as well, the output should stay the same.

   

To break the loop you could add a D-FlipFlop into the loop but I don't understand why this should improve the behavior?

   

Are there any problems that could occure I currently don't think about?

   

 

   

Best regards.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I see the feedback condition, odd though does not look latching because of the AND.

   

 

   

Try a clocked LUT, that would force it to be registered and sampled.

   

 

   

Regards, Dana.

View solution in original post

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

When you set up a truth table for your in- and outputs you may see that there are some indeterministic states which could lead to oscillation.

   

An analys of your equation delivers that there are no oscillating states:

   

Q = (A & !B) | (A & Q)

   

A    B    Qn   Qn+1
0    0    0    0
0    1    0    0
1    0    0    1*
1    1    0    0
0    0    1    0*
0    1    1    0*
1    0    1    1
1    1    1    1

   

* indicates change in output Qn+1

   

Each state with an output change leads to a state with the same output value, so it is stable.

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I see the feedback condition, odd though does not look latching because of the AND.

   

 

   

Try a clocked LUT, that would force it to be registered and sampled.

   

 

   

Regards, Dana.

0 Likes