gofeco/support
0
1<h3 id='___read_library'>read_library</h3>2<pre>Read standard library or verilog library files (LLM: read library)3<b>Usage:</b> my $status = read_library(@files, @options);4@options:5 -v: Treat the @files as verilog library files6 -lib: Treat the @files as standard library files7 -f library_list_file: Load library files from list file, the list file has format of8 -v verilog_lib0.v9 -v verilog_lib1.v10 -lib tsmc40.lib11 -vmacro: Treat the @files as macro library files which are used as macro cell in ECO12 -rtl: Treat as RTL format13 -gate: Treat as gate format, if not specify -rtl or -gate, the tool automatic picks one14 -top top_module: Only process the module top_module as the leaf cell, discard all other modules15 -ref: The library is for the Reference Netlist only16@files: Standard library files, or verilog library files17 18<b>Note:</b> The three options, '-v' '-lib' and '-vmacro' don't coexist.19 If the file has .lib extension, '-lib' can be omitted, and it is treated as standard library file.20 If the file has .v or .vlib extension, '-v' can be omitted, and it is treated as verilog file.21$status: If zero, the file is read in successfully22 if one, failed to read in the file23 24<b>Examples:</b>25 26my $status = read_library("arm_40_hvt.lib", "arm_40_io.lib");27my $status = read_library("analog_stub.v", "analog_stub2.vlib");28my $status = read_library("-v", "analog_stub.gv");29my $status = read_library("-vmacro", "macrocell.v");30my $status = read_library("-f", "lib_files.list");31my $status = read_library("-top", "abs_control_top", "abs_control_top_post.v");32my $status = read_library("ref_special.lib", "-ref"); # The library is only for the Reference Netlist 33 34</pre>