2007-01-17 21:19:29 +00:00
|
|
|
#!/usr/bin/perl
|
2008-09-23 14:02:31 +00:00
|
|
|
if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); die; }
|
2007-01-17 21:19:29 +00:00
|
|
|
# DESCRIPTION: Verilator: Verilog Test driver/expect definition
|
|
|
|
#
|
|
|
|
# Copyright 2003 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 21:07:57 +00:00
|
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
# Version 2.0.
|
2007-01-17 21:19:29 +00:00
|
|
|
|
|
|
|
top_filename("t/t_unopt_combo.v");
|
|
|
|
|
|
|
|
compile (
|
2008-11-25 02:38:45 +00:00
|
|
|
fails=>$Self->{v3},
|
2007-01-17 21:19:29 +00:00
|
|
|
expect=>
|
2011-01-17 19:58:58 +00:00
|
|
|
'%Warning-UNOPTFLAT: t/t_unopt_combo.v:\d+: Signal unoptimizable: Feedback to clock or circular logic: v.c
|
2007-01-17 21:19:29 +00:00
|
|
|
%Warning-UNOPTFLAT: Use "/\* verilator lint_off UNOPTFLAT \*/" and lint_on around source to disable this message.
|
2011-01-17 19:58:58 +00:00
|
|
|
%Warning-UNOPTFLAT: Example path: t/t_unopt_combo.v:\d+: v.c
|
2007-01-17 21:19:29 +00:00
|
|
|
%Warning-UNOPTFLAT: Example path: t/t_unopt_combo.v:\d+: ALWAYS
|
2011-01-17 19:58:58 +00:00
|
|
|
%Warning-UNOPTFLAT: Example path: t/t_unopt_combo.v:\d+: v.b
|
2007-01-17 21:19:29 +00:00
|
|
|
%Warning-UNOPTFLAT: Example path: t/t_unopt_combo.v:\d+: ALWAYS
|
2011-01-17 19:58:58 +00:00
|
|
|
%Warning-UNOPTFLAT: Example path: t/t_unopt_combo.v:\d+: v.c
|
2007-01-17 21:19:29 +00:00
|
|
|
%Error: Exiting due to '
|
|
|
|
);
|
|
|
|
|
|
|
|
execute (
|
2008-11-25 02:38:45 +00:00
|
|
|
) if !$Self->{v3};
|
2007-01-17 21:19:29 +00:00
|
|
|
|
|
|
|
ok(1);
|
|
|
|
1;
|