suggestion

From: Ken Kundert <ken_at_.....>
Date: Tue Aug 28 2007 - 20:43:32 PDT
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

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Received on Tue Aug 28 20:43:58 2007

This archive was generated by hypermail 2.1.8 : Tue Aug 28 2007 - 20:44:12 PDT