Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - One Hot FSM stuck !!

 
Thread Tools Search this Thread
Old 02-26-2004, 12:09 PM   #1
Default One Hot FSM stuck !!


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


Nic
  Reply With Quote
Old 02-26-2004, 03:40 PM   #2
Ralf Hildebrandt
 
Posts: n/a
Default Re: One Hot FSM stuck !!
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



Ralf Hildebrandt
  Reply With Quote
Old 02-26-2004, 08:12 PM   #3
Amontec Team, Laurent Gauch
 
Posts: n/a
Default Re: One Hot FSM stuck !!
Nic wrote:
> 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 ----


Amontec Team, Laurent Gauch
  Reply With Quote
Old 02-27-2004, 03:09 AM   #4
Mike Treseler
 
Posts: n/a
Default Re: One Hot FSM stuck !!
Nic wrote:

> 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=on...g2+utilization

-- Mike Treseler




Mike Treseler
  Reply With Quote
Old 02-27-2004, 07:42 AM   #5
Peter Hermansson
 
Posts: n/a
Default Re: One Hot FSM stuck !!
Nic <> wrote in message news:<>. ..
> 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


Peter Hermansson
  Reply With Quote
Old 03-02-2004, 06:31 PM   #6
FGreen
 
Posts: n/a
Default Re: One Hot FSM stuck !!
(Peter Hermansson) wrote in message news:<. com>...
> Nic <> wrote in message news:<>. ..
> > 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


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.


FGreen
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
window explorer got stuck spidervn General Help Related Topics 1 09-27-2006 04:44 PM
Whoops! Samsungs Blu-Ray player stuck at single layer... Jordan DVD Video 4 06-21-2006 03:56 PM
GAH! burner stuck at 1.6x! Brian DVD Video 8 06-10-2005 01:11 PM
TheDigitalReview: STUCK ON YOU - DVD REVIEW Mike McGee DVD Video 0 04-22-2004 01:28 AM
New Releases: Stuck on You, Fox announcements: Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 0 02-17-2004 06:04 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46