Encore SIM EDITOR SOFTWARE Guide de l'utilisateur Page 124

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 149
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 123
3-16
Compiling and Elaborating Your Design
Filtering Out False Negatives
By default, if a signal in a conditional expression transitions to an X
or Z value and then to 0 or 1 in the same simulation time step, VCS
displays the warning.
Example 1
In this example, VCS displays the warning message when reg r1
transitions from 0 to X to 1 during simulation time 1.
Example 4 False Negative Example
module test;
reg r1;
initial
begin
r1=1'b0;
#1 r1=1'bx;
#0 r1=1'b1;
end
always @ (r1)
begin
if (r1)
$display("\n r1 true at %0t\n",$time);
else
$display("\n r1 false at %0t\n",$time);
end
endmodule
Example 2
In this example, VCS displays the warning message when reg r1
transitions from 1 to X during simulation time 1.
Vue de la page 123
1 2 ... 119 120 121 122 123 124 125 126 127 128 129 ... 148 149

Commentaires sur ces manuels

Pas de commentaire