signal clock:std_lgic;---------1HZ是时钟信号signal n :integer range 0 to 50000 process(clk)-------------clk 4MHZbeginif(n=500000) then clock<= not clock; n<=0;else n<=n+1;end if ;end process;
你可以试试采用计数的方法来试试