1.遇到的问题,MODELSIM联合仿真链接不上,
用quartusII 生成激励文件,
LIBRARY ieee;
USE ieee.std_logic_1164.all;
ENTITY PA_CPLDcoder_vhd_tst IS
END PA_CPLDcoder_vhd_tst;
ARCHITECTURE PA_CPLDcoder_arch OF PA_CPLDcoder_vhd_tst IS
– constants
constant CLK_period : time := 20 ns; --setup clk time
– signals
SIGNAL ADC_CLK : STD_LOGIC;
SIGNAL OK_AD : STD_LOGIC;
SIGNAL RESET : STD_LOGIC;
SIGNAL START_AD : STD_LOGIC;
COMPONENT PA_CPLDcoder
PORT (
ADC_CLK : BUFFER STD_LOGIC;
ADC_CONV : BUFFER STD_LOGIC;
);
END COMPONENT;
BEGIN
i1 : PA_CPLDcoder
PORT MAP (
– list connections between master ports and signals
ADC_CLK => ADC_CLK,
START_AD => START_AD
);
init : PROCESS
– variable d