当前位置:网站首页>SystemVerilog syntax
SystemVerilog syntax
2022-07-25 09:55:00 【Work makes me happy】
Preface
Sort out the basic grammar used in the work .
1、 data type
Two state data type , That is, only 0 1 Two states , No, x z, It is beneficial to improve the performance of the simulator , Reduce memory usage .
Writing testbench in ,bit Variables of type can be used for assignment operations or wiring , That is, it is also used for things similar to reg、wire The function of .
Basic data type
time 64 An integer , The default unit is seconds
real come from Verilog, as C Of double type ,64 position
shortreal come from C Of float type ,32 position
string Variable length character array
void Empty return , For functions
Integer data type
--- The default is signed number
shortint 16 An integer ,2 state (1,0) The default value is 0
int 32 An integer ,2 state (1,0) The default value is 0
longint 64 An integer ,2 state (1,0) The default value is 0
byte 8 An integer (ASCII character ) ,2 state (1,0) The default value is 0
integer 32 An integer ,4 state (0、1、X、Z) The default value is x
--- The default is unsigned number
bit 0 or 1 ,2 state (1,0) The default value is 0
reg come from Verilog ,4 state (0、1、X、Z) The default value is x
logic And reg similar ,4 state (0、1、X、Z) The default value is x2、task
task And function There are two big differences
(1)task You can add time-consuming statements , and function Don't waste time ( This is related to verilog identical ).
(2)task You can call task and function, and function Can only call function.
One more thing to remind novices :
task and function Can't be used in initial and always Of


3、 Time delay
#100;Reference resources
| 1、 author | post |
| gsithxy | [SV]SystemVerilog Grammatical summary |
| SystemVerilog—— data type | |
| SystemVerilog—Timescale analysis |
Reference resources
边栏推荐
- Expect+sh realize automatic interaction
- Visualization of sensor data based on raspberry pie 4B
- ISP图像信号处理
- SOC芯片内部结构
- Wechat applet realizes the rotation map (automatic switching & manual switching)
- 从鱼眼到环视到多任务王炸——盘点Valeo视觉深度估计经典文章(从FisheyeDistanceNet到OmniDet)(上)
- VCS常用命令
- CCF 201509-2 日期计算
- Binary Cross Entropy真的适合多标签分类吗?
- CUDA 解释 - 深度学习为何使用 GPU
猜你喜欢

First acquaintance with opencv4.x --- ROI interception

无向连通图邻接矩阵的创建输出广度深度遍历

Swift simple implementation of to-do list

关于MLOps中的数据工程,你一定要知道的.......

CUDA explanation - why GPU is used in deep learning

ARMv8通用定时器简介

Swift creates weather app

CCF 201503-4 网络延时

First knowledge of opencv4.x --- image histogram drawing

Linked list -- basic operation
随机推荐
Some usages of Matlab's find() function (quickly find qualified values)
File -- first acquaintance
Customize dialog to realize the pop-up box of privacy clause statement imitating Netease cloud music
Swift creates weather app
Hyperautomation for the enhancement of automation in industries 论文翻译
卷积神经网络发展历程(部分)
Linked list -- basic operation
MLX90640 红外热成像传感器测温模块开发笔记(三)
CDA Level1复盘总结
Connection and data reading of hand-held vibrating wire vh501tc collector sensor
单目深度估计自监督模型Featdepth解读(上)——论文理解和核心源码分析
AMD EPYC 9664旗舰规格曝光:96核192线程 480MB缓存 3.8GHz频率
T5论文总结
关于MLOps中的数据工程,你一定要知道的.......
手持振弦采集仪对振弦传感器激励方法和激励电压
深度估计自监督模型monodepth2论文总结和源码分析【理论部分】
1094--谷歌的招聘
First knowledge of opencv4.x --- image convolution
Store to-do items locally (improve on to-do items)
深入理解pytorch分布式并行处理工具DDP——从工程实战中的bug说起