2017-10-27 01:48:45 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
|
|
|
|
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
|
|
|
|
#
|
|
|
|
# Copyright 2003-2009 by Wilson Snyder. This program is free software; you can
|
|
|
|
# redistribute it and/or modify it under the terms of either the GNU
|
|
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
# Version 2.0.
|
|
|
|
|
2018-07-23 00:54:28 +00:00
|
|
|
scenarios(vltmt => 1);
|
2017-10-27 01:48:45 +00:00
|
|
|
|
|
|
|
top_filename("t/t_verilated_all.v");
|
|
|
|
|
|
|
|
my $root = "..";
|
|
|
|
|
2018-05-07 02:39:18 +00:00
|
|
|
compile(
|
2017-10-27 01:48:45 +00:00
|
|
|
# Can't use --coverage and --savable together, so cheat and compile inline
|
2019-10-08 23:12:33 +00:00
|
|
|
verilator_flags2 => ["--cc --coverage-toggle --coverage-line --coverage-user --trace --threads 1 --vpi $root/include/verilated_save.cpp"],
|
2017-10-27 01:48:45 +00:00
|
|
|
);
|
|
|
|
|
2018-05-07 02:39:18 +00:00
|
|
|
execute(
|
|
|
|
check_finished => 1,
|
2017-10-27 01:48:45 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
ok(1);
|
|
|
|
1;
|