📄 baud.vhd.bak
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity baud is
Port(
clk : in std_logic;
resetb : in std_logic;
bclk : out std_logic
);
end baud;
architecture behave of baud is
begin
process(clk,resetb)
variable cnt:integer;
begin
if resetb = '1' then
cnt := 0;
bclk <= '0'; --复位
elsif rising_edge(clk) then
if cnt >= 208 then
cnt := 0;
bclk <= '1'; --设置分频系数
else
cnt := cnt+1;
bclk <= '0';
end if;
end if;
end process;
end behave;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -