Questions re sync_reset_on/off

From: <john.aynsley@doulos.com>
Date: Thu Jul 22 2010 - 10:39:06 PDT

Bishnupriya, All,

I've got a few questions about sync_reset_on/off. Just to be clear ...

* The target process is reset when it wakes up due to its sensitivity
having triggered. Does this include time-outs? E.g. a thread is in the
middle of wait(10, SC_NS) when it gets sync_reset_on. Does it reset when
it resumes due to the time-out?

* You say it is an error to call sync_reset_on for a method process. What
about sync_reset_off? Is that an error too, or is the implementation
allowed to just ignore it?

* You say that if a process does sync_reset_on/off on itself, the call
takes effect the next time the process wakes up. I am confused. Do you
mean to say that the next event notification to which it is sensitive
would cause a sync reset, or not?

* You say that calling sync_reset_on before simulation starts shall have
no effect. Why? I expect you have a good reason, but my first reaction was
that I would have expected it to put the process into the sync reset
state, which would make no difference the first time the thread function
is called, but would subsequently make a big difference.

Thanks,

John A

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jul 22 10:39:27 2010

This archive was generated by hypermail 2.1.8 : Thu Jul 22 2010 - 10:39:28 PDT