2020-05-05 00:42:15 +02:00
|
|
|
#!/usr/bin/env perl
|
2008-09-23 16:02:31 +02:00
|
|
|
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
|
2006-08-26 13:35:28 +02:00
|
|
|
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
|
|
|
|
|
#
|
2020-03-21 16:24:24 +01:00
|
|
|
# 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
|
2009-05-04 23:07:57 +02:00
|
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
|
# Version 2.0.
|
2020-03-21 16:24:24 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2018-05-08 02:42:28 +02:00
|
|
|
scenarios(simulator => 1);
|
|
|
|
|
|
2018-06-15 12:28:33 +02:00
|
|
|
# On Verilator, we expect this to pass.
|
|
|
|
|
#
|
|
|
|
|
# TBD: Will event-based simulators match Verilator's behavior
|
|
|
|
|
# closely enough to pass the same test?
|
|
|
|
|
# If not -- probably we should switch this to be vlt-only.
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2018-06-23 01:46:27 +02:00
|
|
|
compile(verilator_flags2 => ["--trace"]);
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2018-06-15 12:28:33 +02:00
|
|
|
execute(check_finished => 1);
|
2006-08-26 13:35:28 +02:00
|
|
|
|
2019-05-03 01:02:40 +02:00
|
|
|
vcd_identical("$Self->{obj_dir}/simx.vcd", $Self->{golden_filename});
|
2018-06-23 01:46:27 +02:00
|
|
|
|
2006-08-26 13:35:28 +02:00
|
|
|
ok(1);
|
|
|
|
|
1;
|