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

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

?? altera_mf.v

?? 一本老師推薦的經(jīng)典的VHDL覆蓋基礎(chǔ)的入門書籍
?? V
?? 第 1 頁 / 共 5 頁
字號:
		var_family_cycloneii = 0;

	FEATURE_FAMILY_CYCLONEII  = var_family_cycloneii;
end
endfunction //FEATURE_FAMILY_CYCLONEII

function FEATURE_FAMILY_HAS_STRATIXII_STYLE_RAM;
	input device;
	reg[8*20:1] device;
	reg var_family_has_stratixii_style_ram;
begin
	if (FEATURE_FAMILY_STRATIXII(device) || FEATURE_FAMILY_CYCLONEII(device) )
		var_family_has_stratixii_style_ram = 1;
	else
		var_family_has_stratixii_style_ram = 0;

	FEATURE_FAMILY_HAS_STRATIXII_STYLE_RAM  = var_family_has_stratixii_style_ram;
end
endfunction //FEATURE_FAMILY_HAS_STRATIXII_STYLE_RAM

function IS_VALID_FAMILY;
	input device;
	reg[8*20:1] device;
	reg is_valid;
begin
	if (((device == "ACEX1K") || (device == "acex1k") || (device == "ACEX 1K") || (device == "acex 1k"))
	|| ((device == "APEX20K") || (device == "apex20k") || (device == "APEX 20K") || (device == "apex 20k") || (device == "RAPHAEL") || (device == "raphael"))
	|| ((device == "APEX20KC") || (device == "apex20kc") || (device == "APEX 20KC") || (device == "apex 20kc"))
	|| ((device == "APEX20KE") || (device == "apex20ke") || (device == "APEX 20KE") || (device == "apex 20ke"))
	|| ((device == "APEX II") || (device == "apex ii") || (device == "APEXII") || (device == "apexii") || (device == "APEX 20KF") || (device == "apex 20kf") || (device == "APEX20KF") || (device == "apex20kf"))
	|| ((device == "EXCALIBUR_ARM") || (device == "excalibur_arm") || (device == "Excalibur ARM") || (device == "EXCALIBUR ARM") || (device == "excalibur arm") || (device == "ARM-BASED EXCALIBUR") || (device == "arm-based excalibur") || (device == "ARM_BASED_EXCALIBUR") || (device == "arm_based_excalibur"))
	|| ((device == "FLEX10KE") || (device == "flex10ke") || (device == "FLEX 10KE") || (device == "flex 10ke"))
	|| ((device == "FLEX10K") || (device == "flex10k") || (device == "FLEX 10K") || (device == "flex 10k"))
	|| ((device == "FLEX10KA") || (device == "flex10ka") || (device == "FLEX 10KA") || (device == "flex 10ka"))
	|| ((device == "FLEX6000") || (device == "flex6000") || (device == "FLEX 6000") || (device == "flex 6000") || (device == "FLEX6K") || (device == "flex6k"))
	|| ((device == "MAX7000B") || (device == "max7000b") || (device == "MAX 7000B") || (device == "max 7000b"))
	|| ((device == "MAX7000AE") || (device == "max7000ae") || (device == "MAX 7000AE") || (device == "max 7000ae"))
	|| ((device == "MAX3000A") || (device == "max3000a") || (device == "MAX 3000A") || (device == "max 3000a"))
	|| ((device == "MAX7000S") || (device == "max7000s") || (device == "MAX 7000S") || (device == "max 7000s"))
	|| ((device == "MAX7000A") || (device == "max7000a") || (device == "MAX 7000A") || (device == "max 7000a"))
	|| ((device == "Mercury") || (device == "MERCURY") || (device == "mercury") || (device == "DALI") || (device == "dali"))
	|| ((device == "Stratix") || (device == "STRATIX") || (device == "stratix") || (device == "Yeager") || (device == "YEAGER") || (device == "yeager"))
	|| ((device == "Stratix GX") || (device == "STRATIX GX") || (device == "stratix gx") || (device == "Stratix-GX") || (device == "STRATIX-GX") || (device == "stratix-gx") || (device == "StratixGX") || (device == "STRATIXGX") || (device == "stratixgx") || (device == "Aurora") || (device == "AURORA") || (device == "aurora"))
	|| ((device == "Cyclone") || (device == "CYCLONE") || (device == "cyclone") || (device == "ACEX2K") || (device == "acex2k") || (device == "ACEX 2K") || (device == "acex 2k") || (device == "Tornado") || (device == "TORNADO") || (device == "tornado"))
	|| ((device == "MAX II") || (device == "max ii") || (device == "MAXII") || (device == "maxii") || (device == "Tsunami") || (device == "TSUNAMI") || (device == "tsunami"))
	|| ((device == "HardCopy Stratix") || (device == "HARDCOPY STRATIX") || (device == "hardcopy stratix") || (device == "Stratix HC") || (device == "STRATIX HC") || (device == "stratix hc") || (device == "StratixHC") || (device == "STRATIXHC") || (device == "stratixhc") || (device == "HardcopyStratix") || (device == "HARDCOPYSTRATIX") || (device == "hardcopystratix"))
	|| ((device == "Stratix II") || (device == "STRATIX II") || (device == "stratix ii") || (device == "StratixII") || (device == "STRATIXII") || (device == "stratixii") || (device == "Armstrong") || (device == "ARMSTRONG") || (device == "armstrong"))
	|| ((device == "Cyclone II") || (device == "CYCLONE II") || (device == "cyclone ii") || (device == "Cycloneii") || (device == "CYCLONEII") || (device == "cycloneii") || (device == "Magellan") || (device == "MAGELLAN") || (device == "magellan")))
		is_valid = 1;
	else
		is_valid = 0;

	IS_VALID_FAMILY = is_valid;
end
endfunction // IS_VALID_FAMILY


endmodule // ALTERA_DEVICE_FAMILIES
//START_MODULE_NAME------------------------------------------------------------
//
// Module Name     :  altaccumulate
//
// Description     :  Parameterized accumulator megafunction. The accumulator
// performs an add function or a subtract function based on the add_sub
// parameter. The input data can be signed or unsigned.
//
// Limitation      : n/a
//
// Results expected:  result - The results of add or subtract operation. Output
//                             port [width_out-1 .. 0] wide.
//                    cout   - The cout port has a physical interpretation as 
//                             the carry-out (borrow-in) of the MSB. The cout
//                             port is most meaningful for detecting overflow
//                             in unsigned operations. The cout port operates
//                             in the same manner for signed and unsigned
//                             operations.
//                    overflow - Indicates the accumulator is overflow.
//
//END_MODULE_NAME--------------------------------------------------------------

// BEGINNING OF MODULE

`timescale 1 ps / 1 ps

module altaccumulate (cin, data, add_sub, clock, sload, clken, sign_data, aclr,
                      result, cout, overflow);

    parameter width_in = 4;     // Required
    parameter width_out = 8;    // Required
    parameter lpm_representation = "UNSIGNED";
    parameter extra_latency = 0;
    parameter use_wys = "ON";
    parameter lpm_hint = "UNUSED";
    parameter lpm_type = "altaccumulate";

    // INPUT PORT DECLARATION
    input cin;
    input [width_in-1:0] data;  // Required port
    input add_sub;              // Default = 1
    input clock;                // Required port
    input sload;                // Default = 0
    input clken;                // Default = 1
    input sign_data;            // Default = 0
    input aclr;                 // Default = 0

    // OUTPUT PORT DECLARATION
    output [width_out-1:0] result;  //Required port
    output cout;
    output overflow;

    // INTERNAL REGISTERS DECLARATION
    reg [width_out:0] temp_sum;
    reg overflow;
    reg overflow_int;
    reg cout_int;
    reg cout_delayed;

    reg [width_out-1:0] result;
    reg [width_out+1:0] result_int;
    reg [(width_out - width_in) : 0] zeropad;

    reg borrow;
    reg cin_int;

    reg [width_out-1:0] fb_int;
    reg [width_out -1:0] data_int;

    reg [width_out+1:0] result_pipe [extra_latency:0];
    reg [width_out+1:0] result_full;
    reg [width_out+1:0] result_full2;

    reg a;

    // INTERNAL WIRE DECLARATION
    wire [width_out:0] temp_sum_wire;
    wire cout;
    wire cout_int_wire;
    wire cout_delayed_wire;
    wire overflow_int_wire;
    wire [width_out+1:0] result_int_wire;

    // INTERNAL TRI DECLARATION

    tri0 aclr_int;
    tri0 sign_data_int;
    tri0 sload_int;

    tri1 clken_int;
    tri1 add_sub_int;

    // LOCAL INTEGER DECLARATION
    integer head;
    integer i;

    // INITIAL CONSTRUCT BLOCK
    initial
    begin
    
        // Checking for invalid parameters
        if( width_in <= 0 )
        begin
            $display("Error! Value of width_in parameter must be greater than 0.");
            $stop;
        end

        if( width_out <= 0 )
        begin
            $display("Error! Value of width_out parameter must be greater than 0.");
            $stop;
        end
        
        if( extra_latency > width_out )
        begin
            $display("Info: Value of extra_latency parameter should be lower than width_out parameter for better performance/utilization.");
        end
        
        if( width_in > width_out )
        begin
            $display("Error! Value of width_in parameter should be lower than or equal to width_out.");
            $stop;
        end
    
        result = 0;
        cout_delayed = 0;
        overflow = 0;
        head = 0;
        result_int = 0;
        for (i = 0; i <= extra_latency; i = i +1)
        begin
            result_pipe [i] = 0;
        end
    end

    // ALWAYS CONSTRUCT BLOCK
    always @(posedge clock or posedge aclr_int)
    begin

        if (aclr_int == 1)
        begin
            result_int = 0;
            result = 0;
            overflow = 0;
            cout_delayed = 0;
            for (i = 0; i <= extra_latency; i = i +1)
            begin
                result_pipe [i] = 0;
            end
        end
        else
        begin
            if (clken_int == 1)
            begin
                //get result from output register
                if (extra_latency > 0)
                begin
                    result_pipe [head] = {
                                          result_int [width_out+1],
                                          {cout_int_wire, result_int [width_out-1:0]}
                                         };

                    head = (head + 1) % (extra_latency);

                    result_full = result_pipe [head];
                    cout_delayed = result_full [width_out];
                    result = result_full [width_out-1:0];
                    overflow = result_full [width_out+1];
                end
                else
                begin
                    result = temp_sum_wire;
                    overflow = overflow_int_wire;
                end

                result_int = {overflow_int_wire, {cout_int_wire, temp_sum_wire [width_out-1:0]}};
            end
        end
    end


    always @ (data or cin or add_sub_int or sign_data_int or
              result_int_wire [width_out -1:0] or sload_int or aclr_int)
    begin


        // If asynchronous clear, reset and skip.
        if (aclr_int == 1)  // asynchronous clear
        begin
            cout_int = 0;
            overflow_int = 0;
        end
        else
        begin

            if ((lpm_representation == "SIGNED") || (sign_data_int == 1))
            begin
                zeropad = (data [width_in-1] ==0) ? 0 : -1;
            end
            else
            begin
                zeropad = 0;
            end

            fb_int = (sload_int == 1'b1) ? 0 : result_int_wire [width_out-1:0];
            data_int = {zeropad, data};

            if ((add_sub_int == 1) || (sload_int == 1))
            begin
                cin_int = ((sload_int == 1'b1) ? 0 : ((cin === 1'bz) ? 0 : cin));
                temp_sum = fb_int + data_int + cin_int;
                cout_int = temp_sum [width_out];
            end
            else
            begin
                cin_int = (cin === 1'bz) ? 1 : cin;
                borrow = ~cin_int;

                temp_sum = fb_int - data_int - borrow;

                result_full2 = data_int + borrow;
                cout_int = (fb_int >= result_full2) ? 1 : 0;
            end

            if ((lpm_representation == "SIGNED") || (sign_data_int == 1))
            begin
                a = (data [width_in-1] ~^ fb_int [width_out-1]) ^ (~add_sub_int);
                overflow_int = a & (fb_int [width_out-1] ^ temp_sum[width_out-1]);
            end
            else
            begin
                overflow_int = (add_sub_int == 1) ? cout_int : ~cout_int;
            end

            if (sload_int == 1)
            begin
                cout_int = !add_sub_int;
                overflow_int = 0;
            end
        end
    end

    // CONTINOUS ASSIGNMENT

    // Get the input data and control signals.
    assign sign_data_int = sign_data;
    assign sload_int =  sload;
    assign add_sub_int = add_sub;

    assign clken_int = clken;
    assign aclr_int = aclr;
    assign result_int_wire = result_int;
    assign temp_sum_wire = temp_sum;
    assign cout_int_wire = cout_int;
    assign overflow_int_wire = overflow_int;
    assign cout = (extra_latency == 0) ? cout_int_wire : cout_delayed_wire;
    assign cout_delayed_wire = cout_delayed;

endmodule   // End of altaccumulate

// END OF MODULE

//--------------------------------------------------------------------------
// Module Name      : altmult_accum
//
// Description      : a*b + x (MAC)
//
// Limitation       : Stratix DSP block
//
// Results expected : signed & unsigned, maximum of 3 pipelines(latency) each.
//
//--------------------------------------------------------------------------

`timescale 1 ps / 1 ps

module altmult_accum (dataa, 
                      datab, 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人午夜短视频| 午夜电影一区二区三区| 国产寡妇亲子伦一区二区| 日韩精品中文字幕在线不卡尤物| 日韩精品视频网站| 精品国产一二三区| 国产成人精品亚洲777人妖| 国产精品电影一区二区| 99re热视频精品| 亚洲成人av资源| 欧美电影免费观看高清完整版在| 国产麻豆午夜三级精品| 国产精品国产精品国产专区不片| 99r精品视频| 午夜视频在线观看一区| 欧美一区二区日韩| 国产成人免费网站| 亚洲欧美另类在线| 欧美一级生活片| 国产91精品一区二区麻豆网站| 国产精品短视频| 欧美日韩国产小视频| 国产伦精品一区二区三区免费 | 日韩高清在线电影| 精品99久久久久久| 北条麻妃一区二区三区| 五月激情综合色| 国产三级三级三级精品8ⅰ区| 97se亚洲国产综合自在线不卡| 无码av免费一区二区三区试看| 日韩欧美高清在线| 91在线无精精品入口| 日韩电影免费一区| 亚洲欧美中日韩| 日韩一级片在线观看| 不卡一区二区中文字幕| 日本伊人色综合网| 最新日韩在线视频| 精品日韩成人av| 99re成人在线| 国产精品99久久久久久久女警| 亚洲欧美一区二区三区久本道91| 日韩三级中文字幕| 91福利视频久久久久| 国产中文一区二区三区| 亚洲成人福利片| 国产精品久久久久久福利一牛影视 | 亚洲精品美国一| 久久久精品欧美丰满| 欧美一级在线免费| 色88888久久久久久影院野外 | 国产suv精品一区二区883| 天堂精品中文字幕在线| 1024成人网| 国产视频不卡一区| 精品日韩99亚洲| 欧美日韩国产三级| 在线观看一区日韩| yourporn久久国产精品| 国产一区二区三区四区在线观看 | 亚洲人成网站精品片在线观看| 日韩免费成人网| 884aa四虎影成人精品一区| 91小视频在线| 成人精品在线视频观看| 国产精品一二三区在线| 久久激情综合网| 奇米四色…亚洲| 日韩成人午夜精品| 午夜久久久久久久久| 亚洲综合色婷婷| 亚洲精品中文在线| 自拍偷拍亚洲综合| 中文字幕亚洲一区二区va在线| 国产欧美日韩另类视频免费观看| 日韩欧美成人一区| 精品国精品国产| 精品国产一区二区亚洲人成毛片| 欧美xxx久久| 精品欧美久久久| 精品黑人一区二区三区久久| 欧美一区二区三区思思人| 欧美日韩久久久| 欧美麻豆精品久久久久久| 欧美日韩国产在线播放网站| 欧美精品粉嫩高潮一区二区| 欧美精品九九99久久| 日韩色视频在线观看| 精品日韩av一区二区| 国产丝袜美腿一区二区三区| 中文字幕av一区二区三区免费看| 国产亚洲综合色| 国产精品免费丝袜| 亚洲欧美色图小说| 亚洲成人一二三| 日本欧美韩国一区三区| 久久超碰97人人做人人爱| 国产一区二区中文字幕| 成人午夜免费视频| 色av成人天堂桃色av| 欧美精品精品一区| 久久婷婷国产综合国色天香| 欧美国产成人精品| 亚洲免费观看高清完整版在线观看熊| 一区二区三区视频在线观看| 亚洲成人综合视频| 国内精品视频666| 99久久久国产精品免费蜜臀| 在线观看日韩av先锋影音电影院| 欧美丰满一区二区免费视频| 精品国产一区二区三区不卡 | 一区二区三区四区国产精品| 日本一区中文字幕| 成人免费高清在线| 欧美日韩国产高清一区| 欧美精品一区二区三区蜜桃| 亚洲欧美国产高清| 免费精品视频在线| www.亚洲在线| 欧美一级欧美一级在线播放| 国产片一区二区| 亚洲成人黄色小说| 丰满亚洲少妇av| 欧美日韩一区二区三区视频| 久久久久久久精| 一区二区三区国产精品| 国产在线国偷精品产拍免费yy| 91麻豆国产精品久久| 精品国产乱码久久久久久图片| 亚洲三级电影网站| 狠狠久久亚洲欧美| 欧美日韩一二三| 国产精品青草综合久久久久99| 五月激情六月综合| 色视频一区二区| 久久综合久久99| 亚洲成人激情综合网| 91小视频在线免费看| 国产欧美综合在线| 久久99热狠狠色一区二区| 欧美性做爰猛烈叫床潮| 中文字幕一区二区在线播放| 久久99热这里只有精品| 7777精品伊人久久久大香线蕉的 | 美脚の诱脚舐め脚责91| 色妞www精品视频| 欧美国产在线观看| 国产一区二区三区久久久 | 悠悠色在线精品| 成人深夜在线观看| 久久久精品免费网站| 久久精品国产一区二区三| 欧美女孩性生活视频| 日韩美女啊v在线免费观看| 精品午夜久久福利影院 | 亚洲国产欧美在线| 成人爽a毛片一区二区免费| 国产亚洲婷婷免费| 日本成人在线一区| 色噜噜狠狠成人中文综合| 久久精品欧美一区二区三区不卡 | 国产美女视频91| 精品国产免费视频| 秋霞成人午夜伦在线观看| 色香蕉成人二区免费| 国产精品三级视频| 高清久久久久久| 精品国产三级电影在线观看| 日韩精品一二三四| 欧美日韩午夜精品| 天堂精品中文字幕在线| 色老汉一区二区三区| 国产精品毛片大码女人| 国产专区欧美精品| 中文字幕欧美激情| 国产精品中文字幕日韩精品| 日韩精品一区在线| 久久精品国产成人一区二区三区| 精品国产乱码久久久久久久久| 蜜桃在线一区二区三区| 日韩欧美高清一区| 亚洲欧美另类久久久精品2019| 97久久精品人人澡人人爽| 亚洲欧美一区二区视频| 99国产精品久久| 中文字幕亚洲在| 欧美日韩高清在线| 午夜国产精品一区| 欧美一级视频精品观看| 国产在线不卡视频| 国产蜜臀av在线一区二区三区| 国产精品一区二区三区99| 亚洲精品一区二区三区蜜桃下载| 成人午夜看片网址| 亚洲欧美一区二区三区极速播放| 色综合久久天天综合网| 夜夜嗨av一区二区三区中文字幕 | 精品国产乱码久久久久久老虎| 精品一区二区三区视频| 欧美韩日一区二区三区四区|