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

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

?? 220model.v

?? 一本老師推薦的經典的VHDL覆蓋基礎的入門書籍
?? V
?? 第 1 頁 / 共 5 頁
字號:
//-------------------------------------------------------------------------
// This Verilog file was developed by Altera Corporation.  It may be
// freely copied and/or distributed at no cost.  Any persons using this
// file for any purpose do so at their own risk, and are responsible for
// the results of such use.  Altera Corporation does not guarantee that
// this file is complete, correct, or fit for any particular purpose.
// NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED.  This notice must
// accompany any copy of this file.
//------------------------------------------------------------------------
//
// Quartus II 4.0 Build 190 1/28/2004
//
//------------------------------------------------------------------------
// LPM Synthesizable Models (Support string type generic)
// These models are based on LPM version 220 (EIA-IS103 October 1998).
//------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
// Assumptions:
//
// 1. The default value for LPM_SVALUE, LPM_AVALUE, LPM_PVALUE, and
//    LPM_STRENGTH is string UNUSED.
//
//-----------------------------------------------------------------------------
// Verilog Language Issues:
//
// Two dimensional ports are not supported. Modules with two dimensional
// ports are implemented as one dimensional signal of (LPM_SIZE * LPM_WIDTH)
// bits wide.
//
//-----------------------------------------------------------------------------

//START_MODULE_NAME------------------------------------------------------------
//
// Module Name     :  LPM_DEVICE_FAMILIES
//
// Description     :  Common Altera device families comparison
//
// Limitation      :  
//
// Results expected:
//
//END_MODULE_NAME--------------------------------------------------------------

// BEGINNING OF MODULE
`timescale 1 ps / 1 ps

// MODULE DECLARATION
module LPM_DEVICE_FAMILIES;

// FUNCTON DECLARATION
function IS_VALID_FAMILY;
    input device;
    reg[8*20:1] device;
    reg is_valid;
begin
    if (IS_FAMILY_APEX20K(device) || IS_FAMILY_APEX20KE(device) ||
        IS_FAMILY_APEXII(device) || IS_FAMILY_ACEX2K(device) || 
        IS_FAMILY_STRATIXGX(device) || IS_FAMILY_STRATIX(device) ||
        IS_FAMILY_MERCURY(device) || IS_FAMILY_MAX(device) || 
        IS_FAMILY_FLEX6000(device) || IS_FAMILY_FLEX8000(device) ||
        IS_FAMILY_FLEX10K(device) || IS_FAMILY_FLEX10KE(device) ||
        IS_FAMILY_STRATIXII(device) || IS_FAMILY_MAXII(device))
        is_valid = 1;
    else
        is_valid = 0;

    IS_VALID_FAMILY = is_valid;
end
endfunction // IS_VALID_FAMILY

function IS_FAMILY_APEX20K;
    input device;
    reg[8*20:1] device;
    reg is_20k;    
begin
    if (device == "APEX20K")
        is_20k = 1; 
    else 
        is_20k = 0;
    
    IS_FAMILY_APEX20K = is_20k;
end
endfunction // IS_FAMILY_APEX20K

function IS_FAMILY_APEX20KE;
    input device;
    reg[8*20:1] device;
    reg is_20ke;    
begin
    if ((device == "APEX20KE") || (device == "APEX20KC") || 
    (device == "EXCALIBUR_ARM") || (device == "EXCALIBUR_MIPS"))
        is_20ke = 1; 
    else 
        is_20ke = 0;
    
    IS_FAMILY_APEX20KE = is_20ke;
end
endfunction // IS_FAMILY_APEX20KE

function IS_FAMILY_APEXII;
    input device;
    reg[8*20:1] device;
    reg is_apexii;    
begin
    if ((device == "APEX II") || (device == "APEXII"))
        is_apexii = 1; 
    else 
        is_apexii = 0;
    
    IS_FAMILY_APEXII = is_apexii;
end
endfunction // IS_FAMILY_APEXII

function IS_FAMILY_ACEX2K;
    input device;
    reg[8*20:1] device;
    reg is_acex2k;    
begin
    if ((device == "CYCLONE") || (device == "Cyclone"))
        is_acex2k = 1; 
    else 
        is_acex2k = 0;
    
    IS_FAMILY_ACEX2K = is_acex2k;
end
endfunction // IS_FAMILY_ACEX2K

function IS_FAMILY_STRATIXGX;
    input device;
    reg[8*20:1] device;
    reg is_stratixgx;    
begin
    if ((device == "STRATIX-GX") || (device == "STRATIX GX") ||
    (device == "Stratix GX"))
        is_stratixgx = 1; 
    else 
        is_stratixgx = 0;
   
    IS_FAMILY_STRATIXGX = is_stratixgx;
end
endfunction // IS_FAMILY_STRATIXGX

function IS_FAMILY_STRATIX;
    input device;
    reg[8*20:1] device;
    reg is_stratix;    
begin
    if ((device == "STRATIX") || (device == "Stratix"))
        is_stratix = 1; 
    else 
        is_stratix = 0;
    
    IS_FAMILY_STRATIX = is_stratix;
end
endfunction // IS_FAMILY_STRATIX

function IS_FAMILY_MERCURY;
    input device;
    reg[8*20:1] device;
    reg is_mercury;
begin
    if ((device == "MERCURY") || (device == "Mercury"))
        is_mercury = 1; 
    else 
        is_mercury = 0;
    
    IS_FAMILY_MERCURY = is_mercury;
end
endfunction // IS_FAMILY_MERCURY

function IS_FAMILY_MAX;
    input device;
    reg[8*20:1] device;
    reg is_max;
begin
    if ((device == "MAX5000") || (device == "MAX3000A") || (device == "MAX7000") ||
        (device == "MAX7000A") || (device == "MAX7000AE") || (device == "MAX7000E") ||
        (device == "MAX7000S") || (device == "MAX7000B") || (device == "MAX9000"))
        is_max = 1; 
    else 
        is_max = 0;
    
    IS_FAMILY_MAX = is_max;
end
endfunction // IS_FAMILY_MAX

function IS_FAMILY_FLEX6000;
    input device;
    reg[8*20:1] device;
    reg is_flex6k;    
begin
    if (device == "FLEX6000")
        is_flex6k = 1; 
    else 
        is_flex6k = 0;
    
    IS_FAMILY_FLEX6000 = is_flex6k;
end
endfunction // IS_FAMILY_FLEX6000

function IS_FAMILY_FLEX8000;
    input device;
    reg[8*20:1] device;
    reg is_flex8k;    
begin
    if (device == "FLEX8000")
        is_flex8k = 1; 
    else 
        is_flex8k = 0;
    
    IS_FAMILY_FLEX8000 = is_flex8k;
end
endfunction // IS_FAMILY_FLEX8000

function IS_FAMILY_FLEX10K;
    input device;
    reg[8*20:1] device;
    reg is_flex10k;
begin
    if ((device == "FLEX10K") || (device == "FLEX10KA"))
        is_flex10k = 1; 
    else 
        is_flex10k = 0;
    
    IS_FAMILY_FLEX10K = is_flex10k;
end
endfunction // IS_FAMILY_FLEX10K

function IS_FAMILY_FLEX10KE;
    input device;
    reg[8*20:1] device;
    reg is_flex10ke;
begin
    if ((device == "FLEX10KE") || (device == "FLEX 10KE") ||
        (device == "ACEX1K") || (device == "ACEX 1K"))
        is_flex10ke = 1; 
    else 
        is_flex10ke = 0;
    
    IS_FAMILY_FLEX10KE = is_flex10ke;
end
endfunction // IS_FAMILY_FLEX10KE

function IS_FAMILY_STRATIXII;
    input device;
    reg[8*20:1] device;
    reg is_stratixii;
begin
    if (device == "Stratix II")
        is_stratixii = 1; 
    else 
        is_stratixii = 0;
    
    IS_FAMILY_STRATIXII = is_stratixii;
end
endfunction // IS_FAMILY_STRATIXII

function IS_FAMILY_MAXII;
    input device;
    reg[8*20:1] device;
    reg is_maxii;
begin
    if ((device == "MAX II") || (device == "max ii") ||
        (device == "MAXII") || (device == "maxii"))
        is_maxii = 1;
    else
        is_maxii = 0;

    IS_FAMILY_MAXII  = is_maxii;
end
endfunction //IS_FAMILY_MAXII

endmodule // LPM_DEVICE_FAMILIES


//START_MODULE_NAME------------------------------------------------------------
//
// Module Name     :  LPM_HINT_EVALUATION
//
// Description     :  Common function to grep the value of altera specific parameters
//                    within the lpm_hint parameter.
//
// Limitation      :  No error checking to check whether the content of the lpm_hint
//                    is valid or not.
//
// Results expected:  If the target parameter found, return the value of the parameter.
//                    Otherwise, return empty string.
//
//END_MODULE_NAME--------------------------------------------------------------

// BEGINNING OF MODULE
`timescale 1 ps / 1 ps

// MODULE DECLARATION
module LPM_HINT_EVALUATION;

// FUNCTON DECLARATION

// This function will search through the string (given string) to look for a match for the
// a given parameter(compare_param_name). It will return the value for the given parameter.
function [8*200:1] GET_PARAMETER_VALUE;
    input [8*200:1] given_string;  // string to be searched
    input [8*50:1] compare_param_name; // parameter name to be looking for in the given_string.
    integer param_value_char_count; // to indicate current character count in the param_value
    integer param_name_char_count;  // to indicate current character count in the param_name
    integer white_space_count;

    reg extract_param_value; // if 1 mean extracting parameters value from given string
    reg extract_param_name;  // if 1 mean extracting parameters name from given string
    reg param_found; // to indicate whether compare_param_name have been found in the given_string
    reg include_white_space; // if 1, include white space in the parameter value

    reg [8*200:1] reg_string; // to store the value of the given string
    reg [8*50:1] param_name;  // to store parameter name
    reg [8*20:1] param_value; // to store parameter value
    reg [8:1] tmp; // to get the value of the current byte
begin
    reg_string = given_string;
    param_value_char_count = 0;
    param_name_char_count =0;
    extract_param_value = 1;
    extract_param_name = 0;
    param_found = 0;
    include_white_space = 0;
    white_space_count = 0;

    tmp = reg_string[8:1];

    // checking every bytes of the reg_string from right to left.
    while ((tmp != 0 ) && (param_found != 1))
    begin
        tmp = reg_string[8:1];

        //if tmp != ' ' or should include white space (trailing white space are ignored)
        if((tmp != 32) || (include_white_space == 1))
        begin
            if(tmp == 32)
            begin
                white_space_count = 1;
            end
            else if(tmp == 61)  // if tmp = '='
            begin
                extract_param_value = 0;
                extract_param_name =  1;  // subsequent bytes should be part of param_name
                include_white_space = 0;  // ignore the white space (if any) between param_name and '='
                white_space_count = 0;
                param_value = param_value >> (8 * (20 - param_value_char_count));
                param_value_char_count = 0;
            end
            else if (tmp == 44) // if tmp = ','
            begin
                extract_param_value = 1; // subsequent bytes should be part of param_value
                extract_param_name =  0;
                param_name = param_name >> (8 * (50 - param_name_char_count));
                param_name_char_count = 0;
                if(param_name == compare_param_name)
                    param_found = 1;  // the compare_param_name have been found in the reg_string
            end
            else
            begin
                if(extract_param_value == 1)
                begin
                    param_value_char_count = param_value_char_count + white_space_count + 1;
                    include_white_space = 1;
                    if(white_space_count > 0)
                    begin
                        param_value = {8'b100000, param_value[20*8:9]};
                        white_space_count = 0;
                    end
                    param_value = {tmp, param_value[20*8:9]};
                end
                else if(extract_param_name == 1)
                begin
                    param_name = {tmp, param_name[50*8:9]};
                    param_name_char_count = param_name_char_count + 1;
                end
            end
        end
        reg_string = reg_string >> 8;  // shift 1 byte to the right
    end

    // for the case whether param_name is the left most part of the reg_string
    if(extract_param_name == 1)
    begin
        param_name = param_name >> (8 * (50 - param_name_char_count));

        if(param_name == compare_param_name)
            param_found = 1;
    end

    if (param_found == 1)
        GET_PARAMETER_VALUE = param_value;   // return the value of the parameter been looking for
    else
        GET_PARAMETER_VALUE = "";  // return empty string if parameter not found

end
endfunction

endmodule // LPM_HINT_EVALUATION


//START_MODULE_NAME------------------------------------------------------------
//
// Module Name     :  lpm_constant
//

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人成7777| 色综合久久99| 日韩和欧美的一区| 韩国精品在线观看| 成人免费一区二区三区视频 | 五月天久久比比资源色| 麻豆精品在线视频| 美国毛片一区二区三区| 成人一级片网址| 欧美性色综合网| 国产婷婷色一区二区三区 | 麻豆一区二区三| 国产91清纯白嫩初高中在线观看| 国产传媒久久文化传媒| 欧美视频中文字幕| 91黄色免费版| 欧美r级电影在线观看| 欧美一区二区精品| 中文字幕av一区二区三区| 欧美高清一级片在线观看| 欧美日韩精品福利| 国产精品第五页| 亚洲综合在线电影| 91美女在线看| 久久久亚洲国产美女国产盗摄 | 日韩精品电影一区亚洲| 国产精品性做久久久久久| 欧美亚洲综合色| 欧美精选午夜久久久乱码6080| www.欧美.com| 日韩欧美激情在线| 五月天视频一区| 免费观看成人av| 成人永久aaa| 欧美v日韩v国产v| 日韩精品一区二区三区视频| 亚洲国产sm捆绑调教视频| 成人激情免费电影网址| 2021中文字幕一区亚洲| 亚洲精品菠萝久久久久久久| 国产精品系列在线播放| 精品国产露脸精彩对白| 在线观看网站黄不卡| 中文字幕中文字幕在线一区| 欧美日韩精品电影| 国产精品丝袜久久久久久app| 亚洲理论在线观看| 91成人网在线| 亚洲综合色自拍一区| aaa国产一区| 欧美一区二区三区四区视频| 亚洲综合精品久久| 欧美日韩精品一区视频| 国内精品国产三级国产a久久| 日韩免费一区二区三区在线播放| 欧美国产日韩精品免费观看| 色综合久久综合中文综合网| 亚洲国产美女搞黄色| 日韩午夜激情视频| 狠狠色2019综合网| 亚洲欧美一区二区三区极速播放 | 欧美日韩成人激情| 一二三区精品福利视频| 在线观看成人小视频| 久久精品久久99精品久久| 久久久91精品国产一区二区三区| 美女一区二区视频| 国产目拍亚洲精品99久久精品| 色婷婷av一区二区三区之一色屋| 一区二区三区日韩精品| 国产成人免费av在线| 国产精品―色哟哟| 日韩一区二区在线观看视频播放| 国产主播一区二区| 欧美极品美女视频| 7777精品伊人久久久大香线蕉完整版 | 国产亚洲精品超碰| 99国产麻豆精品| 亚洲美女偷拍久久| 国产一区二区成人久久免费影院| 久久亚洲综合色一区二区三区 | 精品无人码麻豆乱码1区2区| 日本高清成人免费播放| 久色婷婷小香蕉久久| 国产不卡在线一区| 91极品视觉盛宴| 色婷婷综合激情| 91精品国产综合久久久久久久久久| 日韩欧美123| 国产免费久久精品| 欧美日韩一二三| 国产精品久久久久久久裸模| 精品亚洲成a人在线观看| 日韩制服丝袜先锋影音| 国产剧情一区二区| 成人午夜大片免费观看| 欧美日韩国产一级| 国产精品素人视频| 亚洲va在线va天堂| 成人午夜大片免费观看| 日韩欧美一二三四区| 亚洲综合久久久| 91蜜桃网址入口| 99re热视频这里只精品| 秋霞成人午夜伦在线观看| 偷拍自拍另类欧美| 久久精品噜噜噜成人av农村| 91视频观看视频| 亚洲精品国产一区二区三区四区在线| 国产一区欧美二区| 日韩一区二区三区电影在线观看 | 色婷婷av一区二区三区gif| 日韩手机在线导航| 日本亚洲欧美天堂免费| 欧美天天综合网| 国产精品超碰97尤物18| 久久只精品国产| 免费人成在线不卡| 成人午夜又粗又硬又大| 91精品国产综合久久婷婷香蕉 | 奇米影视7777精品一区二区| 欧美视频一区在线| 婷婷亚洲久悠悠色悠在线播放| 欧美日韩一区不卡| 免费美女久久99| 国产精品久久久99| 国产老肥熟一区二区三区| 精品久久国产97色综合| 激情综合色综合久久综合| 国产精品视频你懂的| 欧美精品丝袜中出| 不卡视频在线看| 免费观看日韩av| 亚洲欧美另类小说| 精品日韩欧美一区二区| 91成人免费在线视频| 国产激情偷乱视频一区二区三区| 国产精品久久久一区麻豆最新章节| 91一区在线观看| 国产成人亚洲综合a∨婷婷图片| 日韩理论电影院| 日韩精品一区二区三区老鸭窝| 99精品在线观看视频| 国产福利一区在线| 久久激情综合网| 日本伊人午夜精品| 欧美精品色一区二区三区| 欧美中文字幕一区二区三区| av高清久久久| 91日韩在线专区| 91在线视频播放| 在线观看av一区二区| 91视频www| 欧美日韩的一区二区| 欧美日韩视频在线观看一区二区三区 | 97精品超碰一区二区三区| 蜜桃视频第一区免费观看| 午夜私人影院久久久久| 亚洲一区二区影院| 亚洲一级二级在线| 视频一区中文字幕| 狠狠色丁香九九婷婷综合五月| 国产成人欧美日韩在线电影| 国产成人av福利| 日本精品免费观看高清观看| 一本久久a久久精品亚洲| 国产成a人亚洲| 亚洲人成在线观看一区二区| 国产欧美日韩在线| 亚洲国产精品传媒在线观看| 亚洲精品伦理在线| 日本欧美加勒比视频| 国产一区二区在线观看免费| 91一区二区在线观看| 日本道在线观看一区二区| 日韩一区二区在线观看视频播放| 国产精品成人免费在线| 久久www免费人成看片高清| 不卡视频免费播放| 国产亚洲福利社区一区| 日韩中文字幕一区二区三区| 在线欧美日韩精品| 2021中文字幕一区亚洲| 亚洲一区二区三区不卡国产欧美| 日本不卡一二三| 91麻豆swag| 日韩一级免费观看| 日韩和欧美一区二区| 色偷偷一区二区三区| 国产精品女同互慰在线看| 国产乱子伦视频一区二区三区 | 精品国产制服丝袜高跟| 狠狠色丁香婷综合久久| 日韩一区二区电影网| 国产在线精品不卡| 国产欧美精品一区| 国产米奇在线777精品观看| 久久这里只有精品视频网| 国产黄人亚洲片| 亚洲日韩欧美一区二区在线|