Re: Verilog-AMS - Issue 15: `include


Subject: Re: Verilog-AMS - Issue 15: `include
From: Kevin Cameron x3251 (Kevin.Cameron@nsc.com)
Date: Tue Jul 09 2002 - 14:35:09 PDT


> From krolnik@lsil.com Tue Jul 9 12:50:20 2002
>
> Mac writes:
>
> :Simon Davidmann writes:
> : > [1 <text/plain; us-ascii (7bit)>]
> : >
> : > In C the methodology is all about using header files - and more so
> : > with C++. In my experience, in Verilog this is not the case
> : >
>
> :I disagree! Good Verilog design strategy very definiatly uses include
> :files.
>
> You two are arguing two different points - experience (history) vs.
> methodology.
>
> I agree with Simon. Verilog designers say, 'what's an include file?
> It sounds evil!"
>
> ...
>
> I agree with Mac, that include files are part of a good methodology.
> You share common information rather than duplicate it and have the wrong
> value.
>
> Back to the request, I do not see the value of supporting <>. Tools are free
> to define the include file search path to what they desire. We already support
> the +incdir+<dir>[+<dir>] to extend the search paths.

Not all includes are part of the user's methodology. In C/Unix the <> quoted
includes indicate OS dependent functionality with a common API. In Veriolg-AMS it
would serve the same purpose because analog simulators are much more variable in
their modelling support than digital simulators.

> The only (bad) thing that <> allows is to have a system include file matching
> the name of a user include file. This would be a bad, dangerous practice.

C does it, I have not found it to be a problem. It's good practice to make the
distinction.

> Adam Krolnik

For the sake of argument you should assume that there is some information about
the Verilog-A[MS] simulator that analog models depend on knowing and that it
will be delivered bundled with the simulator and that it will be a seperate include
directory.

The proposed search algorithm is:

  <> Search the system include directories first.
  "" Search the system include directories last.

  +incdir directories are searched before any the system includes (for C -I compatibility)

Kev.



This archive was generated by hypermail 2b28 : Tue Jul 09 2002 - 14:37:40 PDT