-
-
Save martin31821/992037503fc57432ad986e8e5a48e01d 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