Sponsored Content
Top Forums Shell Programming and Scripting capturing selective data from a vcd file Post 302667195 by veerabahu on Thursday 5th of July 2012 07:09:24 PM
Old 07-05-2012
capturing selective data from a vcd file

Hi,
This is a vcd file.A vcd file may have 'n' modules.
1) I need to capture the data in bold,i.e. the module names (shown in bold)
2) Also i need to capture the data inside each individual module,say for tst_bench_top ,i need to capture data from line 4 to line 20 ...
I just want one generalized Perl script that says read the data after the $end of "$scope module" statement to the data before next "$scope module" statement....
In the ex show below i wanna read from line 4 to line 20,but a module may have even more/less than 20 lines.Hence i want a generalized script.

Code:
$timescale
...
$scope module tst_bench_top $end         #   line 3
$var reg       1 !    clk  $end                      #    line 4
$var reg       1 "    rstn  $end
......
.....
....
$var parameter  3 Z    CR_R  $end .....    #     line 20

$scope module master_blk $end
...
....
....
$var parameter ....

$scope module ...


Last edited by radoulov; 07-06-2012 at 07:55 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Capturing some data from a file into a variable

I have a file with some values in a tab delimted format Eg: 'test' contains: a<tab>b<tab>c<tab>Trk_12345678 now i need to capture this value 'Trk_12345678' into a variable say 'x' and append that value of 12345678 to 12345679 and store is back to a new 'test1' file as : 'test1'... (11 Replies)
Discussion started by: shiroh_1982
11 Replies

2. Shell Programming and Scripting

Capturing Unix Traceroute data

Hi guys, I need a way to capture the host on the next-to-last hop in a traceroute output. The last output is the destination but I need to capture the router just before the last hop. I can do this in perl but I'm not so sure about Shell... I'm on AIX 5.3 using ksh any ideas? ... (3 Replies)
Discussion started by: TivoliGUY
3 Replies

3. Shell Programming and Scripting

Capturing Particular Data

Hi everyone! Can any one help me out regarding capturing relevant data from a file. For e.g, if i want to capture the comment written after "Prompt:" for a particular date, like for this case what would be the command to capture the tag written after "Prompt:" for Date: 2009-03-20. A... (7 Replies)
Discussion started by: muhmsida
7 Replies

4. Shell Programming and Scripting

sed selective data parsing

i have file in the following format *RECORD* *FIELD NO* 123456 *FIELD TX* this is a sample entry *FIELD SA* See Also *FIELD RF* References *FIELD CS* Clinical Symptoms *FIELD AV* Allelic Variants *FIELD EH* Edit History *RECORD* *FIELD NO* 123456 (1 Reply)
Discussion started by: dunstonrocks
1 Replies

5. Shell Programming and Scripting

Selective extraction of data from a files

Hi, I would like to seek for methods to do selective extraction of line froma file. The scenario as follows: I have a file with content: message a received on 11:10:00 file size: 10 bytes send by abc message b received on 11:20:00 file size: 10 bytes send by abc (3 Replies)
Discussion started by: dwgi32
3 Replies

6. Shell Programming and Scripting

Capturing data between patterns

Hii, Friends, I want your help in one of my problem. My problem is as follows. I have a flat file as follows (Just a sample) MHT011 01(DOT)8750707asdfas8609 03(DOT)ASD3453ASD 09(DOT)876JHT87 11(DOT)sfd324ert TTT077 01(MOB)876786klj897 06(MOB)876JHT87 07(MOB)sfd324ert... (4 Replies)
Discussion started by: anushree.a
4 Replies

7. IP Networking

How to capturing packet data so i can see the Version, IHL, TOS, etc?

Helo Folks :) i had read an answer in this thread unixcom/programming/117551-calculate-ip-header-checksum-manually.html i need to know what the software name that was used to capturing packet data in a network, just like the packet's capture output that showed up in the thread. Thank you :)... (5 Replies)
Discussion started by: polutan
5 Replies

8. Red Hat

capturing data of nethogs

I have installed nethogs to see which process is sending load on the network. i would like to know how can i capture its data in a log file. Or is there is a unix command like script or tee which can help me to capture the data using cronjob (0 Replies)
Discussion started by: anshus1
0 Replies

9. Shell Programming and Scripting

Perl : not capturing all the data from excel sheet

Hi folks, I am working on assignment that captures all the records(2 columns one column contains names and other contain date of birth) from excel sheet stored in a directory and checks for current date and month. If it matches current date and month then the matched records are printed as... (1 Reply)
Discussion started by: giridhar276
1 Replies

10. Shell Programming and Scripting

How to output selective delimited data to a new file?

I have the following file which at times can be quite large so can be difficult to read, I need a script that just extracts particular delimited data and outputs to alternate file $cat fix1.log FIX4.4|0=12|55=LIT.L|48=123456|32=5|52=20111107-10:52:22.128|38=100|10=200| ... (6 Replies)
Discussion started by: Buddyluv
6 Replies
VCD2VZT(1)							Filetype Conversion							VCD2VZT(1)

NAME
vcd2vzt - Converts VCD files to VZT files SYNTAX
vcd2vzt [option]... [VCDFILE] [VZTFILE] DESCRIPTION
Converts VCD files to VZT files. OPTIONS
-v,--vcdname <filename> Specify VCD input filename. -l,--vztname <filename> Specify VZT output filename. -d,--depth <value> Specify 0..9 gzip compression depth, default is 4. -m,--maxgranule <value> Specify number of granules per section, default is 8. One granule is equal to 32 timesteps. -b,--break <value> Specify break size (default = 0 = off). When the break size is exceeded, the VZT dumper will dump all state information at the next convenient granule plus dictionary boundary. -z,--ziptype <value> Specify zip type (default = 0 gzip, 1 = bzip2, 2 = lzma). This allows you to override the default compression algorithm to use a more effective one at the expense of greater runtime. Note that bzip2 does not decompress as fast as gzip so the viewer will be about two times slower when decompressing blocks. -t,--twostate Forces MVL2 twostate mode (default is MVL4). When enabled, the trace will only store 0/1 values for binary facilities. This is useful for functional simulation and will speed up dumping as well as make traces somewhat smaller. -r, --rle Uses an bitwise RLE compression on the value table. Default is off. When enabled, this causes the trace data table to be stored using an alternate representation which can improve compression in many cases. -h,--help Show help screen. EXAMPLES Note that you should specify dumpfile.vcd directly or use "-" for stdin. vcd2vzt dumpfile.vcd dumpfile.lxt --depth 9 --break 1073741824 This sets the compression level to 9 and sets the break size to 1GB. vcd2vzt dumpfile.vcd dumpfile.lxt --depth 9 --maxgranule 512 Allows more granules per section which allows for greater compression at the expense of memory usage. LIMITATIONS
vcd2vzt does not store glitches as these are coalesced together into one value change during the writing of the VZT file. AUTHORS
Anthony Bybell <bybell@rocketmail.com> SEE ALSO
vzt2vcd(1) lxt2vcd(1) vcd2lxt2(1) gtkwave(1) Anthony Bybell 3.1.21 VCD2VZT(1)
All times are GMT -4. The time now is 11:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy