|
EDA365欢迎您!
您需要 登录 才可以下载或查看,没有帐号?注册
x
LIBRARY IEEE;( O8 m* H, j! B' q
USE IEEE.STD_LOGIC_1164.ALL;
" y7 H: Q/ r2 pENTITY tri_s IS
& F/ x3 L3 V0 @- D8 t9 P8 R PORT( enable : IN STD_LOGIC;
' v A4 |" M( e+ L" k" o datain : IN STD_LOGIC_VECTOR(7 DOWNTO 0);
# [+ g2 ~1 F, B& f F dataout: OUT STD_LOGIC_VECTOR(7 DOWNTO 0) );
/ Y5 \6 N* n0 y/ e* d1 YEND tri_s;* \$ |' w$ h8 O1 z9 L
ARCHITECTURE bhv OF tri_s IS
* h9 Z3 c( A6 d7 l7 V" o& J& y9 lBEGIN+ U/ S, N* k- w* `2 H
PROCESS(enable,datain)& k+ Z1 M/ g7 G- P% M& i
BEGIN
) @ C* D) }" o: ?$ R6 ^ IF enable ='1' THEN dataout <= datain;
8 z6 V8 H6 ~& U+ R6 ?% [; p else dataout <= "ZZZZZZZ"; END IF;
, u4 ?; u" E, [3 ~) kEND PROCESS;% e# a" f+ F+ v% y8 D( I) J$ T' [
END bhv;
( u5 s1 r& r! A5 Q Z* ^ X& U% W0 c6 A) _
编译提示:% o) D/ p/ v5 ~7 ^+ Y- }% x& v
Error: Top-level design entity "div" is undefined
; O+ R+ K, ?4 f; L% |- @9 d" @* k. w; F4 f( \
是什么原因,求救!!!!!! |
|