复件 hsad.txt
来自「基于FPGA数据采集系统」· 文本 代码 · 共 42 行
TXT
42 行
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
--高速AD采集
entity hsad is
port(
clk:in std_logic;--系统时钟
DACclk:out std_logic;--DAC时钟
ADCclk:out std_logic;--ADC时钟
adin:in std_logic_vector(7 downto 0);--ADC数据
daout:in std_logic_vector(7 downto 0)--DAC数据
);
end entity hsad;
architecture adc of hsad is
component pll50
port(
inclk0:in std_logic := '0';
c0:out std_logic);
end component;
signal dat:std_logic_vector(7 downto 0);
signal pllclk:std_logic;
begin
--signal ad_dat:std_logic(7 downto 0);
DACclk<=pllclk;
ADCclk<=pllclk;
process(clk)
begin
if clk'event and clk='1' then
dat <= adin;
--daout <= dat;
end if;
end process;
pll50 port map(inclk0 => clk,c0 => pllclk);
end adc ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?