forked from verilog-to-routing/vtr-verilog-to-routing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_quick_test.pl
executable file
·59 lines (48 loc) · 2.17 KB
/
run_quick_test.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/perl
#------------------------------------------------------------------------#
# Run an experiment on the batch system #
# - runs an experiment script #
# creates seperate directory for each circuit #
# - uses a configuration file for experiment setup #
# #
# Usage: #
# <While in the experiment directory with directory base> #
# run_experiment.pl [local|condor] #
# #
# local|condor - an optional string that is either local to run #
# locally or condor to run on condor batch system, #
# defaults to condor #
# Options: -machines [fast|slow|both] #
#------------------------------------------------------------------------#
use strict;
use Cwd;
print "=============================================\n";
print "Test Verilog-to-Routing Build Infrastructure\n";
print "=============================================\n\n";
system("rm -f quick_test/depth_split.blif");
system("rm -f quick_test/abc_out.blif");
system("rm -f quick_test/route.out");
chdir ("quick_test") or die "Failed to change to directory ./quick_test: $!";
print "Testing ODIN II: ";
system("../ODIN_II/odin_II.exe -c depth_split.xml > odin_ii_out.txt 2>&1");
if(-f "depth_split.blif") {
print " [PASSED]\n\n";
} else {
print " [FAILED]\n\n";
}
print "Testing ABC: ";
system("../abc_with_bb_support/abc -c \"read abc_test.blif;sweep;write_hie abc_test.blif abc_out.blif\" > abc_out.txt 2>&1" );
if(-f "abc_out.blif") {
print " [PASSED]\n\n";
} else {
print " [FAILED]\n\n";
}
print "Testing VPR: ";
system("../vpr/vpr sample_arch.xml vpr_test -blif_file vpr_test.blif -route_file route.out -nodisp > vpr_out.txt 2>&1");
if(-f "route.out") {
print " [PASSED]\n\n";
} else {
print " [FAILED]\n\n";
}
chdir ("..");
print "Test complete\n";