Useful SystemVerilog System Tasks
Task Name Description
$sscanf(str,format,args);

$sscanf 将字符串按照某个模板格式进行扫描,其字符串格式和C语言中的printf()函数类似

$sformat(str,format,args);

$sformat是$sscanf的反函数。将字符串按照给定的格式填入相应的参数args中

$display(format,args);

$display就是Verilog的printf语句,在stdout上显示格式化的字符串

$sformatf(format,args);

$sformatf任务和$sformat相似,除了其返回字符串结果。字符串作为$sformatf的返回值,而不是像$sformt一样放在第一个参数上。

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2021-12-09
  • 2022-12-23
  • 2021-06-13
  • 2021-09-09
  • 2022-12-23
  • 2021-08-31
猜你喜欢
  • 2021-07-31
  • 2021-06-16
  • 2022-12-23
  • 2022-01-24
  • 2021-08-22
  • 2021-12-05
  • 2021-07-17
相关资源
相似解决方案