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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? language.pm

?? Verilog Parser in Perl
?? PM
?? 第 1 頁 / 共 2 頁
字號:
# See copyright, etc in below POD section.######################################################################=pod=head1 NAMEVerilog::Language - Verilog language utilities=head1 SYNOPSIS  use Verilog::Language;  $result = Verilog::Language::is_keyword ("wire");  # true  $result = Verilog::Language::is_compdirect ("`notundef");  # false  $result = Verilog::Language::number_value ("4'b111");  # 8  $result = Verilog::Language::number_bits  ("32'h1b");  # 32  $result = Verilog::Language::number_signed ("1'sh1");  # 1  @vec    = Verilog::Language::split_bus ("[31,5:4]"); # 31, 5, 4  @vec    = Verilog::Language::split_bus_nocomma ("[31:29]"); # 31, 30, 29  $result = Verilog::Language::strip_comments ("a/*b*/c");  # ac=head1 DESCRIPTIONVerilog::Language provides general utilities for using the VerilogLanguage, such as parsing numbers or determining what keywords exist.General functions will be added as needed.=head1 WHICH PACKAGEIf you are starting a new application which needs to parse the Veriloglanguage you have several tools available to you.  Which you pick dependson how low level and complete the information you need is.=over 4=item Verilog::PreprocVerilog::Preproc is useful when you need only text out, or a list ofdefines, etc.  It can preprocess a file, or be used to provide the Verilogmacro language on top of synthesis scripts.  It understands the fullSystemVerilog 2005 preprocessor syntax.=item Verilog::ParserVerilog::Parser is useful when you need to tokenize or write source filters(where you need everything including whitespace).  It can take raw files,or preprocessed input.  It understands all SystemVerilog 2005 keywords.=item Verilog::SigParserVerilog::SigParser is useful when you need a list of modules, signals,ports, functions, etc.  It requires a preprocessed file, and can parse mostVerilog 2005 files, but only provides callbacks on certain interestingthings.=item Verilog::NetlistVerilog::Netlist is useful for when you need the hierarchy, and a list ofsignals per module, pins per cell, etc.  It builds upon the output ofVerilog::SigParser, so requires preprocessed files.This is probably the most popular choice.=item VPIUsing the VPI is the best way to access the behavior of the design.  It isnot part of this package as it requires a compliant simulator and C++ codeto call the VPI, and understands as much of the language as the simulatorsupports.  This allows writing lint checks and full knowledge of all partsof the code, but generally requires the most work (short of writing aparser from scratch.)=back=head1 FUNCTIONS=over 4=item Verilog::Language::is_keyword ($symbol_string)Return true if the given symbol string is a Verilog reserved keyword.Value indicates the language standard as per the `begin_keywords macro,'1364-1995', '1364-2001', '1364-2005', or '1800-2005'.=item Verilog::Language::is_compdirect ($symbol_string)Return true if the given symbol string is a Verilog compiler directive.=item Verilog::Language::is_gateprim ($symbol_string)Return true if the given symbol is a built in gate primitive; for example"buf", "xor", etc.=item Verilog::Language::language_standard ($year)Sets the language standard to indicate what are keywords.  If undef, allstandards apply.  The year is indicates the language standard as per the`begin_keywords macro, '1364-1995', '1364-2001', '1364-2005', or'1800-2005'.=item Verilog::Language::number_bigint ($number_string)Return the numeric value of a Verilog value stored as a Math::BigInt, orundef if incorrectly formed.  You must 'use Math::BigInt' yourself beforecalling this function.  Note bigints do not have an exact size, so NOT of aMath::BigInt may return a different value than verilog.  See alsonumber_value and number_bitvector.=item Verilog::Language::number_bits ($number_string)Return the number of bits in a value string, or undef if incorrectlyformed, _or_ not specified.=item Verilog::Language::number_bitvector ($number_string)Return the numeric value of a Verilog value stored as a Bit::Vector, orundef if incorrectly formed.  You must 'use Bit::Vector' yourself beforecalling this function.  The size of the Vector will be that returned bynumber_bits.=item Verilog::Language::number_signed ($number_string)Return true if the Verilog value is signed, else undef.=item Verilog::Language::number_value ($number_string)Return the numeric value of a Verilog value, or undef if incorrectlyformed.  It ignores any signed Verilog attributes, but is is returned as aperl signed integer, so it may fail for over 31 bit values.  See alsonumber_bigint and number_bitvector.=item Verilog::Language::split_bus ($bus)Return a list of expanded arrays.  When passed a string like"foo[5:1:2,10:9]", it will return a array with ("foo[5]", "foo[3]", ...).It correctly handles connectivity expansion also, so that "x[1:0] = y[3:0]"will get intuitive results.=item Verilog::Language::split_bus_nocomma ($bus)As with split_bus, but faster.  Only supports simple decimal colonseparated array specifications, such as "foo[3:0]".=item Verilog::Language::strip_comments ($text)Return text with any // or /**/ comments stripped, correctly handing quotedstrings.  Newlines will be preserved in this process.=back=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::EditFiles>L<Verilog::Parser>,L<Verilog::ParseSig>,L<Verilog::Getopt>And the L<http://www.veripool.org/verilog-mode>Verilog-Mode package for Emacs.=cut######################################################################package Verilog::Language;require 5.000;require Exporter;use strict;use vars qw($VERSION %Keyword %Keywords %Compdirect $Standard %Gateprim);use Carp;########################################################################## Configuration Section$VERSION = '3.120';########################################################################## Internal Variablesforeach my $kwd (qw(		    always and assign begin buf bufif0 bufif1 case		    casex casez cmos deassign default defparam		    disable else end endcase endfunction endmodule		    endprimitive endspecify endtable endtask event		    for force forever fork function highz0		    highz1 if initial inout input integer join large		    macromodule medium module nand negedge		    nmos nor not notif0 notif1 or output parameter		    pmos posedge primitive pull0 pull1 pulldown		    pullup rcmos real realtime reg release repeat		    rnmos rpmos rtran rtranif0 rtranif1 scalared		    small specify strength strong0 strong1		    supply0 supply1 table task time tran tranif0		    tranif1 tri tri0 tri1 triand trior trireg		    vectored wait wand weak0 weak1 while wire wor		    xnor xor		    )) { $Keywords{'1364-1995'}{$kwd} = '1364-1995'; }foreach my $kwd (qw(		    automatic cell config design edge endconfig endgenerate		    generate genvar ifnone incdir include instance liblist		    library localparam		    noshowcancelled pulsestyle_ondetect pulsestyle_onevent		    showcancelled signed specparam unsigned use		    )) { $Keywords{'1364-2001'}{$kwd} = '1364-2001'; }foreach my $kwd (qw(		    uwire		    )) { $Keywords{'1364-2005'}{$kwd} = '1364-2005'; }foreach my $kwd (qw(		    alias always_comb always_ff always_latch assert assume		    before bind bins binsof bit break byte chandle class		    clocking const constraint context continue cover		    covergroup coverpoint cross dist do endclass endclocking		    endgroup endinterface endpackage endprogram endproperty		    endsequence enum expect export extends extern final		    first_match foreach forkjoin iff ignore_bins		    illegal_bins import inside int interface intersect		    join_any join_none local logic longint matches modport		    new null package packed priority program property		    protected pure rand randc randcase randsequence ref		    return sequence shortint shortreal solve static string		    struct super tagged this throughout timeprecision		    timeunit type typedef union unique var virtual void		    wait_order wildcard with within		    )) { $Keywords{'1800-2005'}{$kwd} = '1800-2005'; }foreach my $kwd (    # Speced    "`celldefine",    "`define",			# Preprocessor    "`else",			# Preprocessor    "`endcelldefine",    "`endif",			# Preprocessor    "`ifdef",			# Preprocessor    "`include",			# Preprocessor    "`nounconnected_drive",    "`resetall",    "`timescale",    "`unconnected_drive",    "`undef",			# Preprocessor    # Commercial Extensions    "`accelerate",		# Verilog-XL compatibility    "`autoexpand_vectornets",	# Verilog-XL compatibility    "`default_decay_time",	# Verilog spec - delays only    "`delay_mode_distributed",	# Verilog spec - delays only    "`delay_mode_path",		# Verilog spec - delays only    "`delay_mode_unit",		# Verilog spec - delays only    "`delay_mode_zero",		# Verilog spec - delays only    "`disable_portfaults",	# Verilog-XL compatibility    "`enable_portfaults",	# Verilog-XL compatibility    "`endprotect",		# Many tools - pre encryption    "`endprotected",		# Many tools - post encryption    "`expand_vectornets",	# Verilog-XL compatibility    "`noaccelerate",		# Verilog-XL compatibility    "`noexpand_vectornets",	# Verilog-XL compatibility    "`noremove_gatenames",	# Verilog-XL compatibility    "`noremove_netnames",	# Verilog-XL compatibility    "`nosuppress_faults",	# Verilog-XL compatibility    "`nounconnected_drive",	# Verilog-XL compatibility    "`portcoerce",		# Verilog-XL compatibility    "`protect",			# Many tools - pre encryption    "`protected",		# Many tools - post encryption    "`remove_gatenames",	# Verilog-XL compatibility    "`remove_netnames",		# Verilog-XL compatibility    "`suppress_faults",		# Verilog-XL compatibility    ) { $Keywords{$kwd}{'1364-1995'} = $Compdirect{$kwd} = '1364-1995'; }foreach my $kwd (		 "`default_nettype", "`elsif", "`undef", "`ifndef",		 "`file", "`line",		 ) { $Keywords{$kwd}{'1364-2001'} = $Compdirect{$kwd} = '1364-2001'; }foreach my $kwd (		 "`pragma",		 ) { $Keywords{$kwd}{'1364-2005'} = $Compdirect{$kwd} = '1364-2005'; }language_standard ('1800-2005');  # Default standardforeach my $kwd (qw(		    and buf bufif0 bufif1 cmos nand nmos nor not notif0		    notif1 or pmos pulldown pullup rcmos rnmos rpmos rtran		    rtranif0 rtranif1 tran tranif0 tranif1 xnor xor		    )) { $Gateprim{$kwd} = '1364-1995'; }########################################################################## Keyword utilitiessub language_standard {    my $standard = shift;    if (defined $standard) {	my @subsets;	if ($standard eq '1995' || $standard eq '1364-1995') {	    $Standard = '1364-1995';	    @subsets = ('1364-1995');	} elsif ($standard eq '2001' || $standard eq '1364-2001' || $standard eq '1364-2001-noconfig') {	    $Standard = '1364-2001';	    @subsets = ('1364-2001', '1364-1995');	} elsif ($standard eq '1364-2005') {	    $Standard = '1364-2005';	    @subsets = ('1364-2005', '1364-2001', '1364-1995');	} elsif ($standard eq 'sv31' || $standard eq '1800-2005') {	    $Standard = '1800-2005';	    @subsets = ('1800-2005', '1364-2005', '1364-2001', '1364-1995');	} else {	    croak "%Error: Verilog::Language::language_standard passed bad value: $standard,";	}	# Update keyword list to present language	# (We presume the language_standard rarely changes, so it's faster to compute the list.)	%Keyword = ();	foreach my $ss (@subsets) {	    foreach my $kwd (%{$Keywords{$ss}}) {		$Keyword{$kwd} = $ss;	    }	}    }    return $Standard;}sub is_keyword {    my $symbol = shift;    return ($Keyword{$symbol});}sub is_compdirect {    my $symbol = shift;    return ($Compdirect{$symbol});}sub is_gateprim {    my $symbol = shift;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产视频视频一区| 免费看日韩精品| 丝袜美腿亚洲综合| 国产精品一区不卡| 欧美日韩久久不卡| 中文幕一区二区三区久久蜜桃| 午夜精品久久久久久久久| 处破女av一区二区| 久久久噜噜噜久久中文字幕色伊伊| 亚洲一区二区三区美女| 粉嫩嫩av羞羞动漫久久久| 欧美一区二区三区电影| 亚洲黄色小视频| 成人国产电影网| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲国产一区二区三区青草影视| 成人美女在线观看| 久久精品人人做人人爽人人| 免费观看成人鲁鲁鲁鲁鲁视频| 色婷婷综合久久久中文一区二区| 国产欧美一区二区三区在线看蜜臀| 日本强好片久久久久久aaa| 欧美唯美清纯偷拍| 亚洲欧美在线视频观看| www.综合网.com| 国产午夜一区二区三区| 国内精品伊人久久久久av一坑 | 欧美在线一二三四区| 国产日本欧洲亚洲| 精品一区二区久久久| 欧美一区二区三区在| 日韩精品91亚洲二区在线观看| 欧美性xxxxxxxx| 亚洲图片欧美一区| 一本大道综合伊人精品热热| 欧美激情一区三区| 成人免费视频app| 国产精品久久午夜| aaa欧美日韩| 亚洲免费视频成人| 欧美亚洲高清一区| 日韩电影在线一区二区三区| 91麻豆精品国产91久久久资源速度| 天天爽夜夜爽夜夜爽精品视频| 欧美天天综合网| 日本亚洲欧美天堂免费| 日韩欧美不卡一区| 国产精品主播直播| 综合久久久久久| 91国产成人在线| 肉丝袜脚交视频一区二区| 欧美一级二级在线观看| 国产毛片精品视频| 中文字幕字幕中文在线中不卡视频| av资源网一区| 亚洲观看高清完整版在线观看| 3d成人动漫网站| 国产一区二区主播在线| 国产精品电影院| 欧美伊人久久大香线蕉综合69| 天堂在线一区二区| 精品国产一区二区在线观看| 国产成人欧美日韩在线电影| 亚洲免费观看视频| 在线播放中文一区| 国产成人精品影视| 亚洲亚洲精品在线观看| 精品国产乱码久久久久久夜甘婷婷 | www.色综合.com| 亚洲妇女屁股眼交7| 亚洲精品一区二区精华| 日本韩国欧美国产| 激情av综合网| 艳妇臀荡乳欲伦亚洲一区| 欧美一区二区精美| 91婷婷韩国欧美一区二区| 亚洲6080在线| 国产精品成人免费精品自在线观看| 精品视频1区2区| 国产不卡一区视频| 日本欧美一区二区在线观看| 国产精品视频你懂的| 91精品一区二区三区久久久久久 | 欧美久久久久久久久中文字幕| 久久精品亚洲国产奇米99| 91久久精品日日躁夜夜躁欧美| 经典一区二区三区| 亚洲电影中文字幕在线观看| 国产网红主播福利一区二区| 欧美日韩在线不卡| 99免费精品在线观看| 久久不见久久见中文字幕免费| 亚洲精品五月天| 国产视频一区在线观看| 日韩天堂在线观看| 欧美日韩高清一区二区| 91偷拍与自偷拍精品| 国产成人午夜视频| 精品系列免费在线观看| 亚洲电影你懂得| 最新国产精品久久精品| 久久久五月婷婷| 精品99一区二区三区| 欧美一区二区视频网站| 欧美三级日韩三级| 精品少妇一区二区三区| 欧美日韩视频在线第一区 | 久久亚洲二区三区| 欧美成人精品3d动漫h| 欧美日韩大陆在线| 欧美在线观看视频一区二区三区 | 久久99国产精品麻豆| 天堂成人国产精品一区| 亚洲一级在线观看| 亚洲精品五月天| 一区二区三区色| 有码一区二区三区| 一区二区三区在线看| 一二三四社区欧美黄| 亚洲黄色在线视频| 亚洲第一激情av| 午夜久久久久久电影| 天天综合色天天综合色h| 爽好多水快深点欧美视频| 日韩精品一区第一页| 麻豆精品视频在线观看视频| 久久精品国产精品亚洲红杏| 久久成人免费网| 精品一区二区影视| 国产高清亚洲一区| 91一区二区在线| 欧洲在线/亚洲| 欧美欧美午夜aⅴ在线观看| 欧美一区二区不卡视频| 久久亚洲精品小早川怜子| 国产精品理伦片| 一二三四区精品视频| 青青草91视频| 国产成人综合在线| 色哟哟国产精品| 欧美一区二区网站| 国产清纯美女被跳蛋高潮一区二区久久w| 久久先锋影音av鲁色资源网| 中文字幕亚洲不卡| 亚洲国产你懂的| 韩国精品主播一区二区在线观看 | 不卡av免费在线观看| 欧洲视频一区二区| 精品国产区一区| 亚洲欧洲精品天堂一级| 日日摸夜夜添夜夜添精品视频| 久久99精品久久久久久国产越南| 粉嫩高潮美女一区二区三区 | 亚洲精选免费视频| 日本不卡一区二区| 成人国产免费视频| 欧美精品久久天天躁| 国产喷白浆一区二区三区| 洋洋成人永久网站入口| 激情综合一区二区三区| 一本高清dvd不卡在线观看 | 欧洲av一区二区嗯嗯嗯啊| 欧美一级黄色大片| 亚洲品质自拍视频| 国内精品视频一区二区三区八戒 | 国产毛片精品一区| 欧美日韩一区二区三区免费看| 久久久久国产成人精品亚洲午夜| 一区二区在线观看免费 | 91色视频在线| 精品久久久久99| 亚洲国产视频一区二区| 大尺度一区二区| 日韩午夜激情av| 亚洲综合免费观看高清在线观看| 国内精品第一页| 91精品国产综合久久精品图片 | 欧美日韩成人综合| 中文字幕一区日韩精品欧美| 青青草97国产精品免费观看| 日本精品一区二区三区四区的功能| 26uuu欧美| 美日韩一区二区| 欧美三级日韩在线| 夜夜精品浪潮av一区二区三区| 国产成人免费9x9x人网站视频| 91精品国产免费| 午夜亚洲国产au精品一区二区| 色综合天天综合在线视频| 国产精品网友自拍| 国产高清久久久久| 精品av综合导航| 国产一区二区三区精品欧美日韩一区二区三区| 欧洲精品一区二区三区在线观看| 日韩美女视频一区| 色天使色偷偷av一区二区| 亚洲欧美日韩国产成人精品影院| 成人app下载| 自拍偷拍欧美激情| 一本一本大道香蕉久在线精品 |