If you have any question concerning bug fixes, new features and enhancements, please don't hesitate to contact. You will get the best solutions at the earliest.
This utility takes list of verilog RTL files and the top verilog module name as input and removes all the instances by pulling that's functionality in the top module. You may also consider to explore the flatteninstances tool to flatten specific hierarchical instances. This has been developed in Java (1.8) in order to make it platform independent.
Usage
source setup_env ( 'sh' or 'csh' for Unix and '.bat' for Windows DOS Shell )
Alternatively, for Unix
setenv EDAUTILS_ROOT /LinuxShare/WinDataFiles/ProjectRoot/temp/DesignPlayer-linux.x86/01MAY2014
set path = ( $EDAUTILS_ROOT/bin $path )
and for Windows
set EDAUTILS_ROOT=D:\tmp\DesignPlayer-win32.x86_64\01MAY2014
set PATH="%path%;%EDAUTILS_ROOT%\bin"
flatteverilog -in foo.v -top mytop -out flattened.v -hier_delim .
OR
java com.eu.miscedautils.verilogparser.FlattenVerilog -in foo.v -top mytop -out flattened.v -hier_delim .
Where the '.' is the hierarchy delimiter.
Get details of available options by executing it as ' flattenverilog -help '
Options are as below:
-in <input vlog file> : Mandatory, input verilog file
-top <name-of-module-to-be-flattened> : Mandatory, top module name
-out <output file name > : Optional, output file name
-disble_assgn_merge : Optional, disables assignment merging
-elaborate : Optional, elaborates design
-f <file-containing-list-of-vlog-files> : List of verilog input files
-hier_delim <hierarchy-delimiter-character> : Optional, hierarchy delimiter char, default is '_'
+incdir+<include-path1>+<include-path2> : Optional, compiler directives
-flatten_undefined_modules : Optional, enables flattening of undefined modules as well
-stop_at_leaf : Optional, disables flattening of leaf module instances
-no_hier : Optional, disables flattening of hierarchies
-remove_unused_nets : Optional, removes unused nets
-rename_nets : Optional, renames nets to shorter net names
Similar tool ungroup/flatteninstances
Watch Online Video Demo
Part of the EDAUtils toolset
- Baya - AI-enabled SoC integration with IP-XACT and a 200+ command Tcl API
- IP-XACT 1685 solution - component packaging, registers, memory maps and generators
- RTL utilities - parsers, translators, testbench and document generators
- Run online free - try this tool in the browser, no install