Re: Port directions

From: Kevin Cameron <dkc@grfx.com>
Date: Thu Jun 03 2010 - 23:40:00 PDT

I don't think that's sufficient - is a constant current a source or a
sink, input or output?

The input/output stuff makes sense at some levels of abstraction, but
not when you're talking about which way currents are going. You would
also have to consider the interaction with sub-modules, OOMRs and
back-annotation.

I think any attempt interpret input/output usage as an error will just
cause problems. I voted "no" on this one when it came up for Verilog-A
1.0, I'm still voting "no".

I would suggest talking to your vendor(s) and getting it added as an
option to see how it works in practice before committing anything to the
LRM.

Kev.

On 06/03/2010 05:49 PM, Ken Kundert wrote:
> Marq,
> It seems to me that with signal flow the port direction can be
> checked to assure that it consistent with the behavior.
>
> Kevin,
> Signal flow is easily recognized by the fact that the disciplines
> have only one nature.
>
> -Ken
>
> On 06/03/2010 05:26 PM, Kevin Cameron wrote:
>
>> How are you going to recognize signal flow?
>>
>> You might want to try addressing this issue in the assertions committee
>> - i.e. if you can make up some rule about
>> drivers/contributions/disciplines that can be tested then this problem
>> moves into user space (being programmable) rather than being
>> hard-defined in the standard.
>>
>> Kev.
>>
>> On 06/03/2010 02:26 AM, Marq Kole wrote:
>>
>>> Hi Kevin, Ken,
>>>
>>> I can understand not wanting to impose this limitation for conservative disciplines, but how about signal-flow disciplines? There you want to make sure that not more than one driver exists for a potential-only discipline or more than one sink for a flow-only discipline.
>>>
>>> Cheers,
>>> Marq
>>>
>>> -----Original Message-----
>>> From: owner-verilog-ams@eda.org [mailto:owner-verilog-ams@eda.org] On Behalf Of David Miller
>>> Sent: Wednesday 2 June 2010 21:01
>>> To: Verilog-AMS LRM Committee
>>> Subject: Port directions
>>>
>>> Should the language enforce that port directions are honored?
>>> Specifically ports that are defined as input, should it be a error if you
>>> contribute to a branch containing that port?
>>>
>>> module mymod(a,b);
>>> electrical a,b;
>>> input a,b;
>>> analog V(a,b) <+ 5;
>>> endmodule
>>>
>>> Should this be an error, since a,b are input?
>>>
>>>
>>>
>>>
>>
>>
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jun 3 23:40:20 2010

This archive was generated by hypermail 2.1.8 : Thu Jun 03 2010 - 23:40:28 PDT