I agree with you as to C++! Single-inheritance is a pain,
which is why I always have avoided java.
Switch-level modelling is a standard concept in verilog.
I don't have my Std doc handy, but I think there is
a chapter on it; there certainly is one dedicated to
the various constructs (next).
The "switch" is the single transistor, which for digital
simulation can be switched on or off, with no intermediate
state.
Verilog constructs in switch-level modelling include
nmos, pmos, cmos, tran, and their various resistive and
gated variants, as well as the trireg,
Creation of a net of (e. g.) tran's (pass-through transistor models)
with trireg's is required to be simulated correctly by the verilog
Std, but it's never fully implemented in modern, large-netlist
simulators.
Branching to such work causes the simulator to spend more time
than it would otherwise. I haven't programmed a modern simulator,
but I would assume that the code for switch-level modelling probably
would approach that for the rest of the construct set, excluding
the scheduler.
Switch-level modelling used to be used a little for library
development, but now it has no good digital reason to exist,
except maybe as a training aid.
On 08/19/2010 01:21 AM, Kevin Cameron wrote:
>
> Not sure what you mean by "switch-level modeling" or why you think it
> will slow down simulation "significantly".
>
>> "The problem is the further complexity of a SV compiler capable of
> such modelling. "
>
> We're here discussing this stuff because SV does not have the
> capabilities required to model the hardware that folks are designing -
> particularly issues related to power management and timing in digital
> circuits. While those issues are essentially analog, this committee is
> looking at modeling them using discrete methods which will meet users'
> performance requirements (which incorporation of Verilog-AMS wouldn't do).
>
> To put it another way: prior work on SV was related to extending the
> higher levels of abstraction used for synthesis and verification, this
> effort is aimed at extending the actual modeling capabilities, which
> have not changed in a couple of decades (despite advances in Silicon).
>
> Kev.
>
> PS: I'd rather just do it all in C++ myself.
>
> On 08/18/2010 11:39 AM, John Michael Williams wrote:
>> Currently, popular verilog simulators do not handle triregs
>> dependably, at least in the context of general switch-level
>> modelling. There is almost no demand for switch-level
>> simulation among digital designers, and the additional
>> features would slow down the simulation significantly.
>>
>> Design of digital library components generally is not
>> in verilog, but in other languages such as ALF or Liberty,
>> so switch-level verilog, including the trireg, has been
>> bypassed in the area in which it might be most useful.
>>
>> Verilog-A/MS permits compilation of SPICE subckt instances,
>> and I think the piecewise linear modelling available
>> in SPICE would solve all capacitive or timing delay
>> problems to which you are alluding. The problem is the
>> further complexity of a SV compiler capable of such
>> modelling.
>>
>> I would suggest starting up a new "p1800.1" standard
>> proposal to separate all A/MS issues from mainstream
>> digital design in SV. This would allow vendors to claim
>> 1800 conformance while representing analogue functionality
>> as an optional enhancement.
>>
>> Feature creep already is a terrible burden on SV, and
>> adding analogue features without restructuring the
>> language would make the burden grow.
>>
>> Just my opinion, this last . . ..
>>
>> On 08/17/2010 04:01 PM, Kevin Cameron wrote:
>>>
>>> You should be able to implement arbitrary length hold-up on nets using
>>> the driver access functions in Verilog-AMS - a sort of discrete
>>> capacitor model (like trireg) - but it only works properly if you can
>>> accumulate the capacitance of the net (multiple discrete models in
>>> parallel would just give the behavior of the largest individual
>>> instance). Resolution functions can accumulate capacitance so you get
>>> more accurate behavior.
>>>
>
>
--
John Michael Williams
Senior Adjunct Faculty
Silicon Valley Technical Institute
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Aug 19 10:41:27 2010
This archive was generated by hypermail 2.1.8 : Thu Aug 19 2010 - 10:41:29 PDT