Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
sneha22
Posts: 13
Registered: ‎01-17-2011
0
Accepted Solution

WARNING:Xst:2170

HI,

 

I am getting this warning though I have not created too many case states .There are only 4 case statements.

 

 

WARNING:Xst:2170 - Unit RS232_TX : the following signal(s) form a combinatorial loop: next_state<3>.
WARNING:Xst:2170 - Unit RS232_TX : the following signal(s) form a combinatorial loop: next_state<2>.
WARNING:Xst:2170 - Unit RS232_TX : the following signal(s) form a combinatorial loop: next_state<1>.
WARNING:Xst:2170 - Unit RS232_TX : the following signal(s) form a combinatorial loop: next_state<0>.
What danger does it pose to the block of the code?
I dont know why i am getting this warning?

 

 

Expert Contributor
awillen
Posts: 687
Registered: ‎11-29-2007

Re: WARNING:Xst:2170

The warnings you get have nothing to do with you having too many states (what makes you think that?). The real reason is that you did not use proper synchronous digital design techniques: your signal next_state is read and written to in a combinational circuit.

To see how a state machine has to be coded, open the Language Temples ==> Verilog/VHDL ==> Synthesis constructs ==> Coding examples ==> State machines.

Better yet, buy a book on your favorite HDL and read it thoroughly.

 

 

Adrian



Signature:
1. Google your question before asking it.
2. If Google doesn't find a solution, post your question in a detailed, comprehensive, and clear way.
3. If someone answers your question, mark the post with "Accept as solution". If you see a particularly good and informative post, consider giving it Kudos (the star on the left).
Visitor
sneha22
Posts: 13
Registered: ‎01-17-2011
0

Re: WARNING:Xst:2170

solved it..
Expert Contributor
bassman59
Posts: 4,653
Registered: ‎02-25-2008
0

Re: WARNING:Xst:2170

 


sneha22 wrote:
solved it..

And your solution was ... ??

 


----------------------------------------------------------------
Yes, I do this for a living.
Expert Contributor
awillen
Posts: 687
Registered: ‎11-29-2007

Re: WARNING:Xst:2170

 


bassman59 wrote:

 


sneha22 wrote:
solved it..

And your solution was ... ??

 


...probably not to create a combinational loop.

 



Signature:
1. Google your question before asking it.
2. If Google doesn't find a solution, post your question in a detailed, comprehensive, and clear way.
3. If someone answers your question, mark the post with "Accept as solution". If you see a particularly good and informative post, consider giving it Kudos (the star on the left).
Visitor
sneha22
Posts: 13
Registered: ‎01-17-2011
0

Re: WARNING:Xst:2170

i was bymistake changing the state of the fsm outside the clk process..silly one ...
Visitor
melika
Posts: 24
Registered: ‎10-20-2011
0

Re: WARNING:Xst:2170

hello,
i have this warning in ISE 10.1, but it does not write any signals that form a combinatorial loop??!!
how i can find that signals?
thanks.

WARNING Xst :2170 :the following signal(s) form a combinatorial loop:warning.png

Visitor
mrovin
Posts: 1
Registered: ‎12-27-2012
0

Re: WARNING:Xst:2170

If you don't see the signal involved in the combinational loop, it is just because you are viewing the design summary window. But if you switch to console or warnings panes (at the bottom of the main window) you will see the same messages but with the list of involved signals. Hope this helps.