2014-06-07 00:22:20 +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-05-08 00:42:28 +00:00
|
|
|
scenarios(vlt => 1);
|
2014-06-07 00:22:20 +00:00
|
|
|
|
|
|
|
my $stdout_filename = "$Self->{obj_dir}/$Self->{name}__test.vpp";
|
|
|
|
|
|
|
|
top_filename("t/t_preproc_noline.v");
|
|
|
|
|
2018-05-07 02:39:18 +00:00
|
|
|
compile(
|
2014-06-07 00:22:20 +00:00
|
|
|
verilator_flags2 => ['-E -P'],
|
2018-05-07 02:39:18 +00:00
|
|
|
verilator_make_gcc => 0,
|
2018-11-30 00:50:09 +00:00
|
|
|
make_top_shell => 0,
|
|
|
|
make_main => 0,
|
2014-06-07 00:22:20 +00:00
|
|
|
stdout_filename => $stdout_filename,
|
|
|
|
);
|
|
|
|
|
2019-05-02 23:02:40 +00:00
|
|
|
files_identical($stdout_filename, $Self->{golden_filename});
|
2014-06-07 00:22:20 +00:00
|
|
|
|
2018-11-02 01:40:55 +00:00
|
|
|
ok(1);
|
2014-06-07 00:22:20 +00:00
|
|
|
1;
|