RE: derived natures

From: Kevin Cameron <KCAMERON@altera.com>
Date: Fri Sep 24 2004 - 10:57:14 PDT

I would tend to (1) on the grounds that it probably doesn't matter how
Base.idt_nature is set, Derived should inherit it.

Kev.

-----Original Message-----
From: owner-verilog-ams@eda.org [mailto:owner-verilog-ams@eda.org] On
Behalf Of Geoffrey.Coram
Sent: Friday, September 24, 2004 10:45 AM
To: verilog-ams@eda.org
Subject: derived natures

A question on the designers-guide.com Verilog-AMS Forum:

"Grzegorz Jakacki" wrote:
> Hello,
>
> I have these two declarations in Verilog-AMS:
>
> nature Base ... endnature;
> nature Derived : Base ... endnature;
>
> Neither Base nor Derived define idt_nature.
>
> What is the correct value of Derived.idt_nature ?
>
> There are (at least) two interpretations of LRM, I am not sure
> which one is correct:
>
> (1) Base.idt_nature is not defined, so default is used,
> thus Base.idt_nature==Base. Derived inherits all attributes
> from Base, consequently Derived.idt_nature==Base.
>
> (2) Base.idt_nature is not defined, so Derived does not
> inherit any definition of idt_nature. Consequently
> Derived.idt_nature is not defined. Thus, by default,
> Base.idt_nature==Base and Derived.idt_nature==Derived.
>
> Thanks for any guidance
> Grzegorz

We should add a statement saying which is correct to the next LRM.
Does anyone have a strong opinion?

-Geoffrey
Received on Fri Sep 24 10:57:19 2004

This archive was generated by hypermail 2.1.8 : Fri Sep 24 2004 - 10:57:20 PDT