FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-12-2005, 10:49 PM
[email protected]
Guest
 
Posts: n/a
Default Safe State Machine Design in AHDL

Hello, I was curious if anyone can comment on writing safe state
machines in AHDL. I often use One-hot encoding in my state machines and
am curious how safe it is. I set the State Machine setting in Quartus
for One-hot Encoding, does this force all my state machines to be safe.
If I just add the line to my state machine:

When Others => StateMachine = StateA; -- go back to start

will the state machine be considered safe?

thanks,
joe

Reply With Quote
  #2 (permalink)  
Old 07-13-2005, 11:34 AM
Arash Salarian
Guest
 
Posts: n/a
Default Re: Safe State Machine Design in AHDL

Yes and no.
The real questions is: "safe from what?". State machines just don't go wild
out of blue.
In fact, this question is very hard to answer. Consider this: you detect an
invalid code in the middle of some complex situation, should you only reset
the module? Reset your chip? Reset the whole board? Reset the system? In
your module, go to a default state? What can you do in the default state?
What about the state of all of the output ports in your module just before
the failure? Can you just set them back to a default state? What about the
other modules that are connected these outputs? What about their internal
state?....

It all depends on the situation, the objectives of the whole system design,
the probabilities of such failures and the cost you're willing to pay to
protect your system from them. Sometimes it is going to be very complex and
in some simpler cases, a reset would do the trick...

<[email protected]> wrote in message
news:[email protected] oups.com...
> Hello, I was curious if anyone can comment on writing safe state
> machines in AHDL. I often use One-hot encoding in my state machines and
> am curious how safe it is. I set the State Machine setting in Quartus
> for One-hot Encoding, does this force all my state machines to be safe.
> If I just add the line to my state machine:
>
> When Others => StateMachine = StateA; -- go back to start
>
> will the state machine be considered safe?
>
> thanks,
> joe



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Monolithic state machine or structured state machine? vax,3900 FPGA 6 05-12-2004 03:06 AM
Safe state machine design problem MM FPGA 7 10-03-2003 07:38 AM


All times are GMT +1. The time now is 02:35 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved