以下是实现等效时间采样所需时钟的代码:
SIGNAL SAMP_CONTS:STD_LOGIC_VECTOR (11
DOWNTO 0):=(OTHERS=》‘0’);
SIGNAL ADC_CLK_BANK:STD_LOGIC_VECTOR (11
DOWNTO 0):=(OTHERS=》‘0’);
SIGNAL CLK_CNT :INTEGER RANGE 0 TO 5000:=0;
SIGNAL CLK_TANK:STD_LOGIC:=‘0’;
SIGNAL EN :STD_LOGIC:=‘1’;
BEGIN
PROCESS(CLK,RESET)
BEGIN
IF RESET=‘1’ THEN EN‘0’);
SAMP_CONTS‘0’);
EN
3、 波形仿真