bluespec.com Forum Index bluespec.com
Bluespec Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FSM Problem

 
Post new topic   Reply to topic    bluespec.com Forum Index -> Designing with BSV's Rules, Interfaces, ...
View previous topic :: View next topic  
Author Message
justrajdeep



Joined: 12 Oct 2009
Posts: 5

PostPosted: Wed Mar 31, 2010 6:47 am    Post subject: FSM Problem Reply with quote

Hi,
i want to design a systolic structure.
i have made the design using a function with noinline
this i am calling in a loop in seq in a FSM. after the systolic operation is over i want to fire a rule with a pulsewire signal from the fsm.
this rule will check for certain bit patterns and restart the FSM by doing a FSM abort.
else the fsm should perform some more operations and exit.
i am facing a problem with fsm.abort()
it keeps telling me that the condition of firing the FSM depends on the firing of the fsm.
without the pulsewire and fsm abort the FSM works as expected.

any suggestion guys???
thanks in advance
Back to top
View user's profile Send private message
justrajdeep



Joined: 12 Oct 2009
Posts: 5

PostPosted: Mon Apr 05, 2010 9:37 am    Post subject: Reply with quote

hi,
this can be something very naive but can someone post me a small example of fsm.abort()
i am not being able to use it properly.
Back to top
View user's profile Send private message
baltus



Joined: 30 May 2007
Posts: 13

PostPosted: Wed Apr 21, 2010 3:11 pm    Post subject: Reply with quote

Hi,

Sorry to be so long in responding to this.

From what you describe, your FSM must be altering (via a wire or something) the values that are checked in order to initiate the abort.

The values being checked must be registered somewhere along the path from an fsm output to the rule calling fsm.abort().

If its possible with your code, you could also call the abort directly inside the fsm. Inside the fsm, abort is called just like a break command but with no need to be inside a loop.

Feel free to send example code and I'll take a look.

Don Baltus
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bluespec.com Forum Index -> Designing with BSV's Rules, Interfaces, ... All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
bluespec.com topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP