2017-10-10 01:08:50 +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-2017 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-05-08 00:42:28 +00:00
|
|
|
scenarios(vlt => 1);
|
2017-10-10 01:08:50 +00:00
|
|
|
|
|
|
|
my $stdout_filename = "$Self->{obj_dir}/$Self->{name}__test.vpp";
|
|
|
|
|
2018-05-07 02:39:18 +00:00
|
|
|
compile(
|
2017-10-10 01:08:50 +00:00
|
|
|
# Override default flags
|
|
|
|
v_flags => [''],
|
|
|
|
v_other_filenames => ["t_preproc_persist2.v"],
|
2018-03-16 23:50:17 +00:00
|
|
|
verilator_flags => ["-E -P +incdir+t -Mdir $Self->{obj_dir}", ],
|
2017-10-10 01:08:50 +00:00
|
|
|
verilator_flags2 => ['',],
|
|
|
|
verilator_flags3 => ['',],
|
|
|
|
verilator_make_gcc => 0,
|
|
|
|
make_top_shell => 0,
|
2018-11-30 00:50:09 +00:00
|
|
|
make_main => 0,
|
2017-10-10 01:08:50 +00:00
|
|
|
stdout_filename => $stdout_filename,
|
|
|
|
);
|
|
|
|
|
2019-05-02 23:02:40 +00:00
|
|
|
files_identical($stdout_filename, $Self->{golden_filename});
|
2017-10-10 01:08:50 +00:00
|
|
|
|
2018-11-02 01:40:55 +00:00
|
|
|
ok(1);
|
2017-10-10 01:08:50 +00:00
|
|
|
1;
|