当前位置:网站首页>Verilog procedure assignment statement
Verilog procedure assignment statement
2022-07-27 01:18:00 【lzl_ 0408】
initial、always
- A module can contain multiple initial and always sentence , but 2 Statements cannot be nested .
- These statements are executed in parallel between modules , It has nothing to do with the sequence before and after the module .
- however initial Sentence or always The inner part of the statement can be understood as sequential execution ( Except for non blocking assignment ).
- Every initial Sentence or always Statements will produce an independent control flow , The execution time is from 0 The moment begins .
initial sentence
- initial Statements from 0 Start at every moment , Only once , Multiple initial Blocks are independent of each other .
- If initial The block contains multiple statements , Keyword required begin and end Form a block statement .
- If initial There is only one statement in the block , keyword begin and end It can be used or not .
always sentence
And initial On the contrary ,always Statements are repeated .always Statement block from 0 Start executing the behavior statement at any time ; When the last statement is executed , The first statement in the statement block is executed again , This cycle is repeated .
Due to the characteristics of loop execution ,always Statements are mostly used to simulate clock generation , Detection of signal behavior, etc .
Blocking assignment and non blocking assignment
Block assignment
Block assignment belongs to Sequential execution , That is, before the execution of the next statement , The current statement must be executed .
Blocking assignment statements use the equal sign = As an assignor .
In the previous simulation ,initial The assignment statements inside are blocking assignment .
Nonblocking assignment
Non blocking assignment belongs to Execute statements in parallel , That is, the execution of the next statement and the execution of the current statement are carried out at the same time , It does not block the execution of subsequent statements in the same statement block .
Non blocking assignment statements use the less than or equal sign <= As an assignor .
边栏推荐
- 报错信息 WARNING: IPv4 forwarding is disabled. Networking will not work.
- Jenkins--基础--02--安装
- Naive Bayes Multiclass训练模型
- 快来帮你三分钟了解物联网
- 腾讯云MLVB技术如何在移动直播服务中突出重围之基础概念
- Applet live broadcast, online live broadcast, live broadcast reward: Tencent cloud mobile live broadcast component mlvb multi scene live broadcast expansion
- SQL关系代数——除法
- [CTF attack and defense world] questions about backup in the web area
- Flink1.11 write MySQL test cases in jdcb mode
- 小程序直播、连线直播、直播打赏:腾讯云移动直播组件MLVB多场景直播拓展
猜你喜欢

李宏毅机器学习(2021版)_P7-9:训练技巧

5. Xshell connection server denied access, password error

Scala pattern matching

Small programs related to a large number of digital collections off the shelves of wechat: is NFT products the future or a trap?

ks 怎么抓salt值?api,did?

Simple explanation of database table connection

下一代互联网:视联网

Keil开发环境的搭建送安装包

SQL learning (3) -- complex query and function operation of tables

Play guest cloud with zerotier nanny level teaching to ensure learning waste
随机推荐
玩客云刷机 5.9
Naive Bayes Multiclass训练模型
In depth learning report (3)
Compile Darknet under vscode2015 to generate darknet Ext error msb3721: XXX has exited with a return code of 1.
Cannot find a valid baseurl for repo: HDP-3.1-repo-1
How does KS catch salt value? api,did?
Which securities company has a low stock commission and which stock is safe to open an account
VSCode2015下编译darknet生成darknet.ext时error MSB3721:XXX已退出,返回代码为 1。
SQL学习(2)——表的基础查询与排序
下一代互联网:视联网
Uni-app开发App和插件以后如何开通广告盈利:uni-AD
4. Root user login
The shortest way to realize video applets: from bringing goods to brand marketing
Tencent upgrades the live broadcast function of video Number applet. Tencent's foundation for continuous promotion of live broadcast is this technology called visual cube (mlvb)
Iptables detailed explanation and practical cases
Flink1.11 write MySQL test cases in jdcb mode
How to open ads for profit after uni app develops apps and plug-ins: uni ad
Spark ---- shuffle and partition of RDD
Best getting started guide for flask learning
Play guest cloud with zerotier nanny level teaching to ensure learning waste