You probably have line(s) before the first "module" line.
Thanks this one works better but what if my module line is like
module 1a_ext(a, b);
I just want the output filename to be
1a_ext.v
but its putting
1a_ext(a,.v
So how do we specify the output filename as the string between module and '(' ?
Thank you .
Hello,
i have a very big file that has more then 80 MBytes (100MBytes). So with my CVS Application I cannot commit this file (too Big) because it must have < 80 MBytes.
How can I split this file into two others files, i think the AIX Unix command :
split -b can do that, buit how is the right... (2 Replies)
Greeting to all.
I have big text file that I would like to segment into many smaller files. Each file should be maximum 10 000 lines.
The file is called time.txt. after the execution of the file I would like to have.
time_01.txt, time_02, txt, ...,time_n.txt
Can anybody help.
Br. (2 Replies)
hi Guys
i need some help here..
i have a file which has > 800,000 lines in it. I need to split this file into smaller files with 25000 lines each.
please help
thanks (1 Reply)
Hi,
I have a big text file with m columns and n rows. The format is like:
STF123450001000200030004STF123450005000600070008STF123450009001000110012
STF234560345002208330154STF234590705620600070080STF234567804094562357688
STF356780001000200030004STF356780005000600070080STF356780800094562657687... (2 Replies)
Help needed urgently please.
I have a large file - a few hundred thousand lines.
Sample
CP START ACCOUNT
1234556
name 1
CP END ACCOUNT
CP START ACCOUNT
2224444
name 1
CP END ACCOUNT
CP START ACCOUNT
333344444
name 1
CP END ACCOUNT
I need to split this file each time "CP START... (7 Replies)
Hi HP-admins,
I have 120GB file on HP-UX and need to split to 4GB pieces and join them on Windows.
As I don't want to use zipsplit, tried to use split command and join on windows using "copy /b" but it doesn't work (It merges and creates new file but file is corrupt)
What is the correct... (6 Replies)
Dears,
Need you help with the below file manipulation. I want to split the file into 8 smaller files but without cutting/disturbing the entries (meaning every small file should start with a entry and end with an empty line). It will be helpful if you can provide a one liner command for this... (12 Replies)
Discussion started by: Kamesh G
12 Replies
LEARN ABOUT DEBIAN
verilog::editfiles
EditFiles(3pm) User Contributed Perl Documentation EditFiles(3pm)NAME
Verilog::EditFiles - Split Verilog modules into separate files.
SYNOPSIS
See splitmodule command.
use Verilog::EditFiles;
my $split = Verilog::EditFiles->new
(outdir => "processed_rtl",
translate_synthesis => 0,
lint_header => undef,
celldefine => 1,
);
$split->read_and_split(glob("inbound_rtl/*.v"));
$split->write_files();
$split->edit_file(filename=>"foo", cb => sub { return $_[0]; });
DESCRIPTION
Verilog::EditFiles provides a easy way to split library Verilog files that contain multiple modules into many files with one module per
file.
FUNCTIONS
new (...)
Create a new Verilog::EditFiles object. Named parameters may be specified:
celldefine
If true, add "`celldefine" before every module statement.
lint_command
For the write_lint method, the name of the linter to use. Defaults to "vlint --brief".
lint_header
If defined, add the provided text before every module statement. Generally used to insert lint off pragmas.
outdir
Name of the directory to write the output modules to. Defaults to ".".
program
Name of the program to add to comments. Defaults to "Verilog::EditFiles".
timescale_header
If defined, add the provided text before every module statement. Generally set to the next needed to #include a timescale file.
Use with timescale_removal.
timescale_removal
If set, remove any `timescales.
translate_synthesis
If 1, replace any synopsys translate on/offs with "`ifdef SYNTHESIS" and "`endif"s. If set to a string, use that string instead of
"SYNTHESIS".
v_suffix
The suffix to add to convert a module name into a filename. Defaults to ".v".
verbose
If true, print what files are being read and written.
$self->read_and_split ([filenames])
Read from the specified filenames.
If there is no module statement in the file, assume it is a include file, and when write_files is called, place all of the file
contents into the output. If there is a module statement, when write_files is called place all following output into a file named
based on the module, with .v added.
$self->write_files()
Write all of the files created by read_and_split to the outdir.
$self->write_lint([filename=>...])
Create a shell script that will lint every file created by write_files. If a "filename" parameter is not provided, "0LINT.sh" will be
written in the default outdir.
$self->edit_file(filename=>..., cb=>sub{...})
Read a file, edit it with the provided callback, and save it if it has changed. The "filename" parameter is the filename to read. The
"write_filename" parameter is the filename to write, defaulting to the same name as the filename to read. The "cb" parameter is a
reference to a callback which takes the string of file contents and returns the string to write back. Often the callback will simply
perform a search and replace.
DISTRIBUTION
Verilog-Perl is part of the <http://www.veripool.org/> free Verilog EDA software tool suite. The latest version is available from CPAN and
from http://www.veripool.org/verilog-perl <http://www.veripool.org/verilog-perl>.
Copyright 2006-2012 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either
the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.
AUTHORS
Wilson Snyder <wsnyder@wsnyder.org>
SEE ALSO
Verilog-Perl
perl v5.14.2 2012-05-04 EditFiles(3pm)