?? 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 + -