Thanks for the response... TimedDelay just sends out a token after a specified delay (send (token, delay)). what I am looking at is to stop(delay) the execution by a clock and proceed. I could have used TimedDelay if I had to delay in a particular simulation. But I need to delay inside an actor and not while sending out the Token. Just somehow hold the execution for one clock. Its a flipflop kind of a device which needs to hold the data for 1 clock and then give it out to the next stage of execution.
- kiran ----- Original Message ----- From: "Edward A Lee" <[EMAIL PROTECTED]> Date: Tue, 02 Dec 2003 15:23:31 -0800 To: "Kiran SB" <[EMAIL PROTECTED]> Subject: Re: Need to delay execution by 1 clk... > > Will the TimedDelay actor do what you need? > > Edward Lee > > At 04:06 PM 11/27/2003 +0500, Kiran SB wrote: > >Hi > >I am new to ptolemy (6 months). > >Currently I am using PTII 3.0.2 for building(simulating) custom actors in the > >DE domain, which are basically executional elements (of a reconfigurable > >device). > > > >In one particular situation I have an actor with 8 stages of execution. > >During initialize I construct a Execution(Data) flow graph depending on the > >selector settings in the actor. > >I traverse through the graph and execute each stage in it during fire. > >Now at one stage I need to create a delay of 1 clock. > >The executional unit needs to sleep for a clock and proceed to the next stage. > >Basically I need to forward time by a clock. > >setCurrentTime (currentTime+1) might not be a good idea as it might cause > >problems to the token's timestamp. > >What is to be achieved is that the currentTime after this stage should be > >t+1(say we started at t). > >I don't know if I can use DEEventQueue in any way for this purpose. > >Maybe its a wrong or a repeat question! > >I have searched all group messages and couldn't find anybody with such a > >requirement. > >Can somebody help me out with this problem? > > > >- kiran > >-- > >______________________________________________ > >Check out the latest SMS services @ http://www.linuxmail.org > >This allows you to send and receive SMS through your mailbox. > > > > > >Powered by Outblaze > > > >---------------------------------------------------------------------------- > >Posted to the ptolemy-hackers mailing list. Please send administrative > >mail for this list to: [EMAIL PROTECTED] > > ------------ > Edward A. Lee, Professor > 518 Cory Hall, UC Berkeley, Berkeley, CA 94720 > phone: 510-642-0455, fax: 510-642-2739 > [EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal > -- ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]