One Hot FSM stuck !!

N

Nic

Hi

I have a desgn that has a one hot FSM.
I'm using ISE Webpack 6.1 and XST to synth the VHDL.
Somtimes the design locks up, using Chipscope, I've been able to probe
the state of the FSM machine and it's locked up with no states active.

This is impossible I know.

Does anyone have any idea on how this could happen ?
This problem is driving us mad.

Thanks

Nic
 
R

Ralf Hildebrandt

Nic wrote:

Somtimes the design locks up, using Chipscope, I've been able to probe
the state of the FSM machine and it's locked up with no states active.

Maybe a hazard on an asynchronous reset?
Maybe a hazard on a signal, that chooses which state is next short
before the clock-edge?

Ralf
 
A

Amontec Team, Laurent Gauch

Nic said:
Hi

I have a desgn that has a one hot FSM.
I'm using ISE Webpack 6.1 and XST to synth the VHDL.
Somtimes the design locks up, using Chipscope, I've been able to probe
the state of the FSM machine and it's locked up with no states active.

This is impossible I know.

Does anyone have any idea on how this could happen ?
This problem is driving us mad.

Thanks

Nic

Hi,

The only way to have the trouble are :

- asyncronous circuit
- frequency system too high for you circuit.

First, makesure to synchronize all input of your FSM.
Second, goto to the P&R static timing report of your design and check
the max frequency corresponding with the most significant pass in your
logic level.

Regards,
Laurent
www.amontec.com

------------ And now a word from our sponsor ------------------
Do your users want the best web-email gateway? Don't let your
customers drift off to free webmail services install your own
web gateway!
-- See http://netwinsite.com/sponsor/sponsor_webmail.htm ----
 
M

Mike Treseler

Nic said:
I have a desgn that has a one hot FSM.
I'm using ISE Webpack 6.1 and XST to synth the VHDL.
Somtimes the design locks up, using Chipscope, I've been able to probe
the state of the FSM machine and it's locked up with no states active.

This is impossible I know.

Does anyone have any idea on how this could happen ?
This problem is driving us mad.

Consider binary encoding.

http://groups.google.com/groups?q=one-hot+log2+utilization

-- Mike Treseler
 
P

Peter Hermansson

Nic said:
Hi

I have a desgn that has a one hot FSM.
I'm using ISE Webpack 6.1 and XST to synth the VHDL.
Somtimes the design locks up, using Chipscope, I've been able to probe
the state of the FSM machine and it's locked up with no states active.

This is impossible I know.

Does anyone have any idea on how this could happen ?
This problem is driving us mad.

I had a similar problem. My FSM was sometimes stuck when a cable was
removed or inserted while the board was powered. All inputs to the FSM
where synchronised with dual flip-flops. Then solution was to put an
attribute in the VHDL code to get binary coding of the FSM. To cover
all unused states in the FSM is also good design practice.

/Peter
 
F

FGreen

I had a similar problem. My FSM was sometimes stuck when a cable was
removed or inserted while the board was powered. All inputs to the FSM
where synchronised with dual flip-flops. Then solution was to put an
attribute in the VHDL code to get binary coding of the FSM. To cover
all unused states in the FSM is also good design practice.

/Peter

Are you using async. reset? That is suspicion, as someone suggested
earlier. If this async. reset isn't taken care of properly, it can
cause exactly what the orig. poster described. Making the state var.
binary would solve the problem, but that doesn't cure the underlying
issue. Using GSR of startup block would exacerbate the problem, by
the way.

I used to code with async. reset, and now I'm a big proponent of sync.
reset. It requires more work, but pays off.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top