architecture中如果没有process的时候是不是整个代码就是按顺序语句运行了?如
architecture rtl of process_test is
begin
c<='0';
end architecture rtl;
假如说结构体中有process的时候,整个代码就是按并行做了?如
architecture rtl of process_test is
begin
process (sel)
begin
if (sel = '1' ) then
c <= '1';
end if;
end process;
end architecture rtl;
所以下面的代码是不允许的
architecture rtl of process_test is
signal flag : integer := 0;
begin
c<='0';
process (sel)
begin
if (sel = '1' ) then
c <= '1';
end if;
end process;
end architecture rtl;