46_link.t

来自「Verilog Parser in Perl」· T 代码 · 共 42 行

T
42
字号
#!/usr/bin/perl -w# DESCRIPTION: Perl ExtUtils: Type 'make test' to test this package## Copyright 2000-2009 by Wilson Snyder.  This program is free software;# you can redistribute it and/or modify it under the terms of either the GNU# Lesser General Public License or the Perl Artistic License.use strict;use Test;BEGIN { plan tests => 2 }BEGIN { require "t/test_utils.pl"; }#$Verilog::Netlist::Debug = 1;use Verilog::Netlist;use Verilog::Getopt;ok(1);{    # Setup options so files can be found    my $opt = new Verilog::Getopt;    $opt->parameter( "+incdir+verilog",		     "-y","verilog",		     );    # Prepare netlist    my $nl = new Verilog::Netlist (options => $opt,				   );    foreach my $file ('verilog/v_gate.v') {	$nl->read_file (filename=>$file);    }    # Read in any sub-modules    $nl->read_libraries();    $nl->link();    $nl->lint();    $nl->exit_if_error();    print "Dump\n";    $nl->dump;}ok(1);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?