This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / 问各位大侠个VHDL的问题,谢谢这样一段代码。
process (RST, TxOnInt1, CReg1, CLK)
begin
if (RST = '0' or CReg1(0) = '0') then
TxOnInt1 <= NO;
elsif (CLK = '1' and CLK'event) then
if (CReg1(1 downto 0) = b"01" and OnOff = '1') then
TxOnInt1 <= YES;
end if;
end if;
end process;
当时钟来的时候,如果OnOff信号=‘0’ 的时候会怎么样,编译软件会把TxOnInt1赋值成‘0’ 么,还是保持不变?
-haihai(享受阳光);
2009-5-21
{382}
(#5279772@0)
-
保持不变
-qwertyasd(东北人);
2009-5-21
(#5279812@0)