Error (10028): Can ' t resolve multiple constant drivers for net "" at **.V
All two processes have the same condition, and the problem of parallel signal conflict arises.
The same signal is not allowed to be assigned to multiple processes, otherwise it is a multi-driver.
The parallelism of a process determines how different processes can assign values to the same object.
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 beginTenout1<=0; Oneout2<=0; A End - - [email protected] (Posedge C2) the begin -out1<=0; -out2<=1; - End + -Endmodule
The above code in the quartusii inside will appear the problem of the error, the reason is that in two always statement inside all the OUT1,OUT2 signal assignment, and the two is the same as fast, so the hint of multi-driver situation. Workaround: Merge two always into one
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 beginTenout1<=0; Oneout2<=0; A End - - Else the begin -out1<=0; -out2<=1; - End +Endmodule
Excerpt from the network:
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) solution