2fenpin.vhd
来自「用VHDL实现的DDS」· VHDL 代码 · 共 23 行
VHD
23 行
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity fen2pin is port
(
clk :in std_logic;
sel :out std_logic;
nsel: out std_logic
);
end fen2pin;
architecture behave of fen2pin is
signal half :std_logic;
begin
process(clk)
begin
if(clk'event and clk='1')then
half<= not half;
end if;
end process;
sel<=half;
nsel<=not half;
end behave;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?