当前位置:网站首页>SystemVerilog中$write与$display区别
SystemVerilog中$write与$display区别
2022-07-25 05:20:00 【向芯】
$display()函数
$display 是普通的显示函数(是的,我觉得它更像一个函数,而不像是一个任务。类似于C/C++、matlab和python等对应的控制台打印函数),它在任何它被调用的地方被即时执行。换句话说,程序执行过程中碰到它的时候就立即执行。
$write()函数
$write与$display几乎相同,差异仅在于后者缺省第带换行符,而前者不带。所以当你需要将多次调用的语句打印的内容显示在同一行,那就是应该用$write的地方。
如果不带任何参数调用$display()的话,就相当于一个单纯的换行,而不带任何参数调用$write()的话则什么都不会发生。
边栏推荐
- STL notes (VIII): container - List
- unity 3D物体添加 点击事件
- 微服务 - Hystrix 熔断器
- Li Kou 731. My schedule II
- 自己实现is_convertible
- 基环树入门
- Use getifaddrs to obtain the IP address of the local network interface
- Solve the problem that uni app applet obtains routes and route parameters
- LCP插件创建对等物理接口
- 深圳随到随考,科目四随到随考,科三理论第二理论随到随考说明
猜你喜欢

基环树入门

Build keyword driven automated testing framework

Implement is by yourself_ class

Performance Optimization: how to solve the slow loading speed of the first screen of spa single page application?
[email protected] R & D effectiveness measurement indicators"/>Learning records [email protected] R & D effectiveness measurement indicators

自己实现is_convertible

Now the operator wants to check the answer details of all user questions from Zhejiang University. Please take out the corresponding data

FinClip实现微信授权登录的三种方案
![2022-07-24: what is the output of the following go language code? A:[]int{}; B:[]int(nil); C:panic; D: Compilation error. package main import ( “fmt“ ) f](/img/bf/e38a8fd813f88a83f61a1abfa3b95d.png)
2022-07-24: what is the output of the following go language code? A:[]int{}; B:[]int(nil); C:panic; D: Compilation error. package main import ( “fmt“ ) f

Win11 how to view the file explorer tab
随机推荐
批量下载视频小技巧
JS common code questions array de duplication - Custom New throttling and anti shake - deep copy - instanceof URL parameter extraction - thousand separator - array to tree structure - array flattening
The third question of force deduction -- the longest substring without repeated characters
Go language function
Introduction to base ring tree
Implement is by yourself_ convertible
Summary and Prospect of aut, the transport layer protocol of sound network -- dev for dev column
Add click event to unity 3D object
Nexttick principle analysis
STM32 Development Notes 118: using CMSIS DSP Library in stm32cube IDE
Forwarding and sharing function of wechat applet
Learning records [email protected] R & D effectiveness measurement indicators
项目管理工具——阿里云Projex介绍与实战
Zhanrui's first 5g baseband chip was officially released and successfully ranked among the first tier of 5g!
微信小程序相关操作示例
STL notes (VI): container vector
微服务 - 网关Gateway组件
[cloud co creation] design Huawei cloud storage architecture with the youngest cloud service hcie (Part 1)
Delivery practice of private PAAS platform based on cloud native
深圳随到随考,科目四随到随考,科三理论第二理论随到随考说明