Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
VAMS-LRM-2-3-1.pdf
Скачиваний:
43
Добавлен:
05.06.2015
Размер:
3.73 Mб
Скачать

 

Accellera

Analog and Mixed-signal Extensions to Verilog HDL

Version 2.3.1, June 1, 2009

Table 2-1—Scaled Symbols and notation

Symbol

Value

 

 

M

1e6

 

 

K, k

1e3

 

 

m

1e-3

 

 

u

1e-6

 

 

n

1e-9

 

 

p

1e-12

 

 

f

1e-15

 

 

a

1e-18

 

 

No space is permitted between the number and the symbol. Scale factors are not allowed to be used in defining digital delays (e.g., #5u).

See 4.2.1.1 for a discussion of real to integer conversion and 4.2.1.2 for a discussion of integer to real conversion.

2.7 String literals

A string is a sequence of characters enclosed by double quotes (") and contained on a single line. Strings used as operands in expressions and assignments shall be treated as unsigned integer constants represented by a sequence of 8-bit ASCII values, with one 8-bit ASCII value representing one character. The string data type can be used to store strings (see 3.3). String parameters are treated differently and are described in 3.4.6.

Certain characters can only be used in strings when preceded by an introductory character called an escape character. Table 2-2 lists these characters in the right-hand column, with the escape sequence that represents the character in the left-hand column.

Table 2-2—Specifying special characters in string

Escape

Character produced by

string

escape string

 

 

\n

New line character

 

 

\t

Tab character

\\\ character

\"

" character

 

 

\ddd

A character specified in 1–3 octal digits

 

(0 d 7)

 

If less than three characters are used, the fol-

 

lowing character shall not be an octal digit.

 

Implementations may issue an error if the char-

 

acter represented is greater than \377.

15

Copyright © 2009 Accellera Organization, Inc. All rights reserved.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]