音影先锋亚洲天堂网|电影世界尽头的爱完整版播放|国产 熟女 91|高清无码免费观看欧美日韩|韩国一区二区三区黄色录像|美女亚洲加勒比在线|亚洲综合网 开心五月|7x成人在线入口|成人网站免费日韩毛片区|国产黄片?一级?二级?三级

登錄 免費(fèi)注冊 首頁 | 行業(yè)黑名單 | 幫助
維庫電子市場網(wǎng)
技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng)
驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe

請教給雙向端口賦值就要產(chǎn)生下面的警告嗎?該如何解決?

作者:bluefancy 欄目:EDA技術(shù)
請教給雙向端口賦值就要產(chǎn)生下面的警告嗎?該如何解決?
library        ieee;
use            ieee.std_logic_1164.all;
use            ieee.std_logic_arith.all;
use            ieee.std_logic_unsigned.all;
--**************************************************
entity    ADcontrol    is
    PORT(
             Din:                inout    std_logic_vector(11    downto 0);
            CLKIN:                in        std_logic;
            BUSY:                in        std_logic;
            nCS,nWR,nRD:        out        std_logic;
            nCONVST:            out        std_logic
        );
end    ADcontrol;
--**************************************************
architecture  a     of  ADcontrol    is

    type        state_type is (S0,S1,S2,S3);
    signal        State:            state_type;
--    variable    ControlReg:        std_logic_vector(11 downto 0);
    signal        DataSave:        std_logic_vector(11 downto 0);

begin
PROCESS(CLKIN,State,BUSY)
    begin
    if CLKIN'event and CLKIN='1' then
        Case State is
            when S0 =>                     --Initialization
                nCS<='0';
                nRD<='1';
                nWR<='0';
                nCONVST<='1';
                
                Din<="000100000000";
                
                State<=S1;
                
            when S1=>                        --Channel Selection
                nCS<='0';
                nRD<='1';
                nWR<='0';
                nCONVST<='1';
                
                Din<="000100000000";
                
                State<=S2;
                
            when S2=>                       --Start Conversion
                nCS<='1';
                nRD<='1';
                nWR<='1';
                nCONVST<='0';
                
                if BUSY='0' then            
                    State<=S3;             --End of Conversion
                end if;
                
            when S3=>                       --Read Data
                nCS<='0';
                nRD<='0';
                nWR<='1';
                nCONVST<='1';
                
                DataSave<=Din;
                
                State<=S1;
            
            when others=>
&nb
2樓: >>參與討論
n3207
好好看看以前的帖子,關(guān)于INOUT的
你現(xiàn)在還不知道什么叫INOUT

參與討論
昵稱:
討論內(nèi)容:
 
 
相關(guān)帖子
各位大蝦,請問怎樣在Quarus2中實(shí)現(xiàn)LVDS輸入(先謝過了。
哪里可以下載到POWERPCB5.01?
GENERIC
請教各位大蝦,在設(shè)計UART中遇到的問題。
altera stratix 的管腳配置問題
免費(fèi)注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點(diǎn)此進(jìn)入


Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號