程序如下:
process (clk)
begin
if rising_edge (clk) then
S_1<=S_1 +1;
O_1<=S_1;
else
null;
end if;
end process;
其中,S_1是signal(std_logic_vector (3 downto 0)),O_1 是输出,连接到IO引脚上。
问题来了:
当我把输出的赋值(O_1<=S_1)放在进程外面的时候,仿真结果变了,O_1的值变化要比之前的程序快上一个周期,但是当我查看technology schmatic的时候,发现这两个程序所形成的technology schmatic并没有区别,这是为什么?
另外,对于“Process内语句是顺序执行”这句话我一直不太理解,
例如:
process(clk)
begin
if rising_edge (clk) then
A<=B;
C<=D;
E<=F;
else
null;
end if;
end process;
这个程序中,综合出来的结果,从硬件上来看应该是并行的,但为什么说是“顺序执行”?难道说“顺序执行”的意思是综合的时候从第一句开始顺序综合?