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

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

?? 220model.vhd

?? 一本老師推薦的經(jīng)典的VHDL覆蓋基礎(chǔ)的入門書籍
?? VHD
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
        end generate L1;

end LPM_SYN;
-- END OF ARCHITECTURE

---START_ENTITY_HEADER---------------------------------------------------------
--
-- Entity Name     :  lpm_xor
--
-- Description     :  Parameterized XOR gate megafunction. This megafunction takes in
--                    data inputs for a number of XOR gates.

--
-- Limitation      :  n/a
--
-- results Expected:  Each result[] bit is the result of each XOR gates.
--
---END_ENTITY_HEADER-----------------------------------------------------------

-- LIBRARY USED----------------------------------------------------------------
library IEEE;
use IEEE.std_logic_1164.all;
use work.LPM_COMPONENTS.all;

-- ENTITY DECLARATION
entity LPM_XOR is
    generic (
        -- Width of the data[] and result[] ports. Number of XOR gates. (Required)
        lpm_width : natural;
        -- Number of inputs to each XOR gate. Number of input buses. (Required)
        lpm_size : natural;
        lpm_type : string := "LPM_XOR";
        lpm_hint : string := "UNUSED");
    port (
        -- data input to the XOR gates. (Required)
        data : in std_logic_2D(lpm_size-1 downto 0, lpm_width-1 downto 0); 
        -- result of XOR operators. (Required)
        result : out std_logic_vector(lpm_width-1 downto 0)
    ); 
end LPM_XOR;
-- END OF ENTITY

-- BEGINNING OF ARCHITECTURE
architecture LPM_SYN of LPM_XOR is

-- SIGNAL DECLARATION
signal result_int : std_logic_2d(lpm_size-1 downto 0,lpm_width-1 downto 0);

begin

-- PROCESS DECLARATION

    -- basic error checking for invalid parameters
    MSG: process
    begin
        if (lpm_width <= 0) then
            ASSERT FALSE
            REPORT "Value of lpm_width parameter must be greater than 0!"
            SEVERITY ERROR;
        end if;

        if (lpm_size <= 0) then
            ASSERT FALSE
            REPORT "Value of lpm_size parameter must be greater than 0!"
            SEVERITY ERROR;
        end if;
        wait;
    end process MSG;

    L1: for i in 0 to lpm_width-1 generate
            result_int(0,i) <= data(0,i);
    L2:     for j in 0 to lpm_size-2 generate
                result_int(j+1,i) <=  result_int(j,i) xor data(j+1,i);
    L3:         if j = lpm_size-2 generate
                    result(i) <= result_int(lpm_size-1,i);
                end generate L3;
            end generate L2;
        end generate L1;

end LPM_SYN;
-- END OF ARCHITECTURE

---START_ENTITY_HEADER---------------------------------------------------------
--
-- Entity Name     :  lpm_bustri
--
-- Description     :  Parameterized tri-state buffer. lpm_bustri is useful for 
--                    controlling both unidirectional and bidirectional I/O bus 
--                    controllers.
--
-- Limitation      :  n/a
--
-- results Expected:  Belows are the three configurations which are valid:
--
--                    1) Only the input ports data[lpm_width-1..0] and enabledt are
--                       present, and only the output ports tridata[lpm_width-1..0] 
--                       are present. 
--
--                        ----------------------------------------------------
--                       | Input           |  Output                          |
--                       |====================================================|
--                       | enabledt        |     tridata[lpm_width-1..0]      |
--                       |----------------------------------------------------|
--                       |    0            |     Z                            |
--                       |----------------------------------------------------|
--                       |    1            |     data[lpm_width-1..0]         |
--                        ----------------------------------------------------
--
--                    2) Only the input ports tridata[lpm_width-1..0] and enabletr
--                       are present, and only the output ports result[lpm_width-1..0]
--                       are present.
--
--                        ----------------------------------------------------
--                       | Input           |  Output                          |
--                       |====================================================|
--                       | enabletr        |     result[lpm_width-1..0]       |
--                       |----------------------------------------------------|
--                       |    0            |     Z                            |
--                       |----------------------------------------------------|
--                       |    1            |     tridata[lpm_width-1..0]      |
--                        ----------------------------------------------------
--
--                    3) All ports are present: input ports data[lpm_width-1..0],
--                       enabledt, and enabletr; output ports result[lpm_width-1..0];
--                       and bidirectional ports tridata[lpm_width-1..0].
--
--        ----------------------------------------------------------------------------
--       |         Input        |      Bidirectional       |         Output           |
--       |----------------------------------------------------------------------------|
--       | enabledt  | enabletr | tridata[lpm_width-1..0]  |  result[lpm_width-1..0]  |
--       |============================================================================|
--       |    0      |     0    |       Z (input)          |          Z               |
--       |----------------------------------------------------------------------------|
--       |    0      |     1    |       Z (input)          |  tridata[lpm_width-1..0] |
--       |----------------------------------------------------------------------------|
--       |    1      |     0    |     data[lpm_width-1..0] |          Z               |
--       |----------------------------------------------------------------------------|
--       |    1      |     1    |     data[lpm_width-1..0] |  data[lpm_width-1..0]    |
--       ----------------------------------------------------------------------------
--
---END_ENTITY_HEADER-----------------------------------------------------------

-- LIBRARY USED----------------------------------------------------------------
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;
use work.LPM_COMPONENTS.all;

-- ENTITY DECLARATION
entity LPM_BUSTRI is

-- GENERIC DECLARATION
    generic (
        lpm_width : natural;    -- MUST be greater than 0 (Required)
        lpm_type  : string := "LPM_BUSTRI";
        lpm_hint  : string := "UNUSED"
    );
             
-- PORT DECLARATION
    port (
        -- Bidirectional bus signal. (Required)
        tridata : inout std_logic_vector(lpm_width-1 downto 0);
        -- Data input to the tridata[] bus. (Required)
        data : in std_logic_vector(lpm_width-1 downto 0);
        -- If high, enables tridata[] onto the result bus.
        enabletr : in std_logic := '0';
        -- If high, enables data onto the tridata[] bus.
        enabledt : in std_logic := '0';
        -- Output from the tridata[] bus.
        result : out std_logic_vector(lpm_width-1 downto 0)
    );
end LPM_BUSTRI;

-- BEGINNING OF ARCHITECTURE
architecture LPM_SYN of LPM_BUSTRI is
begin

    -- basic error checking for invalid parameters
    MSG: process
    begin
        if (lpm_width <= 0) then
            ASSERT FALSE
            REPORT "Value of lpm_width parameter must be greater than 0!"
            SEVERITY ERROR;
        end if;
        wait;
    end process MSG;

    -- get the tri-state buffer output
    BUSTRI: process(data, tridata, enabletr, enabledt)
    begin
        if enabledt = '0' and enabletr = '1' then
            result <= tridata;
            tridata <= (OTHERS => 'Z');
        elsif enabledt = '1' and enabletr = '0' then
            result <= (OTHERS => 'Z');
            tridata <= data;
        elsif enabledt = '1' and enabletr = '1' then
            result <= data;
            tridata <= data;
        else
            result <= (OTHERS => 'Z');
            tridata <= (OTHERS => 'Z');
        end if;
    end process BUSTRI;

end LPM_SYN;

---START_ENTITY_HEADER---------------------------------------------------------
--
-- Entity Name     :  lpm_mux
--
-- Description     :  Parameterized multiplexer megafunctions.
--
-- Limitation      :  n/a
--
-- results Expected:  Selected input port.
--
---END_ENTITY_HEADER-----------------------------------------------------------

-- LIBRARY USED----------------------------------------------------------------
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;
use IEEE.std_logic_unsigned.all;
use work.LPM_COMPONENTS.all;

-- ENTITY DECLARATION
entity LPM_MUX is

-- GENERIC DECLARATION
    generic (
        lpm_width    : natural;  -- Width of the data[][] and result[] ports. (Required)
        lpm_size     : natural;  -- Number of input buses to the multiplexer. (Required)
        lpm_widths   : natural;  -- Width of the sel[] input port. (Required)
        lpm_pipeline : natural := 0; -- Specifies the number of Clock cycles of latency
                                     -- associated with the result[] output.
        lpm_type     : string := "LPM_MUX";
        lpm_hint     : string := "UNUSED"
    );

-- PORT DECLARATION 
    port (
        -- Data input. (Required)
        data  : in std_logic_2D(lpm_size-1 downto 0, lpm_width-1 downto 0);
        -- Selects one of the input buses. (Required)
        sel   : in std_logic_vector(lpm_widths-1 downto 0); 
        -- Clock for pipelined usage
        clock : in std_logic := '0';
        -- Asynchronous clear for pipelined usage.
        aclr  : in std_logic := '0';
        -- Clock enable for pipelined usage.
        clken : in std_logic := '1';
        -- Selected input port. (Required)
        result : out std_logic_vector(lpm_width-1 downto 0)
    );
end LPM_MUX;
-- END OF ENTITY

-- BEGINNING OF ARCHITECTURE
architecture LPM_SYN of LPM_MUX is

-- TYPE DECLARATION
type t_resulttmp IS ARRAY (0 to lpm_pipeline) of std_logic_vector(lpm_width-1 downto 0);

begin

-- PROCESS DECLARATION
    -- basic error checking for invalid parameters
    MSG: process
    begin
        if (lpm_width <= 0) then
            ASSERT FALSE
            REPORT "Value of lpm_width parameter must be greater than 0!"
            SEVERITY ERROR;
        end if;

        if (lpm_size <= 1) then
            ASSERT FALSE
            REPORT "Value of lpm_size parameter must be greater than 1!"
            SEVERITY ERROR;
        end if;
        
        if (lpm_widths <= 0) then
            ASSERT FALSE
            REPORT "Value of lpm_widths parameter must be greater than 0!"
            SEVERITY ERROR;
        end if;

        if (lpm_pipeline < 0) then
            ASSERT FALSE
            REPORT "Value of lpm_pipeline parameter must be greater than or equal to 0!"
            SEVERITY ERROR;
        end if;
        wait;
    end process MSG;

    process (aclr, clock, sel, data)
    variable resulttmp : t_resulttmp;
    variable sel_int : integer;
    begin
        if (lpm_pipeline >= 0) then
            sel_int := conv_integer(sel);

            for i in 0 to lpm_width-1 loop
                if (sel_int < lpm_size) then 
                    resulttmp(lpm_pipeline)(i) := data(sel_int,i);
                else
                    resulttmp(lpm_pipeline)(i) := 'X';
                end if;
            end loop;

            if (lpm_pipeline > 0) then
                if (aclr = '1') then
                    for i in 0 to lpm_pipeline loop
                        resulttmp(i) := (OTHERS => '0');
                    end loop;
                elsif (clock'event and (clock = '1') and (clken = '1'))  then
                    resulttmp(0 to lpm_pipeline - 1) := resulttmp(1 to lpm_pipeline);
                end if;
            end if;

            result <= resulttmp(0);
        end if;
    end process;

end LPM_SYN;
-- END OF ARCHITECTURE

---START_ENTITY_HEADER---------------------------------------------------------
--
-- Entity Name     :  lpm_decode
--
-- Description     :  Parameterized decoder megafunction.
--
-- Limitation      :  n/a
--
-- Results Expected:  Decoded output.
--
---END_ENTITY_HEADER-----------------------------------------------------------

-- LIBRARY USED----------------------------------------------------------------
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;
use work.LPM_COMPONENTS.all;

-- ENTITY DECLARATION
entity LPM_DECODE is
    generic (
        -- Width of the data[] port, or the input value to be decoded. (Required)
        lpm_width    : natural;
        -- Number of explicit decoder outputs. (Required)
        lpm_decodes  : natural;
        -- Number of Clock cycles of latency 
        lpm_pipeline : natural := 0;
        lpm_type     : string  := "LPM_DECODE";
        lpm_hint     : string  := "UNUSED"
    );
    
    port (
        -- Data input. Treated as an unsigned binary encoded number. (Required)
        data : in std_logic_vector(lpm_width-1 downto 0);
        -- Enable. All outputs low when not active.
        enable : in std_logic := '1';

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
不卡的av网站| 欧美日韩国产中文| 欧美日韩国产大片| 日本韩国一区二区| 欧美激情综合五月色丁香小说| 波多野结衣精品在线| 亚洲成人动漫av| 国产精品久久777777| 久久久美女毛片| 日韩欧美国产午夜精品| 欧美性受xxxx| 色婷婷一区二区三区四区| www.成人在线| 成人激情动漫在线观看| 美女视频免费一区| 亚洲成人免费电影| 日韩av中文在线观看| 午夜久久久久久久久久一区二区| 亚洲女爱视频在线| 亚洲免费观看在线视频| 一区二区在线观看免费| 一区二区三区四区在线播放 | 国产一区二三区| 欧美aaa在线| 亚洲国产成人高清精品| 国产精品资源在线观看| 日产国产高清一区二区三区| 亚洲国产精品久久久久婷婷884| 亚洲乱码一区二区三区在线观看| 国产精品嫩草99a| 久久久久久久久久久黄色| 精品免费国产二区三区| 欧美一区二区二区| 欧美一三区三区四区免费在线看| 在线日韩国产精品| 91片黄在线观看| 色婷婷久久综合| 欧美日韩一二三| 91精品国产入口在线| 欧美电影免费观看高清完整版在线 | 日韩精品一区二区三区视频在线观看| 日韩欧美中文字幕精品| 欧美精品久久久久久久多人混战| 91精品视频网| 精品国产伦理网| 国产精品日日摸夜夜摸av| 国产精品美女久久久久久久| 最新国产成人在线观看| 懂色av一区二区三区蜜臀| 99精品视频一区二区三区| 91传媒视频在线播放| 欧美色偷偷大香| 欧美成人午夜电影| 国产欧美精品一区二区三区四区| 国产精品毛片无遮挡高清| 一二三区精品视频| 免费欧美在线视频| 丁香六月综合激情| 91成人国产精品| 欧美久久久影院| 欧美xxxxxxxx| 国产精品久久午夜| 亚洲国产精品综合小说图片区| 国产曰批免费观看久久久| 成人91在线观看| 91精品国产欧美一区二区成人| 精品久久久久久久人人人人传媒 | 日韩av在线免费观看不卡| 国产精品资源站在线| 欧美亚洲一区三区| 日韩欧美国产一区在线观看| 国产精品动漫网站| 蜜臀av一区二区三区| 播五月开心婷婷综合| 69av一区二区三区| 中文成人综合网| 天天色天天爱天天射综合| 9i看片成人免费高清| 欧美精品九九99久久| 国产精品三级av在线播放| 三级一区在线视频先锋 | 亚洲成人av电影在线| 成人午夜激情片| 欧美日韩精品久久久| 中文在线一区二区| 蜜桃久久久久久久| 91小视频免费观看| 国产日产欧美一区二区三区| 日韩精品五月天| 日本福利一区二区| 欧美国产精品专区| 麻豆精品视频在线观看免费| 在线免费观看不卡av| 国产精品毛片久久久久久久| 久久不见久久见免费视频7| 在线免费观看日本欧美| 国产精品国产三级国产a| 久久成人av少妇免费| 欧美高清视频www夜色资源网| 1区2区3区国产精品| 精品一区二区免费| 欧美久久久久中文字幕| 亚洲中国最大av网站| 岛国一区二区在线观看| 久久精品视频网| 国产一区二区精品在线观看| 欧美一区二区三区免费视频| 亚洲午夜精品网| 在线观看视频一区二区| 亚洲欧美电影院| 97超碰欧美中文字幕| 国产精品网站在线播放| 国产一区高清在线| 精品少妇一区二区三区| 日韩有码一区二区三区| 欧美日韩高清不卡| 亚洲电影激情视频网站| 在线免费亚洲电影| 一区二区三区欧美日| 97se亚洲国产综合自在线不卡| 中文字幕+乱码+中文字幕一区| 国产传媒一区在线| 久久精品人人爽人人爽| 国产麻豆成人传媒免费观看| 久久久久久日产精品| 狠狠狠色丁香婷婷综合久久五月| 日韩欧美中文字幕公布| 精品一二线国产| 26uuu亚洲| 国产精品一二一区| 中文字幕免费一区| 97成人超碰视| 亚洲综合网站在线观看| 欧美日韩综合一区| 丝袜诱惑亚洲看片| 日韩欧美在线1卡| 激情深爱一区二区| 久久九九国产精品| 成人精品免费网站| 亚洲欧洲av色图| 欧美亚一区二区| 日日夜夜免费精品| 精品国产免费人成电影在线观看四季 | 久久在线观看免费| 国产ts人妖一区二区| 国产精品二三区| 欧美在线一二三四区| 日韩精品亚洲一区二区三区免费| 日韩欧美一区二区三区在线| 国产一区二区不卡| 亚洲图片欧美激情| 欧美日本精品一区二区三区| 玖玖九九国产精品| **性色生活片久久毛片| 欧美在线不卡一区| 蜜臀av一区二区| 国产精品午夜免费| 欧美日韩在线播放三区| 国产在线精品不卡| 国产精品乱人伦中文| 日本高清不卡视频| 美女尤物国产一区| 久久精品综合网| 91在线高清观看| 日韩精品五月天| 国产精品对白交换视频| 欧美老肥妇做.爰bbww| 精品一区二区影视| 亚洲欧美日韩系列| 日韩三级免费观看| 色综合天天综合色综合av| 男女性色大片免费观看一区二区| 国产三级精品视频| 欧美日本一区二区在线观看| 成熟亚洲日本毛茸茸凸凹| 丝袜美腿高跟呻吟高潮一区| 国产日韩av一区| 91精品免费观看| av在线播放成人| 午夜激情一区二区三区| 久久久久久97三级| 日本韩国一区二区| 日韩av在线播放中文字幕| 久久尤物电影视频在线观看| 国产成人日日夜夜| 久久www免费人成看片高清| 亚洲欧美在线观看| 欧美成人一区二区三区在线观看 | 亚洲三级小视频| 91精品国产综合久久蜜臀| 成人av在线观| 日韩精品1区2区3区| 国产精品天干天干在线综合| 色成年激情久久综合| 青草av.久久免费一区| 17c精品麻豆一区二区免费| 日韩欧美亚洲一区二区| 欧美在线观看18| 不卡一卡二卡三乱码免费网站| 久久福利资源站|