Error (10028): Can't resolve multiple constant drivers for net "out2" at shiyan.v(14)解决办法


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


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


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

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


 1 module test(c1,c2,out1,out2);
 2
 3 input c1,c2;
 4 output out1,out2;
 5
 6 reg out1,out2;
 7
 8 always @(posedge c1)
 9     begin
10         out1<=0;
11         out2<=0;
12     end
13
14 [email protected](posedge c2)
15     begin
16         out1<=0;
17         out2<=1;
18     end
19
20 endmodule                    

上面的代码在quartusII里面就会出现题目的错误提示,器原因就是在两个always语句里面都对out1,out2信号赋值了,而两个always是并行快,所以提示出现多重驱动的情况。。。

解决办法:

将两个always合并为一个

 1 module shiyan(c1,c2,out1,out2);
 2 input c1,c2;
 3 output out1,out2;
 4
 5 reg out1,out2;
 6
 7 always @(posedge c1 or posedge c2)
 8     if(c1==1)
 9         begin
10             out1<=0;
11             out2<=0;
12         end
13
14    else
15         begin
16             out1<=0;
17             out2<=1;
18         end
19 endmodule

摘自网络:

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

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

Error (10028): Can't resolve multiple constant drivers for net "out2" at shiyan.v(14)解决办法

时间: 2024-11-08 18:27:08

Error (10028): Can't resolve multiple constant drivers for net "out2" at shiyan.v(14)解决办法的相关文章

Error(10028):Can&#39;t resolve multiple constant drivers for net “ ” at **.v

两个进程里都有同一个条件判断的话,会产生并行信号冲突的问题. 同一个信号不允许在多个进程中赋值,否则则为多驱动. 进程的并行性决定了多进程不同能对同一个对象进行赋值. Error(10028):Can't resolve multiple constant drivers for net " " at **.v

Android 运行时报错Error running app: Instant Run requires &#39;Tools | Android | Enable ADB integration&#39; to be enabled. 的解决办法

解决方法:在菜单栏,Tools->Android->Enable ADB integration勾选就可以了. Android 运行时报错Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled. 的解决办法

Android studio出现Error:Unable to tunnel through proxy. Proxy returns &quot;HTTP/1.1 400 Bad Request&quot;的解决办法

最近更新了一下Android Studio(下文简写成AS),然后打开工程发现出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request",如图: 什么鬼.几番折腾,终于知道原因了.直接写解决方案吧. 1.打开设置 2.依次选择图中的第一步,第二步.并设置gradle的目录 3.设置好后应用,并点OK. 4.刷新Gradle 5.运行,错误解决 如果没有gradle,可以到:http:/

error: failed to connect to the hypervisor error: Failed to connect socket to &#39;/var/run/libvirt/libvirt-sock&#39;: No such file or directory 解决办法

服务器版本:CentOS Linux release 7.4 Linux lb 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 参考:https://www.cnblogs.com/yogurtwu/p/9988974.html 注:在翻了很多baidu和google相关文章后,逐步排查,根据手动执行libvirtd命令出现的报错信息才查到解决方法.一路坑. 对装有k

Android studio出现Error:Unable to tunnel through proxy. Proxy returns &quot;HTTP/1.1 400 Bad Reques的解决办法

最近更新了一下Android Studio,在导入新项目之后出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"的错误,如下图所示: 经过检查后发现这里是丢失了android studio的gradle目录,下面总结一下我的解决方案: 1.设置:settings->Build,Execution,Deploymnet->Gradle 2.选择好Gradle的目录后点击

VC++编译错误error C2065: “HANDLE”: 未声明的标识符及添加winbase.h后提示winbase.h(243): error C2146: 语法错误: 缺少“;”(在标识符“Internal”的前面)的解决办法

问题描述: VC++程序编译时提示错误:error C2065: "HANDLE": 未声明的标识符等众多错误提示,如下所示: error C2065: "HANDLE": 未声明的标识符 error C2146: 语法错误: 缺少";"(在标识符"hFind"的前面) error C2065: "hFind": 未声明的标识符 error C2065: "INVALID_HANDLE_VALUE

升级openssh编译时报错“configure: error: *** working libcrypto not found, check config.log”的解决办法

问题描述 在linux上,欲将OpenSSH_6.4p1编译升级到OpenSSH_8.0p1时,执行了./configure ....编译命令后报错,报错信息如下: configure: error: *** working libcrypto not found, check config.log *** 或: configure: error: *** OpenSSL headers missing - please install first or check config.log ***

Error: Can&#39;t place multiple pins assigned to pin location……解决办法

转载:http://blog.sina.com.cn/s/blog_6f0eeb3301014pi7.html 今天用DE0做VGA实验,在分配管脚后全编译出现下面这样的错误: Error: Can't place multiple pins assigned to pin location Pin_K22 (IOPAD_X41_Y19_N14) Info: Pin B[0] is assigned to pin location Pin_K22 (IOPAD_X41_Y19_N14) Info

PYCURL ERROR 6 - “Couldn&#39;t resolve host &#39;mirrorlist.centos.org&#39;”

在虚拟机上安装的CentOS,估计是网络配置问题,导致yum update和yum install之类的功能的用不了.出现标题上面的错误. ifdown [network_adapter] ifup [network_adapter] yum update 尝试以上命令就可以解决了. reference:http://stackoverflow.com/questions/20816133/pycurl-error-6-couldnt-resolve-host-mirrorlist-centos