Article ID: 000084808 Content Type: Product Information & Documentation Last Reviewed: 02/13/2006

How do I instantiate 74-series macrofunctions in VHDL? (MAX PLUS® II)

Environment

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description Component declarations for the 74-series macrofunctions are provided in the <max plus II directory>\vhdlxx\altera directory, where xx is either "87" or "93".

Since VHDL does not allow function names or port names beginning with a number, they are preceded by a_ in the component declaration. Refer to the following example of the nand function (7400):

LIBRARY ieee;
USE ieee.std_logic_1164.all;
LIBRARY altera;
USE altera.maxplus2.ALL;

ENTITY my_nand IS

PORT
(
my_in0 : IN STD_LOGIC;
my_in1 : IN STD_LOGIC;
my_out : OUT STD_LOGIC
);

END my_nand;

ARCHITECTURE behavior OF my_nand IS

BEGIN

u1: a_7400 
PORT MAP ( a_2 => my_in0, 
   a_3 => my_in1,
   a_1 => my_out);
END behavior;

Related Products

This article applies to 1 products

Intel® Programmable Devices

1