2006-08-26 11:35:28 +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; }
|
2006-08-26 11:35:28 +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.
|
2006-08-26 11:35:28 +00:00
|
|
|
|
|
|
|
compile (
|
|
|
|
);
|
|
|
|
|
|
|
|
execute (
|
|
|
|
check_finished=>1,
|
2006-08-30 01:14:29 +00:00
|
|
|
expect=>quotemeta(
|
|
|
|
'[0] In TOP.v: Hi
|
|
|
|
[0] In TOP.v.sub
|
2007-03-06 18:53:24 +00:00
|
|
|
[0] In TOP.v.sub.subblock
|
2006-08-30 01:14:29 +00:00
|
|
|
[0] In TOP.v.sub2
|
2007-03-06 18:53:24 +00:00
|
|
|
[0] In TOP.v.sub2.subblock2
|
2008-03-26 14:58:30 +00:00
|
|
|
[0] Back \ Quote "
|
2006-08-26 11:35:28 +00:00
|
|
|
[0] %X=0c %D=12 %0X=c %0O=14 %B=001100
|
|
|
|
[0] %x=0c %d=12 %0x=c %0o=14 %b=001100
|
|
|
|
[0] %x=00abbbbcccc %0x=abbbbcccc %o=00527356746314 %b=00000101010111011101110111100110011001100
|
|
|
|
[0] %x=00abc1234567812345678 %0x=abc1234567812345678 %o=012570110642547402215053170 %b=000001010101111000001001000110100010101100111100000010010001101000101011001111000
|
|
|
|
|
|
|
|
[0] %s=! %s= what! %s= hmmm!1234
|
2007-06-14 18:34:08 +00:00
|
|
|
[0] hello, from a very long string. Percent %s are literally substituted in.
|
2007-06-14 14:24:21 +00:00
|
|
|
*-* All Finished *-*
|
2006-08-26 11:35:28 +00:00
|
|
|
'),
|
|
|
|
);
|
|
|
|
|
|
|
|
ok(1);
|
|
|
|
1;
|