# Calling a test (which is a "module" in a sv file) inside the testbench file (which is a verilog file)

**URL:** <https://verificationacademy.com/forums/t/calling-a-test-which-is-a-module-in-a-sv-file-inside-the-testbench-file-which-is-a-verilog-file/32808>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, system-verilog-module\
**Created:** [February 3, 2017, 11:37pm UTC](https://verificationacademy.com/forums/t/calling-a-test-which-is-a-module-in-a-sv-file-inside-the-testbench-file-which-is-a-verilog-file/32808 "2017-02-03T23:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saraswati](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@Saraswati](https://verificationacademy.com/forums/u/Saraswati)\
**Post date:** [February 3, 2017, 11:37pm UTC](https://verificationacademy.com/forums/t/calling-a-test-which-is-a-module-in-a-sv-file-inside-the-testbench-file-which-is-a-verilog-file/32808/1 "2017-02-03T23:37:00Z")

</div>

Hi,  
I wish to know whether we can call a test(which is a “module” in a sv file)for execution inside the testbench file (which is a verilog file) ?

Thanks 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:** [February 4, 2017, 12:10am UTC](https://verificationacademy.com/forums/t/calling-a-test-which-is-a-module-in-a-sv-file-inside-the-testbench-file-which-is-a-verilog-file/32808/2 "2017-02-04T00:10:47Z")

</div>

_In reply to [Saraswati](https://verificationacademy.com/forums/t/calling-a-test-which-is-a-module-in-a-sv-file-inside-the-testbench-file-which-is-a-verilog-file/32808):_

Your question is not very clear. You never _call_ modules for execution; you instantiate modules inside of other modules.

Maybe you are asking if you can instantiate a module compiled in SystemVerilog inside a module restricted to Verilog-only. The answer that is yes; as long as the port data-types of the SystemVerilog module are assignment compatible with Verilog data types.

---

<div class="post-metadata">

**Author:** ![Saraswati](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/3d9bf3/32.png) [@Saraswati](https://verificationacademy.com/forums/u/Saraswati)\
**Post date:** [February 9, 2017, 8:26am UTC](https://verificationacademy.com/forums/t/calling-a-test-which-is-a-module-in-a-sv-file-inside-the-testbench-file-which-is-a-verilog-file/32808/3 "2017-02-09T08:26:01Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/calling-a-test-which-is-a-module-in-a-sv-file-inside-the-testbench-file-which-is-a-verilog-file/32808/2):_

Hi Dave,  
Thanks for your answer, and by instantiating the module in another module, whatever is inside the module would execute right ?  
Thanks!
