2006-08-26 13:35:28 +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; }
|
2006-08-26 13:35:28 +02:00
|
|
|
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
|
|
|
|
|
#
|
2020-03-21 16:24:24 +01:00
|
|
|
# Copyright 2005 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-05-07 04:39:18 +02:00
|
|
|
compile(
|
2018-05-09 01:39:32 +02:00
|
|
|
fails => $Self->{vlt_all},
|
2015-02-12 01:36:34 +01:00
|
|
|
# Used to be %Error: t/t_order_wireloop.v:\d+: Wire inputs its own output, creating circular logic .wire x=x.
|
|
|
|
|
# However we no longer gate optimize this
|
2019-06-13 03:49:40 +02:00
|
|
|
# Can't use expect_filename here as unstable output
|
2018-05-07 04:39:18 +02:00
|
|
|
expect =>
|
2020-03-15 03:02:42 +01:00
|
|
|
'%Warning-UNOPT: t/t_order_wireloop.v:\d+:\d+: Signal unoptimizable: Feedback to public clock or circular logic: \'bar\'
|
2006-08-26 13:35:28 +02:00
|
|
|
',
|
2018-05-07 04:39:18 +02:00
|
|
|
);
|
2006-08-26 13:35:28 +02:00
|
|
|
|
|
|
|
|
ok(1);
|
|
|
|
|
1;
|