//Error(10028):Can't resolve multiple constant drivers for net “ ” at **.v


//两个进程里都有同一个条件判断的话,会产生并行信号冲突的问题。


//同一个信号不允许在多个进程中赋值,否则则为多驱动。

//进程的并行性决定了多进程不同能对同一个对象进行赋值。


 1 module test(c1,c2,out1,out2);

 input c1,c2;
output out1,out2; reg out1,out2; always @(posedge c1)
begin
out1<=;
out2<=;
end always@(posedge c2)
begin
out1<=;
out2<=;
end endmodule
 
上面的代码在quartusII里面就会出现题目的错误提示,器原因就是在两个always语句里面都对out1,out2信号赋值了,而两个always是并行快,所以提示出现多重驱动的情况。。。
 
 
解决办法:
 
将两个always合并为一个
 
 
 module shiyan(c1,c2,out1,out2);
input c1,c2;
output out1,out2; reg out1,out2; always @(posedge c1 or posedge c2)
if(c1==)
begin
out1<=;
out2<=;
end else
begin
out1<=;
out2<=;
end
endmodule

摘自网络:

http://blog.sina.com.cn/s/blog_5c5263cf0100qd2q.html

http://www.cnblogs.com/woshitianma/archive/2013/01/12/2858051.html

最新文章

  1. 解决使用Skia图形库时遇到的几个问题
  2. 我对uml类图关系的理解
  3. wordpress 首页调用文章 不同样式的方法
  4. STM8L --- External interrupt
  5. Android-----overridePendingTransition的使用
  6. Machine Learning 学习笔记 (4) —— 广义线性模型
  7. effective c++:virtual函数的替代方案
  8. hdu 3594 仙人掌图
  9. LabVIEW系列——生产现场故障邮件通知
  10. setState的同步更新
  11. c++第三天
  12. javaWEB总结(1):第一个servlet程序
  13. 设计模式的征途—14.职责链(Chain of Responsibility)模式
  14. SqlSessionFactoryUtil
  15. WEB 设计规范
  16. 2018-02-04 AppleScript类自然语言与非英语语法设计
  17. CentOS Linux release 7.3破解密码详解
  18. windows系统的便签
  19. openlayers中利用vector实现marker的方式
  20. OC 对象调用属性或实例变量或方法的细节。

热门文章

  1. Elsevier期刊网上投稿指南
  2. 十四、Struts2的国际化
  3. 将base64格式的字符串生成文件
  4. app打包流程
  5. 比特币钱包应用breadwallet源码
  6. hive[3] 数据类型和文件格式
  7. jquery 分页控件功能
  8. CSS3实现轮播图效果2
  9. memcache和memcahced的区别
  10. Elipse安装Spring Tool Suite