The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 18th, 2024, 12:28am
Pages: 1
Send Topic Print
disable task by event handler in same module (Read 1220 times)
RolfK
New Member
*
Offline



Posts: 7
Germany
disable task by event handler in same module
Jan 04th, 2013, 1:53pm
 
Dear Experts,
I run into a problem I,m not sure about. What I want to do is call a task by some event (always@(event)) and (as the task may be still executing) disable it before calling it again.
I think I need to execute the task inside a fork join block.
But this seems not to work. If the task is started once (evtDebug7 is seen) it will not be triggered again, even the event condition in the sourounding always block is matching.

Code:
always @( i_digital_core.evtClkSysTriggers_r[INST_INDEX] ) begin
	-> evtDebug7 ;
	disable  ccTiming ;  // The disable task does not work, don't know why. TASK IS BLOCKING ???!!!
	#1 ;  // just for trial
	fork    // Fork join did not help
		ccTiming( i_digital_core.valueClkSysTriggers[INST_INDEX] ) ;
	join
end 



Hope someone can tell me to make this right.

Thanks a lot

RolfK
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.