File Header
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
library radhdl;
-- Direct entity instantiation below does not require importing the entity name.
Component Declaration
component rad_cdc_gray is
generic (
VENDOR : string := "generic";
DATA_WIDTH : positive := 4;
STAGES : positive := 2
);
port (
dest_clk : in std_logic;
src_gray_i : in std_logic_vector(DATA_WIDTH - 1 downto 0);
dest_gray_o : out std_logic_vector(DATA_WIDTH - 1 downto 0)
);
end component;
Direct Entity Instantiation
u_rad_cdc_gray : entity radhdl.rad_cdc_gray
generic map (
VENDOR => "generic",
DATA_WIDTH => 4,
STAGES => 2
)
port map (
dest_clk => <dest_clk_signal>,
src_gray_i => <src_gray_i_signal>,
dest_gray_o => <dest_gray_o_signal>
);