当前位置:网站首页>SystemVerilog verification - Test Platform preparation guide learning notes (2): process statements and subroutines
SystemVerilog verification - Test Platform preparation guide learning notes (2): process statements and subroutines
2022-04-22 23:51:00 【lu-ming. xyz】
List of articles
1 SystemVerilog from C/C++ Introduced operators and statements ?
- Can be in for Loop defines the loop variable .
- Auto increment symbol "++“, Auto decrement symbol ”–".
- continue and break, Used to skip this cycle and End cycle .
2 SystemVerilog For functions 、 New content in task form ?
In summary SystemVerilog Grid is more like C 了 , Introduced stack , So there are similar C The parameter of .
- SystemVerilog Function allows calling tasks , But only in fork…join_none Statement generated Threads Call in .
- SystemVerilog have access to void Convert the results , To ignore the return value of the function . void '($fscanf(file, “%d”, i));
- SystemVerilog Of a subroutine begin…end Become optional .task/endtask function/endfunction Enough as a boundary .
- SystemVerilog increase return sentence .
3 SystemVerilog New content on subroutine parameters ?
- On the parameter declaration ,Verilog Some parameters are required to be declared twice , A direction statement , A type declaration
output [31:0] x; reg [31:0] x;.SystemVerilog Introduced a C Lattice of , But note that you must use a common input type logicoutput logic [31:0] x. - SystemVerilog The default parameter type and direction are "logic Input ".
- SystemVerilog The transfer method of parameters can be specified as reference ref Instead of copying
const ref bit [31:0] a[], Save stack space . Be careful ref Can only be used with automatic automatic Stored subroutines . - SystemVerilog You can specify a default value for the bit parameter
input logic low = 0. - SystemVerilog Tasks or functions can be similar to port The syntax specifies
.a(5).
4 SystemVerilog New precision and time units ?
- timeunit and timeprecision The declaration statement can indicate the time value for each module
timeunit 1ns; timeprecision 1ps;.
版权声明
本文为[lu-ming. xyz]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204222247255818.html
边栏推荐
- [Objective-C advanced programming] - GCD
- Vscode uses emmylua plug-in to debug unity project tolua code
- 网狐U3D客户端游戏配置加载失败Couldn‘t connect to server解决
- A native crash analysis of confusion
- Vs write assembly
- Share two recent classic OJ questions (arrange subsequences + find the longest continuous number string in the string)
- 【超能力】我想暂停时空
- PCIe 参考时钟架构 (Refclk Architecture)
- (mm-2018) local convolutional neural network for pedestrian re recognition
- [leetcode] binary tree, in-depth understanding of the first, middle and last order
猜你喜欢
![[dvcon2020] automatic generation method of UVM sequence based on ral](/img/34/efcc6f7c6bbd07634c5c23c5e74572.png)
[dvcon2020] automatic generation method of UVM sequence based on ral

No module named 'Django is reported when Django specifies the database_ test. settings‘

“亿”点点技术情怀
![[PCIe 6.0] new features of PCIe 6.0 - detailed explanation of dmwr (deferred memory write)](/img/4e/980e1eacee42a431823d0576f2e200.png)
[PCIe 6.0] new features of PCIe 6.0 - detailed explanation of dmwr (deferred memory write)

Vscode uses emmylua plug-in to debug unity project tolua code

VsCode使用EmmyLua插件调试Unity工程ToLua代码

Online fox U3D client game configuration loading failed couldn't connect to server

【Turtle表白合集】“海底月是天上月,眼前人是心上人。”余生多喜乐,长平安~(附3款源码)
![[turtle confession collection]](/img/81/b4bacc23691e58e403f1330d0ca7cf.jpg)
[turtle confession collection] "the moon at the bottom of the sea is the moon in the sky, and the person in front of us is the sweetheart." More joy and peace for the rest of your life ~ (with 3 sourc

《新程序员003》正式上市,华为、阿里等 30+ 公司的云原生及数字化实战经验
随机推荐
【DVCon2020】基于RAL的UVM Sequence自动生成方法
FileNotFoundError: [Errno 2] No such file or directory: 'image/1. Jpg 'problem solving
Hello, I want to open an account for crude oil futures. How can I open an account for futures safely and reliably?
Conjugate gradients (3)
[PCIe 6.0] new features of PCIe 6.0 - detailed explanation of l0p
VsCode使用EmmyLua插件调试Unity工程ToLua代码
Merge two ordered arrays
FileNotFoundError: [Errno 2] No such file or directory: 'image/1.jpg'问题解决
云计算仿真框架CloudSim介绍(截图版)
Conjugate gradients (4)
[leetcode] binary tree, maximum depth of 104 binary tree, diameter of 543 binary tree, maximum path and sum of 124 binary tree
【毅力挑战】PCIe 每日一问一答(目录篇)
网狐U3D客户端游戏配置加载失败Couldn‘t connect to server解决
FPGA (V) one of RTL codes (cross clock domain design)
Typora style tuning
"New programmer 003" was officially launched, and the cloud native and digital combat experience of 30 + companies such as Huawei and Alibaba
A native crash analysis of confusion
[day22] - [linked list] intersecting linked list
Wechat applet page Jump
LabVIEW控制电脑关机、休眠、注销和重启