Microsoft AGB-00001 Spécifications Page 15

  • 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 14
Language Structure
VHDL Reference Manual 2-7
Concurrent statements include the following:
Signal assignments (selected and conditional)
Component instantiations
Generate statements
Process statements
Procedure and function calls
The following syntax shows an example of an architecture declaration
with concurrent statements. Note that this code fragment also
demonstrates how to include comments in VHDL source code. The
double-hyphen character sequence (--) always begins a comment, and
the comment continues until the end of the line.
architecture dataflow of my_circuit is
signal d,e bit;
begin
-- concurrent statements tied together with signals
d <= in3 and in4; -- logic for d
e <= in5 or in6; -- logic for e
out1 <= in1 xor d; -- output logic
out2 <= in2 xor e; -- output logic
end dataflow;
Sequential Statements
Sequential statements differ from concurrent VHDL statements in that
they are executed in the order they are written. Sequential statements
always appear within a process statement (which, in its entirety, is a
concurrent statement) or within a function or procedure.
Sequential statements are similar to statements used in software
programming languages such as C or Pascal. The term sequential in
VHDL refers to the fact that the statements execute in order, rather
than to the type of logic generated. That is, you can use sequential
statements to describe either combinational or sequential (registered)
logic. With sequential statements, values may be carried using either
signals or variables.
Sequential statements include the following types of statements:
Variable declarations
Signal assignments
Variable assignments
Procedure and function calls
If, case, loop, next, exit, return statements
Wait statements
Following is an example of an architecture declaration that includes
sequential statements in a process statement:
Vue de la page 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 143 144

Commentaires sur ces manuels

Pas de commentaire