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


Subject: RE: [sv-ec] Comments on event changes CH17.html
From: Shalom.Bresticker@motorola.com
Date: Thu Jan 09 2003 - 19:58:16 PST


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 - 19:58:50 PST