Regarding multiple file run

89 views
Skip to first unread message

Ankit Singhal

unread,
Mar 10, 2022, 5:30:58 AM3/10/22
to EDA Playground
I have created two tabs in testbench and when I am running it then it is executing testbench.sv. How do I run test1.sv? how does simulator know which file to run?
Screenshot (222).png

EDA Playground

unread,
Mar 12, 2022, 8:57:46 AM3/12/22
to EDA Playground
You need to use 

    `include

in either testbench.sv or design.sv

Ankit Singhal

unread,
Mar 12, 2022, 10:18:06 AM3/12/22
to EDA Playground
what if I have to run only one file from those two?

EDA Playground

unread,
Mar 14, 2022, 4:19:36 AM3/14/22
to EDA Playground
When (System)Verilog is selected, both files testbench.sv and design.sv are compiled. Any other tabs need to be included with `include. If there is nothing in one or both of testbench.sv and design.sv, that's fine.
Reply all
Reply to author
Forward
0 new messages