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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [tools/] [verilog/] [gen_verilogLib] - 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
############################################################################
34
# General PERL config
35
############################################################################
36
use Getopt::Long;
37
use English;
38
use File::Basename;
39
use Cwd;
40
use XML::LibXML;
41
use lib './tools';
42
use sys::lib;
43
use yp::lib;
44
 
45
 
46
$OUTPUT_AUTOFLUSH = 1; # set autoflush of stdout to TRUE.
47
 
48
 
49
############################################################################
50
### Process the options
51
############################################################################
52
 
53
Getopt::Long::config("require_order", "prefix=-");
54
GetOptions("h","help",
55 128 jt_eaton
           "envidentifier=s" => \$envidentifier,
56 119 jt_eaton
           "prefix=s" => \$prefix,
57
           "vendor=s" => \$vendor,
58 131 jt_eaton
           "library=s" => \$library,
59 119 jt_eaton
           "component=s" => \$component,
60
           "version=s" => \$version,
61 128 jt_eaton
           "dest_dir=s" => \$dest_dir,
62
           "view=s" => \$view
63 119 jt_eaton
) || die "(use '$program_name -h' for help)";
64
 
65
 
66
##############################################################################
67
## Help option
68
##############################################################################
69
if ( $opt_h  or ($opt_help) )
70
   {
71 135 jt_eaton
   print "\n gen_verilogLib -envidentifier *simulation* -prefix /work  -vendor vendor_name -library  library_name  -component component_name -version version_name -dest_dir dest_dir -view  view";
72 119 jt_eaton
   print "\n";
73
   exit 1;
74
   }
75
 
76
 
77
##############################################################################
78
##
79
##############################################################################
80
 
81
$home = cwd();
82
 
83 134 jt_eaton
unless (defined $dest_dir && length $dest_dir > 0){$dest_dir ="../views";}
84 128 jt_eaton
 
85 134 jt_eaton
my $cmd ="./tools/verilog/gen_elab_verilogLib -envidentifier $envidentifier -prefix $prefix  -vendor $vendor -library  $library  -component $component -version $version -dest_dir $dest_dir -view  $view  \n";
86 119 jt_eaton
 
87 134 jt_eaton
if(system ($cmd)){}
88 119 jt_eaton
 
89 134 jt_eaton
my @configs  = yp::lib::get_component_configs($vendor,$library,$component,$version);
90 119 jt_eaton
 
91 134 jt_eaton
foreach my $config (@configs)
92
{
93 128 jt_eaton
 
94 134 jt_eaton
print "\n ---GEN_verilogLib -envidentifier $envidentifier -prefix $prefix  -vendor $vendor -library  $library  -component $component -version $version -dest_dir $dest_dir -viem  $view \n";
95 128 jt_eaton
 
96 134 jt_eaton
$cmd ="./tools/verilog/gen_elab_verilogLib -envidentifier $envidentifier -prefix $prefix  -vendor $vendor -library  $library  -component $component -version $version -dest_dir $dest_dir -view  $view -configuration $config \n";
97
if(system ($cmd)){}
98
}
99 128 jt_eaton
 
100
 
101 119 jt_eaton
 
102
 
103
1
104
 
105
 
106
 
107
 
108
 
109
 
110
 
111
 
112
 
113
 
114
 
115
 
116
 
117
 
118
 

powered by: WebSVN 2.1.0

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