How to generate a sine wave from a sequence in my test bench?

I want to drive an analog signal(sin wave/triangular wave) from my driver to my DUT but I am not sure how to generate one and is it possible to drive it continuously from the driver. I will appreciate any help regarding this query. Thanks in advance.

In reply to 8Blades:

You could use DPI and import sin/cos from C Math library. Many AMS add-ons/libraries in EDA tools do that for you. Check with your simulator manual.

Srini
www.verifworks.com

In reply to 8Blades:

Google this

Create a Sine Wave Generator Using SystemVerilog

You’ll get all information on 1st link itself.