I'm not sure it should give a compiler error, but if not, it will result in a zero-time infinite loop. It is effectively the same as always out1 = in1*in2 ; To be useful, 'forever' needs a timing control, and timing controls ARE illegal in always_comb. Shalom > -----Original Message----- > From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On > Behalf Of Kakoli Bhattacharya > Sent: Monday, October 23, 2006 12:40 PM > To: sv-ec@server.eda.org > Subject: [sv-ec] Forever within always_comb > > Hello, > > Is forever statement illegal within an always_comb block? > > always_comb > forever out1 = in1*in2; > > Should the above eg give an error at compile time or at simulation? > > Thanks, > KakoliReceived on Mon Oct 23 04:28:35 2006
This archive was generated by hypermail 2.1.8 : Mon Oct 23 2006 - 04:28:40 PDT