Referencing Efinix VHDL Libraries
The Efinity® software includes VHDL libraries for Trion
and Titanium primitives. You use the
library and
use VHDL language constructs to reference these libraries:
library efxphysicallib;
use efxphysicallib.efxcomponents.all;The following code shows how to reference the Efinix library:
Referring to the Efinix Library
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
library efxphysicallib;
use efxphysicallib.efxcomponents.all;
entity LUT4_VHDL is
port
(
din : in std_logic_vector(3 downto 0);
dout : out std_logic
);
end entity LUT4_VHDL;
architecture Behavioral of LUT4_VHDL is
begin
EFX_LUT4_inst : EFX_LUT4
generic map (
LUTMASK => x"8888"
)
port map (
I0 => din(0),
I1 => din(1),
I2 => din(2),
I3 => din(3),
O => dout
);
end architecture Behavioral;