|
<h3 id='___read_library'>read_library</h3> |
|
<pre>Read standard library or verilog library files (LLM: read library) |
|
<b>Usage:</b> my $status = read_library(@files, @options); |
|
@options: |
|
-v: Treat the @files as verilog library files |
|
-lib: Treat the @files as standard library files |
|
-f library_list_file: Load library files from list file, the list file has format of |
|
-v verilog_lib0.v |
|
-v verilog_lib1.v |
|
-lib tsmc40.lib |
|
-vmacro: Treat the @files as macro library files which are used as macro cell in ECO |
|
-rtl: Treat as RTL format |
|
-gate: Treat as gate format, if not specify -rtl or -gate, the tool automatic picks one |
|
-top top_module: Only process the module top_module as the leaf cell, discard all other modules |
|
-ref: The library is for the Reference Netlist only |
|
@files: Standard library files, or verilog library files |
|
|
|
<b>Note:</b> The three options, '-v' '-lib' and '-vmacro' don't coexist. |
|
If the file has .lib extension, '-lib' can be omitted, and it is treated as standard library file. |
|
If the file has .v or .vlib extension, '-v' can be omitted, and it is treated as verilog file. |
|
$status: If zero, the file is read in successfully |
|
if one, failed to read in the file |
|
|
|
<b>Examples:</b> |
|
|
|
my $status = read_library("arm_40_hvt.lib", "arm_40_io.lib"); |
|
my $status = read_library("analog_stub.v", "analog_stub2.vlib"); |
|
my $status = read_library("-v", "analog_stub.gv"); |
|
my $status = read_library("-vmacro", "macrocell.v"); |
|
my $status = read_library("-f", "lib_files.list"); |
|
my $status = read_library("-top", "abs_control_top", "abs_control_top_post.v"); |
|
my $status = read_library("ref_special.lib", "-ref"); # The library is only for the Reference Netlist |
|
|
|
</pre> |