Encore SIM EDITOR SOFTWARE Betriebsanweisung Seite 89

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 149
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 88
2-21
Modeling Your Design
The following code examples illustrate this rule:
Example 1
VCS infers that the following always block is combinatorial, not
sequential:
always @ (a or b)
y = a or b
Here the sensitivity list event control is level sensitive and VCS
assigns a value to y whether a or b are true or false.
Example 2
VCS also infers that the following always block is combinatorial, not
sequential:
always @ (sel or a or b)
if (sel)
y=a;
else
y=b;
Here the sensitivity list event control is also level sensitive and VCS
assigns a value to y whether a, b, or sel are true or false. Note that
the if-else conditional statement uses signal sel completely, VCS
executes an assignment statement whether sel is true or false.
Example 3
VCS infers that the following always block is sequential:
always @ (sel or a or b)
if (sel)
y=a;
Here there is no simulation event when signal sel is false (0).
Seitenansicht 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 148 149

Kommentare zu diesen Handbüchern

Keine Kommentare