# Timescale versus UVM info?

**URL:** <https://verificationacademy.com/forums/t/timescale-versus-uvm-info/49933>\
**Category:** UVM\
**Tags:** UVM, realtime, Timescale\
**Created:** [March 26, 2025, 9:47am UTC](https://verificationacademy.com/forums/t/timescale-versus-uvm-info/49933 "2025-03-26T09:47:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![julien\_payen](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@julien\_payen](https://verificationacademy.com/forums/u/julien_payen)\
**Post date:** [March 26, 2025, 9:47am UTC](https://verificationacademy.com/forums/t/timescale-versus-uvm-info/49933/1 "2025-03-26T09:47:13Z")

</div>

Hello,

By debugging some of my code, I encountered a surprising message :  
uvm\_blabla @ **2250886.000000** ns --: uvm\_test\_top [TEST\_NAME] Start waiting time : **2250885.778000** ns –

It was generated by this line of code :  
`@(posedge top_env.vseqr.DUT_if.Signal); `uvm_info(get_type_name(), $sformatf("Start waiting time : %t", $realtime), UVM_MEDIUM)`

My timescale is the following : **“-TIMESCALE 1ns/10ps”**

So I was wondering if that is because UVM is printing infos only every (first time unit) step, and evey event driven by TB and processed by DUT still have the Precision timestep ?

Or could it be that it causes some issues if I put a delay after that posedge like :  
#100 react();

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [March 26, 2025, 3:20pm UTC](https://verificationacademy.com/forums/t/timescale-versus-uvm-info/49933/2 "2025-03-26T15:20:58Z")

</div>

There was a flaw in the `uvm_report_server` because it used `$time` instead of `$realtime`. A fix that was inadvertently removed, then reapplied in 1800.2 2020-2.0.

---

<div class="post-metadata">

**Author:** ![julien\_payen](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/e56c9b/32.png) [@julien\_payen](https://verificationacademy.com/forums/u/julien_payen)\
**Post date:** [March 26, 2025, 3:34pm UTC](https://verificationacademy.com/forums/t/timescale-versus-uvm-info/49933/3 "2025-03-26T15:34:29Z")

</div>

Thank you for your answer.  
Is it only changing the uvm info behavior, or is it also impacting the code execution ?

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [March 26, 2025, 4:31pm UTC](https://verificationacademy.com/forums/t/timescale-versus-uvm-info/49933/4 "2025-03-26T16:31:44Z")

</div>

it only affects the text displayed by the message. You can safely edit the `uvm_report_server` with this fix if you do not want to switch the latest version.

---

<div class="post-metadata">

**Author:** ![AGS91](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@AGS91](https://verificationacademy.com/forums/u/AGS91)\
**Post date:** [March 29, 2025, 12:11pm UTC](https://verificationacademy.com/forums/t/timescale-versus-uvm-info/49933/5 "2025-03-29T12:11:02Z")

</div>

Hi Dave,  
Just wanted to confirm the following.

Is the flaw due to the following code within function **compose\_report\_message**

```auto
 $swrite(time_str, "%0t", $time);

```

Line 775 from [uvm\_report\_server](https://github.com/edaplayground/eda-playground/blob/master/docs/_static/uvm-1.2/src/base/uvm_report_server.svh)

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [March 29, 2025, 5:14pm UTC](https://verificationacademy.com/forums/t/timescale-versus-uvm-info/49933/6 "2025-03-29T17:14:23Z")

</div>

> [@AGS91](#):
>
> `$swrite(time_str, "%0t", $time);`

Correct.
