reg8.vhd
来自「用于视频运动图像编码的HUFFMAN编码」· VHDL 代码 · 共 35 行
VHD
35 行
library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; use ieee.std_logic_arith.all; entity REG_8 is port( CLK,RESET: in std_logic; D: in std_logic_vector(7 downto 0); Q: out std_logic_vector(7 downto 0));end REG_8;architecture BEHAVIORAL of REG_8 isbegin BEHAVIOR: process(CLK) begin if RESET='0' then Q<="00000000"; else if rising_edge(CLK) then Q<=D; else end if; end if; end process BEHAVIOR; end BEHAVIORAL;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?