Microsoft AGB-00001 Spécifications Page 95

  • 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 94
How to Manage VHDL Design Hierarchies
VHDL Reference Manual 6-5
Configurations can also be used to re-map the ports of a component
and its lower-level entity, making it possible to substitute lower-level
entities that do not directly correspond to the component instance
being described at the higher-level. In this context, you can think of
configurations as being analogous to a configurable socket connecting
an IC package (the component) to a possibly mismatched set of
through-holes on a printed circuit board (which in turn corresponds to
a component reference in the higher-level entity).
The VHDL synthesizer supports the use of configurations, and allows a
configuration to be specified as the top-level design unit for synthesis
purposes. For more complete information about configurations, refer to
a standard VHDL text.
Blocks
Designs can be partitioned using either block statements or
component statements. While component statements are used to
create a hierarchy of connected components, block statements are
used to provide partitioning within a single architecture. Using block
statements to partition an architecture is analogous to using multiple
drawing sheets to enter a schematic-based design.
Block statements can be used to partition concurrent statements, as
in the following example:
architecture partitioned of some_design is
begin
<~><~><~>a_block: block
<~><~><~>begin
<~><~><~><~><~><~><~>-- concurrent statements here
<~><~><~>end block;
<~><~><~>another: block
<~><~><~>begin
<~><~><~><~><~><~><~>-- concurrent statements here
<~><~><~>end block;
end partitioned;
Blocks such as this have no special meaning for synthesis, and are not
frequently used in designs intended for synthesis.
Using Packages
Package declarations can be used to declare common types and
subprograms. For example:
package example_package is
type shared_enum is (first, second, third, last);
end example_package;
In order for the contents of a package to be visible from inside an
entity or an architecture, you need to place a use clause before the
entity declaration, as in the following example:
use work.example_package.all;
entity design_io is
Vue de la page 94
1 2 ... 90 91 92 93 94 95 96 97 98 99 100 ... 143 144

Commentaires sur ces manuels

Pas de commentaire