我有一个std_logic_vector,我需要知道什么时候发生了一些变化。 到目前为止,我写了这个:VHDL - 如何检测std_logic_vector上的更改?
process (cp, l1)
begin
if rising_edge(cp) then
rL1 <= l1;
end if;
end process;
tickL1 <= rL1 xor l1;
RL1被延迟L1的版本,L1为我检查的变化std_logic_vector。问题是xor返回std_logic_vector,但我只需要0或1.我怎么能得到它?
这是不完全清楚。当**正在改变或** **改变时,你想知道**吗? – 2012-04-28 15:01:05
只要有什么改变,我不在乎什么改变。 – xx77aBs 2012-04-28 15:09:04