当前位置:网站首页>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 .
边栏推荐
- 无重复字符的最长子串
- Pytorch tensor data basic operation
- 快来帮您一分钟了解移动互联网
- Spark ---- shuffle and partition of RDD
- More than live streaming: what other eye-catching functions does Tencent cloud live mlvb plug-in have besides streaming / streaming
- 数据库期中(一)
- 下一代互联网:视联网
- How to open ads for profit after uni app develops apps and plug-ins: uni ad
- Jenkins--基础--04--安装中文插件
- Redisson working principle - source code analysis
猜你喜欢

李宏毅机器学习(2017版)_P3-4:回归

游戏项目导出AAB包上传谷歌提示超过150M的解决方案

The setup of KEIL development environment is delivered to the installation package

数据库期中(一)

5.xshell连接服务器拒绝访问,密码错误

Doris or starrocks JMeter pressure measurement

随着5G越来越普及,我们的生活会受到哪些积极的影响

MySQL index optimization: scenarios where the index fails and is not suitable for indexing

Flink1.11 SQL local run demo & local webui visual solution

Jenkins--基础--03--安装后设置向导
随机推荐
李宏毅机器学习(2017版)_P1-2:机器学习介绍
Scala pattern matching
2. 错误的里程表
腾讯升级视频号小程序直播功能,腾讯持续推广直播的底气是这项叫视立方(MLVB)的技术
玩客云搭配zerotier保姆级教学,保证学废
Calls to onsaveinstancestate and onrestoreinstancestate methods
In depth learning report (2)
ks 怎么抓salt值?api,did?
Small programs related to a large number of digital collections off the shelves of wechat: is NFT products the future or a trap?
MySQL index optimization: scenarios where the index fails and is not suitable for indexing
Applet live broadcast, online live broadcast, live broadcast reward: Tencent cloud mobile live broadcast component mlvb multi scene live broadcast expansion
Li Hongyi machine learning (2017 Edition)_ P5: error
Iptables detailed explanation and practical cases
The basic concept of how Tencent cloud mlvb technology can highlight the siege in mobile live broadcasting services
10 - deploy MySQL on CentOS 7
李宏毅机器学习(2017版)_P3-4:回归
数据库期中(一)
李宏毅机器学习(2021版)_P7-9:训练技巧
Play guest cloud brush machine 5.9
More than live streaming: what other eye-catching functions does Tencent cloud live mlvb plug-in have besides streaming / streaming