delay.vhd

来自「停车场显示是日常生活中使用很平常的系统」· VHDL 代码 · 共 23 行

VHD
23
字号
-- 延迟,起时钟同步作用。因为HELLO模块有时钟同步,所以送出的列值比送到
--端口上的列选择信号玩一个时钟周期。此模块延时使HELLO模块与tingche模块同步。
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity delay is
	port(
		clk: in std_logic;
		a  : in std_logic_vector(2 downto 0);
		q  : out std_logic_vector(2 downto 0)
		);
end delay;

architecture delay of delay is
	begin
		process(clk)
		begin
			if clk'event and clk='1' then
				q<=a;
			end if;
		end process;
end delay;

⌨️ 快捷键说明

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