The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 25th, 2024, 1:03am
Pages: 1
Send Topic Print
Nature declarations in Verilog-AMS (Read 2186 times)
Grzegorz Jakacki
New Member
*
Offline



Posts: 1

Nature declarations in Verilog-AMS
Sep 06th, 2004, 1:28am
 
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
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.