|
版主您好!非常感谢您的回复!
/ n: O' h$ y2 R) G# J您说的这段我也看到过,但是看不太明白。数据线D :inout std_logic_vector(7 downto 0),类型为inout数据输出的程序:4 M3 z0 u) T* P' Y& n
process(NCS2 ,NCS1,A19,A18,A3,A2,A1,WR,D)
! m: G# v3 J9 s$ V) U' C; N4 @1 d5 ~* H begin! m, {) x, g! B2 o0 O
if(not NCS2 and NCS1 and not A19 and A18 and not A3 and not A2 and not A1 and not WR) = '1' then 3 r$ `: Y N; y+ D7 H+ Z
a(0)<=not D(0);
9 q7 i- B M1 y& C f6 ^8 S, R: r$ j a(1)<=not D(1);
& E5 }0 I7 H h/ M! D! ~$ A2 ^/ {& C a(2)<=not D(2);# V. C& ~" Q) o6 }
end if;$ B2 z$ A, @4 V4 {5 V% p" V
ledg<= a(0);
4 D* Q7 Y7 C, w K7 s* j# \ ledy<= a(1);
; ?3 F' N8 T$ Z3 a$ r ledr<= a(2);/ n& Z) p$ M# o: i- i: |* k
end process;5 Y8 {% L& y1 D* u
数据读入的程序:
9 l+ E- q6 ?/ N4 S0 t/ R2 R' U 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';
3 v/ q" X/ e/ T7 F$ L 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';
) E& `% O& ~. w- y 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';2 ?, Q: Y8 f4 F/ V
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';
$ l4 P, z( f) ~ x- x 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';
& ^3 F I4 w( C1 q! `, G( _ 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';
- X- P, ^% r$ x& V9 rD(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';. W( i' M& z& d7 M, L$ @1 X) u- w
就是这里出的问题,我把数据读入的程序注释掉,这个警告就没了!请问这是什么原因呢? |
|