各位大侠,兄弟我想编一个74373三态门逻辑锁存器的VHDL程序,可是Z状态总是通不过,MAXPLUS出现8条提示说是“TRI OR OPNDRN buffer':169' already OUTPUT pin,ti cannot also drive other types of primitives”请问这是为什么,难度只能用原理图方式输入?
library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_UNSIGNED.all;
ENTITY M_74373 is  ORT(DIN :IN STD_LOGIC_VECTOR(3 DOWNTO 0) ; DLE :IN STD_LOGIC ; DOE :IN STD_LOGIC ; DOUT :OUT STD_LOGIC_VECTOR(3 DOWNTO 0) ); END M_74373 ; ARCHITECTURE B OF M_74373 IS SIGNAL DDD: STD_LOGIC_VECTOR(3 DOWNTO 0); BEGIN  ROCESS (DLE,DOE) --VARIABLE TMP:STD_LOGIC_VECTOR(3 DOWNTO 0); BEGIN IF (DLE='1' AND DOE='0') THEN DDD<=DIN; ELSIF (DLE='1' AND DOE='1') THEN DDD<="ZZZZ"; ELSIF (DLE='0' AND DOE='1') THEN DDD<="ZZZZ"; END IF; END PROCESS ; DOUT<=DDD; END B;
|