Microsoft AGB-00001 Spécifications Page 72

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 144
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 71
How to Control the Implementation of VHDL
4-14 VHDL Reference Manual
Pinnum Attribute
You can specify pin and node numbers in the VHDL source file using
the custom attribute pinnum. special attribute is recognized by the
VHDL synthesizer and is written to the output for use by device fitting
software. This attribute has no other meaning to the VHDL synthesizer,
or to any other VHDL software (such as a simulator). The information
is simply passed on to the device fitting software.
To use the pinnum attribute:
1. Declare the pinnum attribute in the top-level entity as follows:
attribute pinnum : string;
2. Specify the value of pinnum attributes as strings, as in the
following example:
entity my_design is
port(a, b : in integer range 0 to 7;
c: bit_vector (3 to 5);
d: bit_vector (27 downto 25);
e: out Boolean);
attribute pinnum: string;
attribute pinnum of c: signal is "1,2,3";
attribute pinnum of d: signal is "6,5,4";
attribute pinnum of e: signal is "2";
end my_design;
To specify pin numbers for an array of signals:
You must consider the direction of the array. In the following example,
the pin numbers being assigned to each element of the arrays A and B
correspond to the index numbers for each array element:
entity toplevel is
port (Clock, reset: in std_logic;
A out std_logic_vector(1 to 3);
B out std_logic_vector(6 downto 4);
attribute pinnum: string;
attribute pinnum of Clock: signal is "1";
attribute pinnum of reset: signal is "19";
attribute pinnum of A: signal is "1,2,3";
attribute pinnum of B: signal is "6,5,4";
end toplevel;
If the pinnum attribute is applied to signals that are ports of the top-
level entity in the design (as in the above example), the values
specified in the attribute will be passed to the fitting software as pin
numbers. If the pinnum attribute is applied to signals that are internal
to an architecture, or are ports of a lower-level entity in the design,
the values will be ignored.
Note: Pin numbers that are entered using the pinnum attribute may
be overridden by device fitting software, if the software is unable to
map the design as specified. Most device fitting software includes
Project Navigator properties that can be used to control how pin
number mapping is performed. Refer to the device kit documentation
for more information.
Vue de la page 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 143 144

Commentaires sur ces manuels

Pas de commentaire