Why bother referencing the `timescale at all? I'd probably go for a different operator e.g. '##': q = ##td d; Kev. Ken Kundert wrote: > All, > It would be very handy to have access to the `timescale value from > within a model so that we can write delays in terms of time rather than > ticks. > > Just to throw something out, say $tick returns the length of a tick in > seconds. Then one can use it in the digital portion of the model as in > the following example (a d flip-flop that implements 1n of delay > regardless of how `timescale was specified) ... > > > parameter real td = 1ns; > ... > > always @(posedge clk) begin > q = #(td/$tick) d; > end > > -Ken > > -- http://www.grfx.com mailto:dkc@grfx.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Aug 28 23:57:16 2007
This archive was generated by hypermail 2.1.8 : Tue Aug 28 2007 - 23:57:32 PDT