|
版主您好!非常感谢您的回复!
- J7 A$ f5 d3 F% \( d您说的这段我也看到过,但是看不太明白。数据线D :inout std_logic_vector(7 downto 0),类型为inout数据输出的程序:: [/ h: S& c0 Q% ^- ?
process(NCS2 ,NCS1,A19,A18,A3,A2,A1,WR,D)( [- Q+ [& X( |7 L C
begin
8 I& S5 l( X- h. z! u" B# J5 B$ M if(not NCS2 and NCS1 and not A19 and A18 and not A3 and not A2 and not A1 and not WR) = '1' then
1 h c p, J1 b. ~% p a(0)<=not D(0);
3 o" z7 S2 D6 j! T9 h7 Q a(1)<=not D(1);
$ i* F! f) M. |" {# U2 v- B a(2)<=not D(2);2 \6 N# |% n2 h9 r2 q3 H0 E* x
end if;& N/ X0 M. T: i' ]' U2 N9 S5 X
ledg<= a(0);
7 W1 L! I' M4 W, N- t4 j. V ledy<= a(1);* D$ t* K; A* y1 _. j7 T9 B
ledr<= a(2);
* y, \7 i3 K, q. V9 L* J end process;- Z8 \6 t M+ e1 e. N/ T( N
数据读入的程序:6 P" E9 O1 }+ S( S6 q
D(7)<= not oct when(not NCS2 and NCS1 and not A19 and A18 and not A3 and not A2 and not A1 and not RD) = '1' else 'Z';
7 L9 O+ U7 m% [3 O! m5 y9 Q1 O D(5)<=keyval(0) when (not NCS2 and NCS1 and not A19 and A18 and not A3 and A2 and A1 and not RD)='1' else 'Z';
/ L8 N& i2 D% u1 r0 o: U* P# k. S' [3 @: d D(4)<=keyval(1) when (not NCS2 and NCS1 and not A19 and A18 and not A3 and A2 and A1 and not RD)='1' else 'Z';% [) Y7 T2 @' N/ l3 {6 p
D(3)<=keyval(2) when (not NCS2 and NCS1 and not A19 and A18 and not A3 and A2 and A1 and not RD)='1' else 'Z';
* A+ Q' H4 q3 o D(2)<=keyval(3) when (not NCS2 and NCS1 and not A19 and A18 and not A3 and A2 and A1 and not RD)='1' else 'Z';
1 ~/ ^. P% j' n D(1)<=keyval(4) when (not NCS2 and NCS1 and not A19 and A18 and not A3 and A2 and A1 and not RD)='1' else 'Z';
0 e! K" Z; W5 BD(0)<=keyval(5) when (not NCS2 and NCS1 and not A19 and A18 and not A3 and A2 and A1 and not RD)='1' else 'Z';
* P" d9 L$ J4 N4 i6 A3 U2 s" [ d就是这里出的问题,我把数据读入的程序注释掉,这个警告就没了!请问这是什么原因呢? |
|