当前位置:网站首页>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
边栏推荐
猜你喜欢

Segmentation based deep learning approach for surface defect detection

单目深度估计自监督模型Featdepth解读(上)——论文理解和核心源码分析

Server CUDA toolkit multi version switching

SD/SDIO/EMMC

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

Android & kotlin: puzzle solution

How to import a large amount of data in MATLAB

CDA Level1知识点总结之多维数据透视分析

Mlx90640 infrared thermal imager temperature measurement module development instructions

First knowledge of opencv4.x ---- mean filtering
随机推荐
CDA Level1知识点总结之业务数据分析
Matlab drawing | some common settings of axis
~3 CCF 2022-03-2 travel plan
Get to know opencv4.x for the first time --- add salt and pepper noise to the image
Coredata storage to do list
工程监测多通道振弦传感器无线采集仪外接数字传感器过程
CCF 201503-3 节日
How to import a large amount of data in MATLAB
Creation of adjacency table of undirected connected graph output breadth depth traversal
OC -- Inheritance and polymorphic and pointer
First acquaintance with opencv4.x --- ROI interception
手持振弦VH501TC采集仪传感器的连接与数据读取
Temperature, humidity and light intensity acquisition based on smart cloud platform
【机器翻译】SCONES——用多标签任务做机器翻译
expect+sh实现自动交互
Yolov5 realizes target detection of small data sets -- kolektor defect data set
从鱼眼到环视到多任务王炸——盘点Valeo视觉深度估计经典文章(从FisheyeDistanceNet到OmniDet)(上)
CDA Level1知识点总结之业务分析报告与数据可视化报表
[Android studio] batch data import to Android local database
[data mining] nearest neighbor and Bayesian classifier