第一个问题:
定义一个输入:inter:in std_logic;如果我想在inter的上升沿进行动作,那么上升沿怎么写啊?
是这样么? if(inter'event and inter='1') then .....................
还是 if(rising_edge(inter)) then ........................
请指教!谢谢!
第二个问题
如果我在两个进程里都有同一个条件判断的话,那么是否会产生并行信号冲突的问题呢,如下,data 和ot是否会产生语法错误:error(10028):can't resolve multiple constant drivers for net data/ot ..........
addr:in std_logic;
cs:in std_logic;
data:in std_logic_vector(7 downto 0);
otut std_logic_vector(7 downto 0);
process(addr,cs)
begin
if(addr<='0' and cs<='0') then
if data<="00001111" then ot<="11110000"
else null;
end if;
else null;
end if;
end process;
process(addr,cs)
begin
if(addr<='1' and cs<='0') then
if data<="00001111" then ot<="00001111"
else null;
end if;
else null;
end if;
end process;
请多多指教,谢谢!