我给你用QuartusII编译了一下,没有问题,可以编译通过。
不知道你的工具用的是什么?
下面的这段话中,有些问题,reg10(9 downto 0)<=regin(9 downto 0);
最好再设置一个中间变量,将regin的数据锁存,不要reg10(8 downto 0)<=reg10(9 downto 1);
呵呵
process(load,carry)
begin
if load='1'then
reg10(9 downto 0)<=regin(9 downto 0);
else
if carry'event and carry='1' then
din<=reg10(0);
reg10(8 downto 0)<=reg10(9 downto 1);
end if;
end if;
end process;
运行时说我句法错误!用VHDL语言在CPLD上实现异步串行通信 |