User Profile

Collapse

Profile Sidebar

Collapse
koduruabhinav
koduruabhinav
Last Activity: Sep 17 '10, 09:21 AM
Joined: Sep 3 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Regular expression to grab data between parenthesis

    Code:
    $string1 =~ /($modul\s#\(.*\);)/gs; 
       
    $instancesfrom1 =~ /$modul #\(([^;]*)\);/g;
    
    m/^(\Q$lkup(\E.+?\))/
    Hi any one can you please explain me the above regular expressions

    i want a regular expression matching the requirement

    i have sent one module

    it starts with hash open paranthesis

    and some where it might have two closing paranthesis.
    ...
    See more | Go to post

  • koduruabhinav
    started a topic regular expression required
    in Perl

    regular expression required

    Hi,
    some simple code required.i was trying but i was unable.
    But i want instances to get printed each time like we are printing comparing instance name.

    suppose if we take
    Each X_RAMB18E1 module consists of different instances like i
    for the first time
    \U_eth_aggregat or_tb/eth_aggregator/core_0/client_side_FIF O1/rx_fifo_i/ramgen_u (
    for the second time
    \U_eth_aggregat or_tb/eth_aggregator/core_0/central_memory/Mram_txmemory8...
    See more | Go to post

  • hi please anyone can help me faster

    Hi,
    the example was very useful for this basic programmer and working for 0ne instance.


    in short my problem is

    1. read the files
    2.find the module

    3.compare the file1 X_RAMB18E1 and file 2 X_RAMB18E1

    4.for each and every time and print the differences


    so for example if X_RAMB18E1 occurs "n"...
    See more | Go to post

    Leave a comment:


  • koduruabhinav
    started a topic modules and instances comparision IN FILES
    in Perl

    modules and instances comparision IN FILES

    Hi,

    I have two files and each consists of modules and in turn modules consists of some verilog

    data and instances.i have to search for module name in the two files and comapare the

    contents of the modules in the two files.

    i have code it does module search,extract the contents of modules and compare

    them and print the differnces.

    BUT THE PROBLEM IS
    ...
    See more | Go to post

  • ya fine tanq for ur suggestion.i have to start tomorrow the thing u have said
    See more | Go to post

    Leave a comment:


  • The output is in the imagge i have uploaded.proble m is i have used dot as split parameter.so it is splittin 5.000
    as 5 and oooo and taking it as two words and comparing.
    and the result is not according .
    the above code

    module_from_1 contains module1.txt
    module_from_2 contains module 2.txt

    so i have to compare the both and print the differences as

    module1 ...
    See more | Go to post

    Leave a comment:


  • koduruabhinav
    started a topic How to get the differences between text files
    in Perl

    How to get the differences between text files

    i have two modules.txt files
    module1.txt
    module2. txt


    i have to comare the conents of files and i have to print the output as folls

    module1 module2
    .COMPENSATION ( "ZHOLD" ), .COMPENSATION ("EXTERNAL" ),

    .CLKIN1_PERIOD ( 5 ), .CLKIN1_PERIOD ( 5.000000 ),


    i want the differences to be printed...
    See more | Go to post

  • How to compare content of modules in text files

    Hello,
    i was a beginner in perl .but my TL gave me critical work.
    my task looks simple!But not.i was trying for 4days.
    i have uploaded the files also.


    i have two text files each contain code in modules.

    my task i have to take module name from the user

    and search the module in file.whenever module is found

    i have to take the content in the module into on string
    ...
    See more | Go to post
    Last edited by koduruabhinav; Sep 4 '10, 07:59 AM. Reason: to give clear explanation
No activity results to display
Show More
Working...