这里有一段VHDL语言,有一个错误,怎么改正 5
if(clk'eventandclk='1')thenif(count="0111")thencount<="0000";elsecount<=count+1;endif...
if(clk'event and clk='1')then
if(count="0111")then
count<="0000";
else
count<=count+1;
end if;
end if;
case count is
when"0000"=> daout<=d1;
when"0001"=> daout<=d2;
when"0010"=> daout<=d3;
when"0011"=> daout<=d4;
when"0100"=> daout<=d5;
when"0101"=> daout<=d6;
when"0110"=> daout<=d7;
when"0111"=> daout<=d8;
when others=>null;
end case;
Error (10309): VHDL Interface Declaration error in queue.vhd(192): interface object "d1" of mode out cannot be read. Change object mode to buffer. 展开
if(count="0111")then
count<="0000";
else
count<=count+1;
end if;
end if;
case count is
when"0000"=> daout<=d1;
when"0001"=> daout<=d2;
when"0010"=> daout<=d3;
when"0011"=> daout<=d4;
when"0100"=> daout<=d5;
when"0101"=> daout<=d6;
when"0110"=> daout<=d7;
when"0111"=> daout<=d8;
when others=>null;
end case;
Error (10309): VHDL Interface Declaration error in queue.vhd(192): interface object "d1" of mode out cannot be read. Change object mode to buffer. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询