字符串(string) Verilog中,字符串大多用于显示信息的命令中。(只用在测试中。) 字符串要在一行中用双引号括起来,也就是不能跨行。 字符串中可以使用一些转义(escape)符,如\t \n 可以使用一些格式符(如%b)在仿真时产生格式化输出: ”This is a normal string” ”This string has a \t tab and ends with a new line\n” ”This string formats a value:val = %b” 格式符 |
|关于本站|小黑屋|Archiver|手机版|无线电爱好网
( 粤ICP备14010847号 )
GMT+8, 2014-5-23 12:47 , Processed in 0.119177 second(s), 27 queries .
Powered by Discuz! X3.1 Licensed
© 2001-2013 Comsenz Inc.