OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [tools/] [simulation/] [run_lint] - Blame information for rev 135

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 119 jt_eaton
eval 'exec `which perl` -S $0 ${1+"$@"}'
2
   if 0;
3 135 jt_eaton
#/****************************************************************************/
4
#/*                                                                          */
5
#/*   SOCGEN Design for Reuse toolset                                        */
6
#/*                                                                          */
7
#/*   Version 1.0.0                                                          */
8
#/*                                                                          */
9
#/*   Author(s):                                                             */
10
#/*      - John Eaton, z3qmtr45@gmail.com                                    */
11
#/*                                                                          */
12
#/****************************************************************************/
13
#/*                                                                          */
14
#/*                                                                          */
15
#/*             Copyright 2016 John T Eaton                                  */
16
#/*                                                                          */
17
#/* Licensed under the Apache License, Version 2.0 (the "License");          */
18
#/* you may not use this file except in compliance with the License.         */
19
#/* You may obtain a copy of the License at                                  */
20
#/*                                                                          */
21
#/*    http://www.apache.org/licenses/LICENSE-2.0                            */
22
#/*                                                                          */
23
#/* Unless required by applicable law or agreed to in writing, software      */
24
#/* distributed under the License is distributed on an "AS IS" BASIS,        */
25
#/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
26
#/* See the License for the specific language governing permissions and      */
27
#/* limitations under the License.                                           */
28
#/*                                                                          */
29
#/*                                                                          */
30
#/****************************************************************************/
31 119 jt_eaton
 
32
############################################################################
33
# General PERL config
34
############################################################################
35
use Getopt::Long;
36
use English;
37
use File::Basename;
38
use Cwd;
39
use XML::LibXML;
40
use lib './tools';
41
use sys::lib;
42
use yp::lib;
43
 
44
$OUTPUT_AUTOFLUSH = 1; # set autoflush of stdout to TRUE.
45
 
46
 
47
############################################################################
48
### Process the options
49
############################################################################
50
Getopt::Long::config("require_order", "prefix=-");
51
GetOptions("h","help",
52
) || die "(use '$program_name -h' for help)";
53
 
54
 
55
 
56
 
57
##############################################################################
58
## Help option
59
##############################################################################
60
if ( $opt_h or $opt_help  )
61 135 jt_eaton
  { print "\n run_icarus vendor   library sim_library_path sim_name     sim_variant";
62 119 jt_eaton
    print "\n";
63
    exit 1;
64
  }
65
 
66 124 jt_eaton
my $home              = cwd();
67 135 jt_eaton
my $prefix            = yp::lib::get_workspace();
68
my $vendor            = $ARGV[0];
69
my $library           = $ARGV[1];
70
my $sim_library_path  = $ARGV[2];
71
my $sim_name          = $ARGV[3];
72
my $sim_variant       = $ARGV[4];
73
 
74 119 jt_eaton
 
75 135 jt_eaton
chdir  "./${prefix}/${vendor}__${library}${sim_library_path}/rtl_check/${sim_name}";
76 119 jt_eaton
 
77 135 jt_eaton
print "  LINT     $sim_name        $sim_configuration   $sim_variant  \n ";
78
$cmd ="verilator -Wall --cc  -f  ../../testbenches/filelists/${sim_variant}.lint   --exe ../../../../../../../tools/lint/sim_main2.cpp -top-module TB -Wno-PINNOCONNECT -Wno-DECLFILENAME  -Wno-UNDRIVEN   -Wno-UNUSED  -Wno-PINMISSING  -Wno-LITENDIAN  -Wno-PINCONNECTEMPTY   2> lint.log \n";
79
if (system($cmd)) {}
80 119 jt_eaton
 
81
 
82 135 jt_eaton
$cmd ="yosys  -S  -s  ../../testbenches/filelists/${sim_variant}.yosys -l yosys.log -o yosys.v\n";
83
if (system($cmd)) {}
84 119 jt_eaton
 
85 135 jt_eaton
chdir $home;
86 119 jt_eaton
 
87
 
88
 
89
 
90
 
91
 
92
 
93
 
94
 
95
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.