call questa sim commands from SystemVerilog test bench
Asked Answered
A

1

1

I want to call questa sim commands like add wave ,add list, write list from my SystemVerilog test bench

task add_files_to_list();
add wave -position insertpoint  sim:/top/clk

add list sim:/top/clk 

write list -window .main_pane.list.interior.cs.body /home/simulation/top/example.lst

endtask

but the above doesn't work when i do from system verilog, i have to do i manually from tool. is there any way to do it. or can i call a tcl script from my system verilog code.

Thanks

Alvira answered 20/6, 2016 at 13:6 Comment(0)
A
3
 mti_fli::mti_Cmd("command")

See /examples/systemverilog/dpi/cpackages/test.sv

Affinity answered 20/6, 2016 at 14:47 Comment(4)
can i call tcl file from system verilog ?Alvira
@Paebbels Please do.Affinity
@Affinity Here is the question: #37933583Michiko
@Alvira I think we are using script file for that commands, like run.sh which contain all that commands OP listed in add_files_to_list, to make testbench irrespective of tool, people mostly refer scripts instead of commands in code it self.Equerry

© 2022 - 2024 — McMap. All rights reserved.