Created
May 24, 2017 13:21
-
-
Save anonymous/71bfc756b5ed160a05a317c1a1769e69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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