Re: [sv-ec] Comments on event changes CH17.html


Subject: Re: [sv-ec] Comments on event changes CH17.html
From: Arturo Salz (Arturo.Salz@synopsys.com)
Date: Thu Jan 09 2003 - 23:45:37 PST


Jay is right. VCS and all other simulators (I know) will get1.

    Arturo

----- Original Message -----
From: <Shalom.Bresticker@motorola.com>
To: "Jay Lawrence" <lawrence@cadence.com>
Cc: "Arturo Salz" <Arturo.Salz@synopsys.COM>; <sv-ec@eda.org>
Sent: Thursday, January 09, 2003 7:58 PM
Subject: RE: [sv-ec] Comments on event changes CH17.html

Actually, I have heard that VCS may give you 2.

Shalom

> reg [31:0] a,b,c;
> fork
> begin
> c = 1;
> b = c;
> end
> begin
> c = 2;
> end
> join
>
> What is the value of b?
>
> It could be either 1 or 2. Sequential code is not guaranteed to not be
> interleaved. I don't know of a simulator that wouldn't get a 1, but is
> legal to say 2.



This archive was generated by hypermail 2b28 : Thu Jan 09 2003 - 23:45:26 PST