[数学]EDA整理.ppt

[数学]EDA整理.ppt

LOOP语句示例1 LIBRARY ieee; USE ieee.std_logic_1164.all; ENTITY p_check_8 IS PORT(d:IN std_logic_vector(7 downto 0); q:OUT std_logic); END p_check_8; ARCHITECTURE behave OF p_check_8 IS begin process(d) variable tmp: std_logic; begin tmp:=0; for i in 0 to 7 loop tmp:=tmp xor d(i); end loop; q=tmp; end process; END behave; 仿 真 结 果 多个进程语句 PROCESS1 PROCESSn signal signal ARCHI TECTURE 一个构造体 可以有多个 进程语句 进程和进程 之间是并行的 进程和进程之间的数据交换通过信号完成 Entity test1 is Port ( clk, d1, d2 : in bit; q1, q2 : out bit); end test1; architecture test1_body of tes

文档评论(0)

1亿VIP精品文档

相关文档