Re: [vhdl-200x] conditional compilation proposal

From: Evan Lavelle <eml-vhdl-200x@cyconix.com>
Date: Wed Aug 17 2011 - 06:30:38 PDT

On 17/08/2011 13:33, Scott Thibault wrote:

> No a sequential generate is not necessary. As you pointed out, the existing
> sequential if statement is suitable for that purpose. The only thing
> necessary for that is a defined function.

I did *not* point out that an if statement is suitable for that purpose,
and it is not suitable, by any stretch of the imagination. A *new*
"static if" might be considered by some as suitable for that purpose, as
I have pointed out in detail elsewhere, with the issues that I have also
pointed out in detail. Your 'if defined()' construct could be construed
to have the same semantic meaning, but only if "if defined" or some
equivalent becomes a reserved word, and the argument is required to be
static. Simply using 'defined' as a function name doesn't do it.

Your proposal - if it actually is a proposal - is that conditional
compilation should be handled by a combination of *3* features: the
existing concurrent generate, a new "declaration generate", and a new
mechanism to test static expressions inside sequential code.

-Evan

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Aug 17 06:31:15 2011

This archive was generated by hypermail 2.1.8 : Wed Aug 17 2011 - 06:31:24 PDT