Skip to content

Instantly share code, notes, and snippets.

Created May 24, 2017 13:21
Show Gist options
  • Save anonymous/71bfc756b5ed160a05a317c1a1769e69 to your computer and use it in GitHub Desktop.
Save anonymous/71bfc756b5ed160a05a317c1a1769e69 to your computer and use it in GitHub Desktop.
library IEEE;
use IEEE.std_logic_1164.all;
entity reg is
port (
clk : in std_logic;
i_port : in std_logic_vector(7 downto 0);
o_port : out std_logic_vector(7 downto 0)
end entity reg;
architecture arch of reg is
begin
process(clk) is
begin
if rising_edge(clk) then
o_port <= i_port;
end if;
end process;
end architecture arch;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment