Encore SIM EDITOR SOFTWARE Guía de usuario Pagina 122

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 149
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 121
3-14
Compiling and Elaborating Your Design
Note:
The -parameters and -pvalue options do not work with a
localparam or a specparam.
Checking for X and Z Values in Conditional Expressions
The -xzcheck compile-time option tells VCS to display a warning
message when it evaluates a conditional expression and finds it to
have an X or Z value.
A conditional expression is of the following types or statements:
A conditional or if statement:
if(conditional_exp)
$display("conditional_exp is true");
•A case statement:
case(conditional_exp)
1’b1: sig2=1;
1’b0: sig3=1;
1’bx: sig4=1;
1’bz: sig5=1;
endcase
A statement using the conditional operator:
reg1 = conditional_exp ? 1’b1 : 1’b0;
The following is an example of the warning message that VCS
displays when it evaluates the conditional expression and finds it to
have an X or Z value:
warning signal_namewithin scope hier_name in file_name.v:
line_number to x/z at time simulation_time
Vista de pagina 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 148 149

Comentarios a estos manuales

Sin comentarios