2007-04-18 20:26:38 +02:00
|
|
|
#!/usr/bin/perl
|
2008-09-23 16:02:31 +02:00
|
|
|
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
|
2007-04-18 20:26:38 +02:00
|
|
|
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
|
|
|
|
|
#
|
2009-05-04 23:07:57 +02:00
|
|
|
# Copyright 2003-2009 by Wilson Snyder. This program is free software; you can
|
2007-04-18 20:26:38 +02:00
|
|
|
# redistribute it and/or modify it under the terms of either the GNU
|
2009-05-04 23:07:57 +02:00
|
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
|
# Version 2.0.
|
2007-04-18 20:26:38 +02:00
|
|
|
|
2019-06-13 03:05:02 +02:00
|
|
|
scenarios(vlt => 1);
|
2011-10-13 05:03:53 +02:00
|
|
|
|
2019-06-13 03:05:02 +02:00
|
|
|
lint();
|
2007-04-18 20:26:38 +02:00
|
|
|
|
2008-11-25 03:38:45 +01:00
|
|
|
foreach my $file (glob("$Self->{obj_dir}/*t_lint_only*")) {
|
2007-04-18 20:26:38 +02:00
|
|
|
next if $file =~ /simx_compile.log/; # Made by driver.pl, not Verilator
|
2013-05-24 02:08:39 +02:00
|
|
|
next if $file =~ /\.status/; # Made by driver.pl, not Verilator
|
2018-05-08 02:42:28 +02:00
|
|
|
error("%Error: Created $file, but --lint-only shouldn't create files");
|
2007-04-18 20:26:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ok(1);
|
|
|
|
|
1;
|