📄 mx_7821.vhd.bak
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity mx_7821 is
port (clk: in std_logic;
din: in std_logic_vector (7 downto 0);
dout: out std_logic_vector(7 downto 0);
rd: out std_logic) ;
end mx_7821;
architecture mx_7821 of mx_7821 is
signal count :integer range 0 to 15;
begin
process (clk)
begin
if clk'event and clk='1' then
count<=count+1;
end if;
if clk'event and clk='1' then
if(count=0 or count=1 or count=2 or count=3 or count=4 or count=5 or count=6 or count=7) then
rd<='1';
else
rd<='0';
end if;
end if;
if clk'event and clk='1' then
if count>=12 then
dout<=din;
end if ;
end if;
end process;
end mx_7821;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -