发新话题
打印

PLI加载vera对象

PLI加载vera对象

以下是加载vera对象的流程: 假定多个测试块在不同的文件里比如: main.vr -------------------------------------------
复制内容到剪贴板
代码:
#include <vera_defines.vrh> #include <interface.if.vrh> program main { ... }
test1.vr -------------------------------------------
复制内容到剪贴板
代码:
#include <vera_defines.vrh> #include <interface.if.vrh> program test1 { ... }
You can load and run these sequentially using pli loading. First, compile the first test, generating a shell file. Then, generate all other tests without shell files, by using the -cs switch. %> vera -cmp -vlog main.vr %> vera -cmp -cs test1.vr Compile the shell file with all the verilog files from the DUT and simulate the design, loading the first Vera test object, and all supporting objects. %> vcs -vera +cli top.v main_shell.v %> simv +vera_load=main.vro +vera_stop_on_end At the end of the first test, reset the design and test using the $reset command from the cli prompt. cli> $reset Load the next test using the $vera_load("vera_obj.vro") command from the cli prompt. cli> $vera_load("test1.vro") cli> .
With your idea, Carry out together.

TOP

发新话题