Error (10028): Can ' t resolve multiple constant drivers for net "Out2" at SHIYAN.V (14) solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.