URL
https://opencores.org/ocsvn/socgen/socgen/trunk
[/] [socgen/] [trunk/] [tools/] [sys/] [lib.pm] - Blame information for rev 117
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
117 |
jt_eaton |
#/**********************************************************************/
|
2 |
|
|
#/* */
|
3 |
|
|
#/* ------- */
|
4 |
|
|
#/* / SOC \ */
|
5 |
|
|
#/* / GEN \ */
|
6 |
|
|
#/* / TOOL \ */
|
7 |
|
|
#/* ============== */
|
8 |
|
|
#/* | | */
|
9 |
|
|
#/* |____________| */
|
10 |
|
|
#/* */
|
11 |
|
|
#/* */
|
12 |
|
|
#/* */
|
13 |
|
|
#/* Author(s): */
|
14 |
|
|
#/* - John Eaton, jt_eaton@opencores.org */
|
15 |
|
|
#/* */
|
16 |
|
|
#/**********************************************************************/
|
17 |
|
|
#/* */
|
18 |
|
|
#/* Copyright (C) <2010-2011> <Ouabache Design Works> */
|
19 |
|
|
#/* */
|
20 |
|
|
#/* This source file may be used and distributed without */
|
21 |
|
|
#/* restriction provided that this copyright statement is not */
|
22 |
|
|
#/* removed from the file and that any derivative work contains */
|
23 |
|
|
#/* the original copyright notice and the associated disclaimer. */
|
24 |
|
|
#/* */
|
25 |
|
|
#/* This source file is free software; you can redistribute it */
|
26 |
|
|
#/* and/or modify it under the terms of the GNU Lesser General */
|
27 |
|
|
#/* Public License as published by the Free Software Foundation; */
|
28 |
|
|
#/* either version 2.1 of the License, or (at your option) any */
|
29 |
|
|
#/* later version. */
|
30 |
|
|
#/* */
|
31 |
|
|
#/* This source is distributed in the hope that it will be */
|
32 |
|
|
#/* useful, but WITHOUT ANY WARRANTY; without even the implied */
|
33 |
|
|
#/* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */
|
34 |
|
|
#/* PURPOSE. See the GNU Lesser General Public License for more */
|
35 |
|
|
#/* details. */
|
36 |
|
|
#/* */
|
37 |
|
|
#/* You should have received a copy of the GNU Lesser General */
|
38 |
|
|
#/* Public License along with this source; if not, download it */
|
39 |
|
|
#/* from http://www.opencores.org/lgpl.shtml */
|
40 |
|
|
#/* */
|
41 |
|
|
#/**********************************************************************/
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
use strict;
|
49 |
|
|
|
50 |
|
|
package sys::lib;
|
51 |
|
|
|
52 |
|
|
#/*********************************************************************************************/
|
53 |
|
|
#/ */
|
54 |
|
|
#/ */
|
55 |
|
|
#/ */
|
56 |
|
|
#/ */
|
57 |
|
|
#/ */
|
58 |
|
|
#/ */
|
59 |
|
|
#/*********************************************************************************************/
|
60 |
|
|
|
61 |
|
|
sub trim_sort {
|
62 |
|
|
my @output_files = @_;
|
63 |
|
|
my %trim = ();
|
64 |
|
|
foreach my $descriptor (@output_files) { $trim{$descriptor} = 1; }
|
65 |
|
|
my @k = keys %trim;
|
66 |
|
|
@output_files = sort(sort @k);
|
67 |
|
|
return(@output_files);
|
68 |
|
|
}
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
1;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.