Verilog报错:NET counter[#] has multiple drivers:counter_reg[*]_0, and counter_reg_[**]

 

 报错原因:后两个信号都在给前面这个信号赋值。两个always块是并行执行,也就是上下两个always块都在给counter赋值,就会有错误。

修改方法:只能赋值给不同的counter

猜你喜欢

转载自blog.csdn.net/weixin_45041054/article/details/131417124
今日推荐