这里有一段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. 展开
意法半导体(中国)投资有限公司
2023-06-12 广告
2023-06-12 广告
单片机,即单片微控制器,也称为单片微型计算机,是将中央处理器(CPU)、存储器(ROM,RAM)、输入/输出接口和其他功能部件集成在一块 在一个小块的集成电路上,从而实现对整个电路或系统的数字式控制。单片机不是完成某一个逻辑功能的芯片,而是...
点击进入详情页
本回答由意法半导体(中国)投资有限公司提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询