当前位置:网站首页>fpga阻塞赋值和非阻塞赋值
fpga阻塞赋值和非阻塞赋值
2022-07-03 13:38:00 【eachanm】
阻塞赋值: 用了= 号
非阻塞赋值: 用了<= 号
假设初始化为a = 1, b = 2
阻塞赋值:
// 初始化a = 1, b = 2
[email protected](posedge clk)
begin
b = a;
c = b;
end
//运行后c = b = 1
非阻塞赋值:
// 初始化a = 1, b = 2
[email protected](posedge clk)
begin
b <= a;
c <= b;
end
//运行后b = 1, c = 2
建议:
在 assign 中用 = 号
在 always 中用 <= 号
边栏推荐
- Solution to failure or slow downloading of electron when electron uses electron builder to package
- Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)
- [combinatorics] permutation and combination (examples of combinatorial number of multiple sets | three counting models | selection problem | combinatorial problem of multiple sets | nonnegative intege
- Leetcode(4)——寻找两个正序数组的中位数
- Use vscode to view hex or UTF-8 codes
- JS general form submission 1-onsubmit
- Solve MySQL 1045 access denied for user 'root' @ 'localhost' (using password: yes)
- 叶酸修饰的金属-有机骨架(ZIF-8)载黄芩苷|金属有机骨架复合磁性材料([email protected])|制备路线
- simpleParallax. JS (create poor visual effects for website pictures)
- MySQL data processing value addition, deletion and modification
猜你喜欢
Using registered classes to realize specific type matching function template
GoLand 2021.2 configure go (go1.17.6)
GoLand 2021.1: rename the go project
Exercise 10-2 recursive factorial sum
Redis:字符串類型數據的操作命令
How to use lxml to judge whether the website announcement is updated
Global event bus
Redis: operation command of string type data
解决MySql 1045 Access denied for user ‘root‘@‘localhost‘ (using password: YES)
JS first summary
随机推荐
jvm-对象生命周期
全局事件总线
金属有机骨架材料ZIF-8包载姜黄素([email protected]纳米颗粒)|纳米金属有机框架搭载雷帕霉素|科研试剂
Exercise 7-6 count capital consonants
Qt学习19 Qt 中的标准对话框(上)
jvm-类加载
Fabric. JS document
Example analysis of QT learning 18 login dialog box
Uniapp skills - scrolling components -1
FPGA测试方法以Mentor工具为例
Nucleic acid modified metal organic framework drug carrier | pcn-223 metal organic framework encapsulated ad adamantane | zif-8 encapsulated adriamycin (DOX)
allegro,orcad, net alias,port,off-page connector之间的异同点和如何选取
JS first summary
How to bold text in AI
GoLand 2021.2 configure go (go1.17.6)
Reflection -- basic usage
QT learning 21 standard dialog box in QT (Part 2)
Go 1.16.4: purpose of go mod tidy
JS shift operators (< <,> > and > > >)
7-9 find a small ball with a balance