Re: discipline vs signal name conflicts

From: Geoffrey.Coram <Geoffrey.Coram_at_.....>
Date: Mon Jan 30 2006 - 06:26:06 PST
Jonathan -

> in here the default access function for the "charge"
> nature is defined to be "Q"..  which creates a problem

I've had a similar problem; in my case, the C code I was trying to
convert to Verilog-A had a variable called "Acc" which is the
access function for acceleration.

It seemed to me that the compiler should be able to distinguish
between the two identifiers, since the access function always
requires parentheses: Acc(porta,portb).  But I think SV has
some new constructs, forget what they're called (methods?),
where you can write Acc.function() to get some information
about Acc, and one could imagine both parameters and access
functions having such constructs.


> IE my favorite simulator doesn't make it easy (not
> impossible but not easy!!) to customize the default
> displpines file so that this problem is eliminated..

Isn't it trivial to fix disciplines.h?  I mean, the first line
of all my V-A files is `include "disciplines.h" and I could
certainly replace that with `include "mydisciplines.h"


-Geoffrey
Received on Mon Jan 30 06:26:21 2006

This archive was generated by hypermail 2.1.8 : Mon Jan 30 2006 - 06:27:20 PST