[sv-ec] Re: Draft 3 - 9.9 wait/disable fork


Subject: [sv-ec] Re: Draft 3 - 9.9 wait/disable fork
From: Kevin Cameron (Kevin.Cameron@nsc.com)
Date: Fri Feb 28 2003 - 17:06:05 PST


Shouldn't the syntax for wait/disable on a fork be:

  wait|disable <fork label>

- with the current syntax you can't differentiate between multiple fork
statements. I think it's desirable to be able to do this:

     fork : p1 proc_1() ; join_none;
     fork : p2 proc_2() ; join_none;

     wait p1;
     disable p2;

Also, the description of $suspend_thread does not say that it is identical to a #0
(would you need it if it was?), but it doesn't say when exactly in the simulation
cycle the thread starts again - same delta, next delta or next time slot?
$yield might be a better name since "suspend" usually implies a thread sleeps
until some external event wakes it.

Regards,
Kev.

--
National Semiconductor, Tel: (408) 721 3251
2900 Semiconductor Drive, Mail Stop D3-500, Santa Clara, CA 95052-8090



This archive was generated by hypermail 2b28 : Fri Feb 28 2003 - 17:06:40 PST