Re: [sv-bc] A new proposal uploaded for issue 216

From: Greg Jaxon <Greg.Jaxon_at_.....>
Date: Tue May 03 2005 - 10:56:41 PDT
http://www.eda.org/svdb/file_download.php?file_id=978&type=bug says:

the following declares three variables GEN[0].my_var1, GEN[1].my_var1 and GEN[2].my_var1



              `define NC 0

                  for (genvar I = 0; I < 3; I++) begin:GEN

              `incr NC

                       var my_var``NC;

                  end

--------------------

Do you have any prior text supporting the notion that generate loops
are unrolled BEFORE macro substitution occurs?   It must then be the
case that macro definitions cannot be substituted into the loop bounds
expressions of generated for loops.   Considering that only the keyword
"genvar" was needed to cause this profound inversion of the macro processing
order, I think I have to object that this is too ambiguous for my taste.

Greg Jaxon
Received on Tue May 3 10:56:46 2005

This archive was generated by hypermail 2.1.8 : Tue May 03 2005 - 10:56:53 PDT