leijiaqi.vhd

来自「非整数分频器 分频系数为无限不循环小数 vhdl」· VHDL 代码 · 共 26 行

VHD
26
字号
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_signed.all;

entity leijiaqi is
port(clk:in std_logic;
       y:out std_logic);
end;

architecture main of leijiaqi is

signal count : std_logic_vector(29 downto 0):="000000000000000000000000000000";
constant step : integer := 127918701;
begin

p1: process(clk)
begin
if rising_edge(clk) then
	count<=count+step;
end if;
end process;
y<=count(29);

end;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?