OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [perl_gui/] [lib/] [perl/] [readme_gen.pl] - Blame information for rev 34

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 alirezamon
#! /usr/bin/perl -w
2
 
3 34 alirezamon
use Time::Piece;
4 25 alirezamon
 
5
sub get_license_header {
6
        my $file_name=shift;
7 34 alirezamon
my $t = Time::Piece->new();
8
my $year=$t->year;
9 25 alirezamon
        my $head="
10
/**********************************************************************
11
**      File: $file_name
12
**
13 34 alirezamon
**      Copyright (C) 2014-$year  Alireza Monemi
14 25 alirezamon
**
15
**      This file is part of ProNoC $ProNOC::VERSION
16
**
17
**      ProNoC ( stands for Prototype Network-on-chip)  is free software:
18
**      you can redistribute it and/or modify it under the terms of the GNU
19
**      Lesser General Public License as published by the Free Software Foundation,
20 34 alirezamon
**      either version 2 of the License, or (at your option) any later version.
21 25 alirezamon
**
22
**      ProNoC is distributed in the hope that it will be useful, but WITHOUT
23
**      ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
24
**      or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
25
**      Public License for more details.
26
**
27
**      You should have received a copy of the GNU Lesser General Public
28 34 alirezamon
**      License along with ProNoC. If not, see <http:**www.gnu.org/licenses/>.
29 25 alirezamon
******************************************************************************/
30
";
31
 
32
 
33
return $head;
34
 
35
}
36
 
37
 
38
sub autogen_warning {
39
 
40
my $string ="
41
/**************************************************************************
42
**      WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
43
**      OVERWRITTEN AND LOST. Rename this file if you wish to do any modification.
44
****************************************************************************/\n\n";
45
 
46
return $string;
47
 
48
 
49
}
50
 
51
 
52
sub perl_file_header {
53
        my $file_name=shift;
54
my $head="#######################################################################
55
##      File: $file_name
56
##
57
##      Copyright (C) 2014-2016  Alireza Monemi
58
##
59
##      This file is part of ProNoC $ProNOC::VERSION
60
##
61
##      WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT
62
##      MAY CAUSE UNEXPECTED BEHAIVOR.
63
################################################################################
64
 
65
";
66
return $head;
67
}
68
 
69
 
70
1;

powered by: WebSVN 2.1.0

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