当前位置:网站首页>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 中用 <= 号
边栏推荐
- “又土又穷”的草根高校,凭什么被称为“东北小清华”?
- js . Find the first palindrome string in the array
- QT learning 17 dialog box and its types
- TS code automatically generates JS
- Qt学习19 Qt 中的标准对话框(上)
- Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)
- Reflection -- basic usage
- Redis:字符串类型数据的操作命令
- JS download files through URL links
- Exercise 9-1 time conversion
猜你喜欢
7-7 12-24 hour system
信创产业现状、分析与预测
[email"/>
Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
JVM family - overview, program counter day1-1
7-10 calculate salary
Redis:字符串类型数据的操作命令
Use vscode to view hex or UTF-8 codes
Programmable logic device software testing
Qt学习22 布局管理器(一)
Scroll detection, so that the content in the lower right corner is not displayed at the top of the page, but is displayed as the mouse slides
随机推荐
Qt学习17 对话框及其类型
C language standard IO function sorting
js . Find the first palindrome string in the array
jvm-类加载
QT learning 21 standard dialog box in QT (Part 2)
Redis:字符串類型數據的操作命令
7-9 find a small ball with a balance
Thrift threadmanager and three monitors
Failure of vector insertion element iterator in STL
7-11 calculation of residential water charges by sections
Folic acid modified metal organic framework (zif-8) baicalin loaded metal organic framework composite magnetic material (AU- [email
Uniapp tips - scrolling components
28:第三章:开发通行证服务:11:在配置文件中定义属性,然后在代码中去获取;
Using registered classes to realize specific type matching function template
全局事件总线
Metal organic framework material zif-8 containing curcumin( [email protected] Nanoparticles) | nano metal organic framework carry
RocksDB LRUCache
[combinatorics] permutation and combination (examples of combinatorial number of multiple sets | three counting models | selection problem | combinatorial problem of multiple sets | nonnegative intege
JVM class loading
战略、战术(和 OKR)