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/] [sv_parser.pl] - Blame information for rev 48

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 48 alirezamon
#! /usr/bin/perl -w
2
 
3
use strict;
4
use warnings;
5
 
6
use FindBin;
7
use lib $FindBin::Bin;
8
 
9
 
10
use Regexp::Common qw /comment/;
11
require "common.pl";
12
 
13
 
14
sub extract_sv_code {
15
        my $file=shift;
16
        my $text = load_file($file);
17
        $text =~ s/($RE{comment}{'C++'})//g;
18
    return $text;
19
 
20
 
21
}
22
 
23
 
24
sub read_sv_file {
25
        my $file=shift;
26
        #read file and remove all comments
27
        my $code = extract_sv_code($file);
28
        print $code;
29
}

powered by: WebSVN 2.1.0

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