RE: [vhdl-200x] conditional compilation proposal

From: Scott Thibault <thibault@gmvhdl.com>
Date: Tue Aug 16 2011 - 17:40:30 PDT

For such a small function, I think a declaration generate would be
appropriate:

if defined("__EDA_VENDOR_1__") generate
  function real _ID23() is
  begin
  -- vendor 1 version
  end;

elsif defined("__EDA_VENDOR_2__") generate
  function real _ID23() is
  begin
  -- vendor 2 version
  end;

else generate
  function real _ID23() is
  begin
  -- generic version
  end;
end generate

--Scott

> -----Original Message-----
> From: owner-vhdl-200x@eda.org [mailto:owner-vhdl-200x@eda.org] On
> Behalf Of Evan Lavelle
> Sent: Tuesday, August 16, 2011 6:30 PM
> To: vhdl-200x@eda.org
> Subject: Re: [vhdl-200x] conditional compilation proposal
>
> On 16/08/2011 20:52, Scott Thibault wrote:
> > The example below would be nicely handled by a generate for the whole
> > function.
>
> A sequential generate? Are we talking about the same thing? Let's see the
> code.
>
> -Evan
>
> --
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Aug 16 17:41:27 2011

This archive was generated by hypermail 2.1.8 : Tue Aug 16 2011 - 17:41:48 PDT