# $sdf\_annotate in a Testbench

**URL:** <https://verificationacademy.com/forums/t/sdf-annotate-in-a-testbench/39911>\
**Category:** UVM\
**Tags:** UVM, SystemVerilog\
**Created:** [December 24, 2021, 6:30am UTC](https://verificationacademy.com/forums/t/sdf-annotate-in-a-testbench/39911 "2021-12-24T06:30:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hcglu](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/67e7ee/32.png) [@hcglu](https://verificationacademy.com/forums/u/hcglu)\
**Post date:** [December 24, 2021, 6:30am UTC](https://verificationacademy.com/forums/t/sdf-annotate-in-a-testbench/39911/1 "2021-12-24T06:30:20Z")

</div>

Hi everyone,

I saw some codes given below. They call $sdf\_annotate(xxx.sdf, inst\_name.DUV). I could not understand why. SDF is a file including timing informations and delay. Why would we need to call a sdf file for verification?

"

> _In the initial stages of your design you will be performing “functional” simulations to ensure the logic in your circuit operates correctly. After your FPGA or ASIC tools generate a layout for your gate-level design, you may want to perform a final simulation with back-annotated timing information generated during the layout process to account for real world interconnect and gate delays. This “timing” simulation is often used as a final check to ensure that unexpected delays generated during the layout process don’t create timing violations in your design. The layout tools will create a Standard Delay File (SDF) that includes this timing information_

"

```verilog

initial begin 

`ifdef TIMING_SIM

$sdf_annotate(a_project//design/netlist/xx_top.sdf", AL_0.DUV)

`endif

end

```

---

<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:** [December 25, 2021, 7:48am UTC](https://verificationacademy.com/forums/t/sdf-annotate-in-a-testbench/39911/2 "2021-12-25T07:48:37Z")

</div>

_In reply to [hcglu](https://verificationacademy.com/forums/t/sdf-annotate-in-a-testbench/39911):_

The **S** tandard **D** elay **F** ormant (SDF) is an IEEE standard ([1497-2001](https://ieeexplore.ieee.org/document/972829)) intended to be used with many HDL and other gate-level netlist languages. SDF is independent of source language, although almost all gate-level netlists today are in Verilog.

Having the SDF in a separate file also makes it easier for tools to read in a netlist then create a file with just the timing information and not have to output a redundant netlist.

---

<div class="post-metadata">

**Author:** ![hcglu](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/67e7ee/32.png) [@hcglu](https://verificationacademy.com/forums/u/hcglu)\
**Post date:** [December 25, 2021, 9:28am UTC](https://verificationacademy.com/forums/t/sdf-annotate-in-a-testbench/39911/3 "2021-12-25T09:28:15Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/sdf-annotate-in-a-testbench/39911/2):_

Thank you Dave. Your answer is so informative but I could not understand that. I saw these code given above in a UVM based verification environment. What is the advantage of using these file in such a verification environment? Why did choose that?

Thanks,  
Hakan
