📄 bchanle.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity bchanle is
port(bchclk,clr_b:in std_logic;
badress:out std_logic_vector(8 downto 0));
end bchanle;
architecture behav of bchanle is
signal acc:std_logic_vector(8 downto 0);
begin
process(bchclk)
begin
if(bchclk'event and bchclk='1')then
if(clr_b='1'or acc>=359)then acc<=(others=>'0');
else acc<=acc+1;
end if;
end if;
end process;
process(bchclk)
begin
if(bchclk'event and bchclk='1')then
badress<=acc;
end if;
end process;
end behav;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -