No.105824 作者:vfdff 邮件:vfdff@tom.com ID:52561 登陆:10次 文章数:15篇 最后登陆IP:219.245.123.183 最后登陆:2007/9/7 11:53:25 注册:2006/5/5 11:38:09 财富:158 发帖时间:2007/5/13 19:09:45 发贴者IP:219.144.133.171 标题:vfdff:[讨论]quatrus 软件的奇怪波形 摘要:No.105824[讨论]quatrus 软件的奇怪波形 -- FPGA 设计及应用(第二版) page 102 -- 两进程结构体的结构 library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; use ieee.std_logic_arith.all; entity two_process is port( d : in std_logic; q : out std_logic; c1,c2 : out std_logic_vector(2 downto 0); cc1,cc2 : out std_logic_vector(2 downto 0); ccc1,ccc2 : out std_logic_vector(2 downto 0) ); end two_process; ------------------------------ architecture structural of two_process is signal a: std_logic := '0'; -- a,b 初始状态必须为 0,否则进不了两个进程 signal b: std_logic := '0'; signal count1,count2,count3 : std_logic_vector(2 downto 0) := "000"; begin p1:process(d,b) variable d1,d2 : integer range 0 to 7 := 0; begin if(b='1') then q <= d; -- qq <= TO_STD_LOGIC(q'transaction); -- Error ......
>>返回讨论的主题
|