来自专栏 · Systemverilog 1 人赞同了该文章 作用:格式化字符串,将数据格式化为字符串,并返回一个string类型字符; 创建一个格式化字符串,但不写入到输出log,而是将结果分配给一个变量,然后自行决定如何使用这个字符串; 例子:string_tmp = $psprintf(“%s %d”,hello 8); 结果 string_tmp=“hello8”发布...
Has $psprintf become a defacto standard command in all of the simulators? Is it treated exactly the same as $sformatf? Regards - Cliff Cummings Verilog & SystemVerilog Guru Sunburst Design Cliff, The reality is that once a simulator vendor implements a feature, it’s almost impossible to ge...