你应该只在一个定时的过程中做这样的陈述.如果你想让它合成,建议进行额外的初始化(重置).可能看起来如下:
process(clk, reset)
begin
if reset='1' then
a <= 0;
elsif rising_edge(clk) then
a <= a + 1;
end if;
end process;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
961 次 |
| 最近记录: |