VHDL 问题 求帮助
process(clk4)isvariablei:integer;beginforiin3downto0loopcaseiiswhen3=>a<=count;when2=...
process(clk4)is
variable i:integer;
begin
for i in 3 downto 0 loop
case i is
when 3 =>a<=count;
when 2 =>a<=count1;
when 1 =>a<=count2;
when 0 =>a<=count3;
when others=>a<=0;
end case;
...
其中 count1,count2 count3 都是signal integer
这样写有问题吗?
a也是signal integer 展开
variable i:integer;
begin
for i in 3 downto 0 loop
case i is
when 3 =>a<=count;
when 2 =>a<=count1;
when 1 =>a<=count2;
when 0 =>a<=count3;
when others=>a<=0;
end case;
...
其中 count1,count2 count3 都是signal integer
这样写有问题吗?
a也是signal integer 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询