我是个新手,想请教各位达人一个关于process进程内外的串行并行的问题。
在两个不同的process进程中的程序是并行的,那么在同一个process进程内部几条程序是并行还是串行?
例如:
P1:process(clk,reset)
begin
if reset = '0' then
s1 <= '0' ;
elsif (clk'event and clk='1') then
s1 <= PIn ; --PIn为输入信号
end if ;
end process P1;
P2:process(clk,reset,s1)
begin
if reset = '0' then
s2 <= '0' ;
elsif (clk'event and clk='1') then
s2 <= s1 ;
end if ;
end process P2;
和
process(clk,reset,s1)
begin
if reset = '0' then
s1 <= '0' ;
s2 <= '0' ;
elsif (clk'event and clk='1') then
s1 <= PIn ;
s2 <= s1;
end if ;
end process ;
在s2获得s1的时间上是不是存在差异? |