Skip to content

Instantly share code, notes, and snippets.

@martin31821
Forked from anonymous/reg.vhd
Created May 24, 2017 13:29
Show Gist options
  • Save martin31821/992037503fc57432ad986e8e5a48e01d to your computer and use it in GitHub Desktop.
Save martin31821/992037503fc57432ad986e8e5a48e01d 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