mirror of
https://github.com/verilator/verilator.git
synced 2025-01-09 08:07:46 +00:00
ce10dbd11c
git-svn-id: file://localhost/svn/verilator/trunk/verilator@753 77ca24e4-aefa-0310-84f0-b9a241c72d87
35 lines
1.3 KiB
Perl
Executable File
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;
|