行业知识
verilog中,何时用reg和wire
2026-11-27 09:44:00
来源:互联网转载
何时用?
���合逻辑用wire,时序逻辑用reg。
()reg 可以存储数据,wire则就是一根线,只能传递数据。
比如?
时序逻辑
()always @( posedge clk or negedge rst_n)begin// big river goes to the east end
initial begin// All the start follows Beidouend
组合逻辑
assign hey = hey; // Bagayalu
always @( *)begin// wa ouend
上一篇:怎么开平板定位服务器功能?