verilator/test_regress/t/t_var_pins_cc.pl
Wilson Snyder ce10dbd11c Version bump
git-svn-id: file://localhost/svn/verilator/trunk/verilator@753 77ca24e4-aefa-0310-84f0-b9a241c72d87
2006-08-26 11:35:28 +00:00

35 lines
1.3 KiB
Perl
Executable File

#!/usr/bin/perl
if (!$::Driver) { use FindBin; exec("./driver.pl", @ARGV, $0); die; }
# $Id:$
# 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
# General Public License or the Perl Artistic License.
top_filename("t/t_var_pinsizes.v");
compile (
v_flags2 => ['-cc'],
verilator_make_gcc => 0,
) if $Last_Self->{v3};
if ($Last_Self->{v3}) {
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_IN8 \(i1,0,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_IN8 \(i8,7,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_IN16 \(i16,15,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_IN \(i32,31,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_IN64 \(i64,63,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_INW \(i65,64,0,3\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_OUT8 \(o1,0,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_OUT8 \(o8,7,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_OUT16\(o16,15,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_OUT \(o32,31,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_OUT64\(o64,63,0\);/x);
file_grep ("obj_dir/Vt_var_pins_cc.h", qr/VL_OUTW \(o65,64,0,3\);/x);
}
ok(1);
1;