I was playing around with the to_string function:
function to_string (
VALUE : in TIME;
JUSTIFIED : in SIDE := right;
FIELD : in WIDTH := 0;
resolution : in TIME := Sim_Resolution
) return STRING;
and looking into implementations.
In the LRM, there is only one way to get "time" into any other format:
function "/" (anonymous, anonymous: TIME) return universal_integer;
Since 1 hr / 1 fs > integer'high there is no way I can do this,
because I need to use "real" math to manipulate the number.
Can I recommend that we drop this one and go back to:
function to_string (
VALUE : in TIME;
JUSTIFIED : in SIDE := right;
FIELD : in WIDTH := 0
) return STRING;
Though I like the idea of the deferred constant "sim_resolution".
It gives you something to check in your testbenches to make sure
that you have the correct simulation resolution set.
If somebody comes up with a clever idea, we can always revisit it
later.
-- David W. Bishop dbishop@vhdl.org All standard disclaimers apply.Received on Mon Sep 27 13:17:57 2004
This archive was generated by hypermail 2.1.8 : Mon Sep 27 2004 - 13:18:08 PDT