Change Table 3-2, page 13

 

 

Operator

Semantics

Str1 == Str2

 

Equality. Checks if the two strings are equal. Result is 1 if they are equal and 0 if they are not. Both strings can be of type string. Or one of them can be a string literal. If both operands are string literals, the expression is the same Verilog equality operator for integer types. The special value " " is allowed.

 

Str1 != Str2

 

Str1 != Str2 Inequality. Logical Negation of ==

 

Str1 < Str2

Str1 <= Str2

Str1 > Str2

Str1 >= Str2

 

Comparison. Relational operators return 1 if the corresponding condition is true using the lexicographical ordering of the two strings Str1 and Str2. The comparison uses the compare string method behaves like the ANSI C strcmp function (or the compare string method) (with regard to the lexical ordering) and embedded null bytes are included. Both operands can be of type string, or one of them can be a string literal.

 

 

 

 

 

Change Section 3.76, page 14

3.7.6 compare()

function int compare(string s)

str.compare(s) compares str and s, as in the ANSI C strcmp function (with regard to lexical ordering and return value), and embedded null bytes are included.

 

See the relational string operators in Section 3.7, Table 3-2.

 

 

Change Section 3.7.7, page 14 

 

3.7.7 icompare()

function int icompare(string s)

str.icompare(s) compares str and s, like the ANSI C strcmp function (with regard to lexical ordering and return value), but the comparison is case insensitive and embedded null bytes are included.