Error (10028): Can't resolve multiple constant drivers for net "out2" at shiyan.v(14)解决办法
2024-10-20 08:36:33
//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
最新文章
- 解决使用Skia图形库时遇到的几个问题
- 我对uml类图关系的理解
- wordpress 首页调用文章 不同样式的方法
- STM8L --- External interrupt
- Android-----overridePendingTransition的使用
- Machine Learning 学习笔记 (4) —— 广义线性模型
- effective c++:virtual函数的替代方案
- hdu 3594 仙人掌图
- LabVIEW系列——生产现场故障邮件通知
- setState的同步更新
- c++第三天
- javaWEB总结(1):第一个servlet程序
- 设计模式的征途—14.职责链(Chain of Responsibility)模式
- SqlSessionFactoryUtil
- WEB 设计规范
- 2018-02-04 AppleScript类自然语言与非英语语法设计
- CentOS Linux release 7.3破解密码详解
- windows系统的便签
- openlayers中利用vector实现marker的方式
- OC 对象调用属性或实例变量或方法的细节。