亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? netlist.pm

?? Verilog Parser in Perl
?? PM
字號:
# Verilog - Verilog Perl Interface# See copyright, etc in below POD section.######################################################################package Verilog::Netlist;use Carp;use IO::File;use Verilog::Netlist::Module;use Verilog::Netlist::File;use Verilog::Netlist::Subclass;use base qw(Verilog::Netlist::Subclass);use strict;use vars qw($Debug $Verbose $VERSION);$VERSION = '3.120';########################################################################## Error Handling# Netlist file & line numbers don't applysub logger { return $_[0]->{logger}; }sub filename { return 'Verilog::Netlist'; }sub lineno { return ''; }########################################################################## Creationsub new {    my $class = shift;    my $self = {_modules => {},		_files => {},		options => undef,	# Usually pointer to Verilog::Getopt		implicit_wires_ok => 1, 		preproc => 'Verilog::Preproc',		link_read => 1,		logger => Verilog::Netlist::Logger->new,		#include_open_nonfatal => 0,		#keep_comments => 0,		_libraries_done => {},		@_};    bless $self, $class;    return $self;}########################################################################## Functionssub link {    my $self = shift;    $self->{_relink} = 1;    while ($self->{_relink}) {	$self->{_relink} = 0;	foreach my $modref ($self->modules) {	    $modref->link();	}	foreach my $fileref ($self->files) {	    $fileref->_link();	}    }}sub lint {    my $self = shift;    foreach my $modref ($self->modules_sorted) {	next if $modref->is_libcell();	$modref->lint();    }}sub verilog_text {    my $self = shift;    my @out;    foreach my $modref ($self->modules_sorted) {	push @out, $modref->verilog_text, "\n";    }    return (wantarray ? @out : join('',@out));}sub dump {    my $self = shift;    foreach my $modref ($self->modules_sorted) {	$modref->dump();    }}########################################################################## Module accesssub new_module {    my $self = shift;    # @_ params    # Can't have 'new Verilog::Netlist::Module' do this,    # as not allowed to override Class::Struct's new()    my $modref = new Verilog::Netlist::Module	(netlist=>$self,	 is_top=>1,	 @_);    $self->{_modules}{$modref->name} = $modref;    return $modref;}sub defvalue_nowarn {    my $self = shift;    my $sym = shift;    # Look up the value of a define, letting the user pick the accessor class    if ($self->{options}) {	return $self->{options}->defvalue_nowarn($sym);    }    return undef;}sub remove_defines {    my $self = shift;    my $sym = shift;    my $val = "x";    while (defined $val) {	last if $sym eq $val;	(my $xsym = $sym) =~ s/^\`//;	$val = $self->defvalue_nowarn($xsym);  #Undef if not found	$sym = $val if defined $val;    }    return $sym;}sub find_module {    my $self = shift;    my $search = shift;    # Return module maching name    my $mod = $self->{_modules}{$search};    return $mod if $mod;    # Allow FOO_CELL to be a #define to choose what instantiation is really used    my $rsearch = $self->remove_defines($search);    if ($rsearch ne $search) {	return $self->find_module($rsearch);    }    return undef;}sub modules {    my $self = shift;    # Return all modules    return (values %{$self->{_modules}});}sub modules_sorted {    my $self = shift;    # Return all modules    return (sort {$a->name cmp $b->name} (values %{$self->{_modules}}));}sub modules_sorted_level {    my $self = shift;    # Return all modules    return (sort {$a->level <=> $b->level || $a->name cmp $b->name}	    (values %{$self->{_modules}}));}sub top_modules_sorted {    my $self = shift;    return grep ($_->is_top && !$_->is_libcell, $self->modules_sorted);}########################################################################## Files accesssub resolve_filename {    my $self = shift;    my $filename = shift;    my $lookup_type = shift;    if ($self->{options}) {	$filename = $self->remove_defines($filename);	$filename = $self->{options}->file_path($filename, $lookup_type);    }    if (!-r $filename || -d $filename) {	return undef;    }    $self->dependency_in ($filename);    return $filename;}sub new_file {    my $self = shift;    # @_ params    # Can't have 'new Verilog::Netlist::File' do this,    # as not allowed to override Class::Struct's new()    my $fileref = new Verilog::Netlist::File	(netlist=>$self,	 @_);    defined $fileref->name or carp "%Error: No name=> specified, stopped";    $self->{_files}{$fileref->name} = $fileref;    $fileref->basename (Verilog::Netlist::Module::modulename_from_filename($fileref->name));    return $fileref;}sub find_file {    my $self = shift;    my $search = shift;    # Return file maching name    return $self->{_files}{$search};}sub files {    my $self = shift; ref $self or die;    # Return all files    return (sort {$a->name() cmp $b->name()} (values %{$self->{_files}}));}sub files_sorted { return files(@_); }sub read_file {    my $self = shift;    my $fileref = $self->read_verilog_file(@_);    return $fileref;}sub read_verilog_file {    my $self = shift;    my $fileref = Verilog::Netlist::File::read	(netlist=>$self,	 @_);    return $fileref;}sub read_libraries {    my $self = shift;    if ($self->{options}) {	my @files = $self->{options}->library();	foreach my $file (@files) {	    if (!$self->{_libraries_done}{$file}) {		$self->{_libraries_done}{$file} = 1;		$self->read_file(filename=>$file, is_libcell=>1, );		## $self->dump();	    }	}    }}########################################################################## Dependenciessub dependency_in {    my $self = shift;    my $filename = shift;    $self->{_depend_in}{$filename} = 1;}sub dependency_out {    my $self = shift;    my $filename = shift;    $self->{_depend_out}{$filename} = 1;}sub dependency_write {    my $self = shift;    my $filename = shift;    my $fh = IO::File->new(">$filename") or die "%Error: $! writing $filename\n";    print $fh "$filename";    foreach my $dout (sort (keys %{$self->{_depend_out}})) {	print $fh " $dout";    }    print $fh " :";    foreach my $din (sort (keys %{$self->{_depend_in}})) {	print $fh " $din";    }    print $fh "\n";    $fh->close();}########################################################################## Package return1;__END__=pod=head1 NAMEVerilog::Netlist - Verilog Netlist=head1 SYNOPSIS    use Verilog::Netlist;    # Setup options so files can be found    use Verilog::Getopt;    my $opt = new Verilog::Getopt;    $opt->parameter( "+incdir+verilog",		     "-y","verilog",		     );    # Prepare netlist    my $nl = new Verilog::Netlist (options => $opt,);    foreach my $file ('testnetlist.v') {	$nl->read_file (filename=>$file);    }    # Read in any sub-modules    $nl->link();    $nl->lint();    $nl->exit_if_error();    foreach my $mod ($nl->top_modules_sorted) {	show_hier ($mod, "  ", "", "");    }    sub show_hier {	my $mod = shift;	my $indent = shift;	my $hier = shift;	my $cellname = shift;	if (!$cellname) {$hier = $mod->name;} #top modules get the design name	else {$hier .= ".$cellname";} #append the cellname	printf ("%-45s %s\n", $indent."Module ".$mod->name,$hier);	foreach my $sig ($mod->ports_sorted) {	    printf ($indent."	  %sput %s\n", $sig->direction, $sig->name);	}	foreach my $cell ($mod->cells_sorted) {	    printf ($indent. "    Cell %s\n", $cell->name);	    foreach my $pin ($cell->pins_sorted) {		printf ($indent."     .%s(%s)\n", $pin->name, $pin->netname);	    }	    show_hier ($cell->submod, $indent."	 ", $hier, $cell->name) if $cell->submod;	}    }=head1 DESCRIPTIONVerilog::Netlist reads and holds interconnect information about a wholedesign database.See the "Which Package" section of L<Verilog::Language> if you are unsurewhich parsing package to use for a new application.A Verilog::Netlist is composed of files, which contain the text read fromeach file.A file may contain modules, which are individual blocks that can beinstantiated (designs, in Synopsys terminology.)Modules have ports, which are the interconnection between nets in thatmodule and the outside world.  Modules also have nets, (aka signals), whichinterconnect the logic inside that module.Modules can also instantiate other modules.  The instantiation of a moduleis a Cell.  Cells have pins that interconnect the referenced module's pinto a net in the module doing the instantiation.Each of these types, files, modules, ports, nets, cells and pins have aclass.  For example Verilog::Netlist::Cell has the list ofVerilog::Netlist::Pin (s) that interconnect that cell.=head1 FUNCTIONSSee also Verilog::Netlist::Subclass for additional accessors and methods.=over 4=item $netlist->lintError checks the entire netlist structure.=item $netlist->link()Resolves references between the different modules.If link_read=>1 is passed when netlist->new is called (it is by default),undefined modules will be searched for using the Verilog::Getopt package,passed by a reference in the creation of the netlist.  To suppress errorsin any missing references, set link_read_nonfatal=>1 also.If keep_comments=>1 is passed, comment fields will be entered on netdeclarations into the Vtest::Netlist::Net structures.  Otherwise allcomments are stripped for speed.=item $netlist->newCreates a new netlist structure.  Pass optional parameters by name,with the following parameters:=over 8=item options => $opt_objectAn optional pointer to a Verilog::Getopt object, to be used for locatingfiles.=item implicit_wires_ok => $true_or_falseIndicates whether to allow undeclared wires to be used.=item logger => objectSpecify a message handler object to be used for error handling, this classshould be a Verilog::Netlist::Logger object, or derived from one.  Ifunspecified, a Verilog::Netlist::Logger local to this netlist will beused.=item preproc => $package_nameThe name of the preprocessor class. Defaults to "Verilog::Preproc".=item link_read => $true_or_falseIndicates whether or not the parser should automatically search forundefined modules through the "options" object.=item include_open_nonfatal => $true_or_falseIndicates that include files that do not exist should be ignored.=item keep_comments => $true_or_falseIndicates that comments should be preserved in the structure (slower).=back=item $netlist->dumpPrints debugging information for the entire netlist structure.=back=head1 MODULE FUNCTIONS=over 4=item $netlist->find_module($name)Returns Verilog::Netlist::Module matching given name.=item $netlist->modulesReturns list of Verilog::Netlist::Module.=item $netlist->modules_sortedReturns name sorted list of Verilog::Netlist::Module.=item $netlist->modules_sorted_levelReturns level sorted list of Verilog::Netlist::Module.  Leaf modules willbe first, the top most module will be last.=item $netlist->new_moduleCreates a new Verilog::Netlist::Module.=item $netlist->top_modules_sortedReturns name sorted list of Verilog::Netlist::Module, only for thosemodules which have no children and are not unused library cells.=back=head1 FILE FUNCTIONS=over 4=item $netlist->dependency_write(I<filename>)Writes a dependency file for make, listing all input and output files.=item $netlist->defvalue_nowarn (I<define>)Return the value of the specified define or undef.=item $netlist->dependency_in(I<filename>)Adds an additional input dependency for dependency_write.=item $netlist->dependency_out(I<filename>)Adds an additional output dependency for dependency_write.=item $netlist->filesReturns list of Verilog::Netlist::File.=item $netlist->files_sortedReturns a name sorted list of Verilog::Netlist::File.=item $netlist->find_file($name)Returns Verilog::Netlist::File matching given name.=item $netlist->read_file( filename=>$name)Reads the given Verilog file, and returns a Verilog::Netlist::Filereference.Generally called as $netlist->read_file.  Pass a hash of parameters.  Readsthe filename=> parameter, parsing all instantiations, ports, and signals,and creating Verilog::Netlist::Module structures.=item $netlist->read_libraries ()Read any libraries specified in the options=> argument passed with thenetlist constructor.  Automatically invoked when netlist linking results ina module that wasn't found, and thus might be inside the libraries.=item $netlist->remove_defines (I<string>)Expand any `defines in the string and return the results.  Undefineddefines will remain in the returned string.=item $netlist->resolve_filename (I<string>, [I<lookup-type>])Convert a module name to a filename.  Optional lookup-type is'module','include', or 'all', to use only module_dirs, incdirs, or both forthe lookup.  Return undef if not found.=item $self->verilog_textReturns verilog code which represents the netlist.=back=head1 BUGSCell instantiations without any arguments are not supported, a empty set ofparenthesis are required.  (Use "cell cell();", not "cell cell;".)Order based pin interconnect is not supported, use name based connections.=head1 DISTRIBUTIONVerilog-Perl is part of the L<http://www.veripool.org/> free Verilog EDAsoftware tool suite.  The latest version is available from CPAN and fromL<http://www.veripool.org/verilog-perl>.Copyright 2000-2009 by Wilson Snyder.  This package is free software; youcan redistribute it and/or modify it under the terms of either the GNULesser General Public License or the Perl Artistic License.=head1 AUTHORSWilson Snyder <wsnyder@wsnyder.org>=head1 SEE ALSOL<Verilog-Perl>,L<Verilog::Netlist::Cell>,L<Verilog::Netlist::File>,L<Verilog::Netlist::Logger>,L<Verilog::Netlist::Module>,L<Verilog::Netlist::Net>,L<Verilog::Netlist::Pin>,L<Verilog::Netlist::Port>,L<Verilog::Netlist::Subclass>And the L<http://www.veripool.org/verilog-mode>Verilog-Mode package for Emacs.=cut

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产99久久久国产精品免费看 | 国产专区综合网| 欧美色视频在线观看| 亚洲精品五月天| 欧美亚洲一区二区在线| 亚洲成av人片在线| 777午夜精品视频在线播放| 日韩av中文在线观看| 精品理论电影在线| 国产盗摄一区二区| 亚洲人精品午夜| 欧美裸体一区二区三区| 久草热8精品视频在线观看| 26uuu亚洲综合色欧美| 国产精品1区2区| ㊣最新国产の精品bt伙计久久| 色婷婷综合激情| 三级不卡在线观看| 久久综合久色欧美综合狠狠| 成人午夜av电影| 洋洋av久久久久久久一区| 国产精品乱码妇女bbbb| 91福利社在线观看| 青青国产91久久久久久| 欧美—级在线免费片| 在线日韩一区二区| 免费国产亚洲视频| 成人免费在线观看入口| 欧美一区二区视频免费观看| 国产成人福利片| 亚洲风情在线资源站| 久久久久久久久久久久电影| 91九色最新地址| 国产一区二三区| 亚洲高清在线视频| 中文在线资源观看网站视频免费不卡| 在线精品视频免费播放| 精品一区二区三区不卡| 亚洲综合免费观看高清完整版在线 | 国产成a人无v码亚洲福利| 亚洲小说春色综合另类电影| 久久一区二区三区国产精品| 色欧美88888久久久久久影院| 激情av综合网| 亚洲午夜久久久久久久久久久| 久久久国产精品不卡| 欧美日韩电影在线| 99精品欧美一区二区蜜桃免费| 麻豆视频一区二区| 亚洲在线观看免费视频| 中文字幕一区在线| 久久久久久亚洲综合影院红桃| 欧美三区在线观看| 成人午夜av电影| 国产麻豆精品久久一二三| 日韩av二区在线播放| 亚洲一区二区成人在线观看| 国产精品国产a| 国产清纯白嫩初高生在线观看91| 69堂亚洲精品首页| 欧美视频自拍偷拍| 色婷婷综合久久| 91免费精品国自产拍在线不卡| 国产精品资源站在线| 美女视频网站久久| 日韩成人一区二区| 日韩电影在线观看电影| 亚洲丰满少妇videoshd| 亚洲免费资源在线播放| 亚洲视频1区2区| 中文字幕亚洲综合久久菠萝蜜| 国产日韩精品视频一区| 久久久国产精品不卡| 久久久久久99精品| 久久久久久久久久久久电影| 久久婷婷国产综合国色天香| 欧美不卡一二三| 日韩欧美视频一区| 欧美大片日本大片免费观看| 日韩一区二区三区在线视频| 91精品国产黑色紧身裤美女| 欧美精品在线观看播放| 777亚洲妇女| 日韩精品一区二区三区在线| 欧美不卡视频一区| 国产午夜精品久久久久久免费视| 久久免费电影网| 日本一区二区高清| 1区2区3区精品视频| 亚洲激情图片小说视频| 亚洲v日本v欧美v久久精品| 午夜精品福利在线| 蜜乳av一区二区| 国产精品18久久久久久久久久久久| 国产成人丝袜美腿| 91香蕉国产在线观看软件| 91麻豆产精品久久久久久| 欧美三级中文字| 日韩欧美一区在线| 欧美国产日产图区| 亚洲精品乱码久久久久久久久| 亚洲综合一区二区精品导航| 日韩国产在线一| 国产成人综合亚洲91猫咪| 波多野结衣视频一区| 欧美日韩精品一区视频| 777欧美精品| 欧美国产日本韩| 亚洲一区二区精品3399| 久久精品久久精品| 床上的激情91.| 欧美熟乱第一页| wwww国产精品欧美| 亚洲欧美另类小说| 日韩电影免费一区| av资源站一区| 欧美一区二区三区视频免费| 日本一区二区三区四区在线视频| 亚洲综合在线电影| 精品一区二区三区久久久| 91片在线免费观看| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲婷婷综合久久一本伊一区| 日本不卡在线视频| 91影视在线播放| 精品人在线二区三区| 亚洲人成影院在线观看| 精品系列免费在线观看| 99精品国产一区二区三区不卡| 7777精品伊人久久久大香线蕉| 国产精品天美传媒| 毛片基地黄久久久久久天堂| 色婷婷激情一区二区三区| 精品乱人伦小说| 天天色综合天天| av成人老司机| 久久久三级国产网站| 天堂va蜜桃一区二区三区漫画版| 成人免费视频国产在线观看| 欧美一区二区在线视频| 亚洲精品一二三四区| 从欧美一区二区三区| www国产精品av| 热久久免费视频| 欧美图区在线视频| 亚洲色图19p| 成人av午夜影院| 久久久久久久综合日本| 美女久久久精品| 欧美精品 日韩| 亚洲国产毛片aaaaa无费看 | 91同城在线观看| 国产午夜亚洲精品不卡| 久久99国产精品尤物| 91精品国产综合久久久久久久久久 | 亚洲一区免费视频| 99精品国产热久久91蜜凸| 欧美国产日本韩| 国产999精品久久久久久绿帽| 日韩丝袜情趣美女图片| 日日摸夜夜添夜夜添精品视频| 欧美视频一区二区| 亚洲一卡二卡三卡四卡无卡久久| 91丨国产丨九色丨pron| 欧美国产一区二区在线观看| 国产精品资源网站| 久久精品在线免费观看| 国产一区二区伦理| 久久久99久久精品欧美| 国产另类ts人妖一区二区| 久久日韩粉嫩一区二区三区| 国产在线一区二区| 久久这里只有精品6| 国产精品亚洲第一区在线暖暖韩国 | 激情五月婷婷综合网| 日韩色在线观看| 国产资源在线一区| 国产欧美日韩一区二区三区在线观看 | 久久综合狠狠综合久久综合88 | 成人激情图片网| 国产精品久久久久久亚洲伦| 色综合一区二区| 亚洲国产婷婷综合在线精品| 欧美猛男男办公室激情| 青青草国产成人99久久| 2024国产精品视频| 丰满放荡岳乱妇91ww| 亚洲精品中文字幕乱码三区| 欧美日韩免费观看一区二区三区 | 制服丝袜在线91| 韩国欧美一区二区| 国产精品免费久久| 91久久精品一区二区三| 丝袜诱惑亚洲看片| 亚洲成av人影院| 精品剧情v国产在线观看在线| 国产成人免费高清| 亚洲黄色免费网站| 欧美一区二区日韩| 成人性生交大片免费看中文网站|