📄 f1_zb.vhd
字号:
--------0度相位载波--------
library ieee;
use ieee.std_logic_arith.all;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity f1_zb is
port (clk :in std_logic;
dout :out std_logic_vector(7 downto 0));
end f1_zb;
architecture behav of f1_zb is
component rom16_1
port(address : in std_logic_vector(3 downto 0);
inclock : in std_logic;
q : out std_logic_vector(7 downto 0));
end component;
signal count : std_logic_vector(3 downto 0);
begin
process(clk)
begin
if clk'event and clk='1' then
count<=count+1; --产生地址
end if ;
end process;
u1 : rom16_1 port map(address=>count,inclock=>clk,q=>dout);--调用ROM表
end architecture behav;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -