VHDL 类似这种语句led(3 downto 0) <= led(2 downto 0)&led(3);什么意思
beginprocess(RST_i_n,CLK_i)beginifRST_i_n='0'thencount<=0;elsifCLK_i'eventandCLK_i='1...
begin
process(RST_i_n,CLK_i)
begin
if RST_i_n='0' then
count <= 0;
elsif CLK_i'event and CLK_i='1' then
if count=25000000 then
count <= 0;
else
count <= count + 1;
end if ;
end if;
end process;
process(RST_i_n,CLK_i)
begin
if RST_i_n='0' then
led <= "0001";
elsif CLK_i'event and CLK_i='1' then
if count=25000000 then
led(3 downto 0) <= led(2 downto 0)&led(3);
end if;
end if;
end process; 展开
process(RST_i_n,CLK_i)
begin
if RST_i_n='0' then
count <= 0;
elsif CLK_i'event and CLK_i='1' then
if count=25000000 then
count <= 0;
else
count <= count + 1;
end if ;
end if;
end process;
process(RST_i_n,CLK_i)
begin
if RST_i_n='0' then
led <= "0001";
elsif CLK_i'event and CLK_i='1' then
if count=25000000 then
led(3 downto 0) <= led(2 downto 0)&led(3);
end if;
end if;
end process; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询