如何在verilog中抵消$write函数中的回车
How to offset carriage in $write function in verilog
我想在同一行使用 verilog vcs 中的内置 $write() 函数打印两次,其中第二次写入从指定的字符位置开始来自第 0 列。这有可能吗?伪代码类似于:
$write("Hello world"); // Assuming printed from a new line
$write("Test",10); // Starts printing on the same line at 10th position from the beginning
输出控制台如下所示:
Hello worlTest
您需要知道输出要到达的终端的正确 ASCII 转义序列。并非所有终端 windows 都支持相同的代码或此功能。例如,请参阅 vt-100 的 Move Cursor commands。
除此之外,您可以在打印字符串之前对其进行操作。
我想在同一行使用 verilog vcs 中的内置 $write() 函数打印两次,其中第二次写入从指定的字符位置开始来自第 0 列。这有可能吗?伪代码类似于:
$write("Hello world"); // Assuming printed from a new line
$write("Test",10); // Starts printing on the same line at 10th position from the beginning
输出控制台如下所示:
Hello worlTest
您需要知道输出要到达的终端的正确 ASCII 转义序列。并非所有终端 windows 都支持相同的代码或此功能。例如,请参阅 vt-100 的 Move Cursor commands。
除此之外,您可以在打印字符串之前对其进行操作。