Ken, Geoffrey, I think we could also allow passing of a NULL argument as the time tol to resolve this issue i.e.; @(timer(0, 1n,, 0)) ^- this is a NULL argument in Verilog. Thanks, --Martin -----Original Message----- From: owner-verilog-ams@eda.org [mailto:owner-verilog-ams@eda.org] On Behalf Of Ken Kundert Sent: Tuesday, September 04, 2007 7:36 PM To: Geoffrey.Coram Cc: verilog-AMS LRM Committee Subject: Re: disabling event functions Geoffrey, Of course you are right, and that is unfortunate. However, as tolerances must be positive, it would be possible to indicate that a non-positive tolerance is ignored. In that way @(timer(0, 1n, 0, 0)) could represent a disabled timer function with default tolerances. -Ken Geoffrey.Coram wrote: > Ken - > My first reaction is that, at least for timer(), you would then be > required to specify the time tolerance: > > timer( start_time [, period [, time_tol [, enable]]] ); > > which might or might not be desirable. > > -Geoffrey > > > Ken Kundert wrote: >> Gentlemen, >> I have run across another situation where it would have been >> helpful to be able to disable an event function. Earlier I suggested >> that setting the direction argument of the cross function to >> something other than -1, 0, or +1 should disable it. This is >> important because events in an analog simulator are expensive. I have >> now found that it would be useful to be able to disable the timer >> function. And by extension, it seems like a good idea to be able to disable the above function as well. >> >> I would like to suggest that we add boolean argument to each of the 3 >> analog event functions (cross, above, & timer) that can be used to >> disable them. >> >> Comments? >> >> -Ken >> > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Sep 4 20:32:12 2007
This archive was generated by hypermail 2.1.8 : Tue Sep 04 2007 - 20:32:16 PDT