Forum Discussion
Anonymous
5 years agoNot applicable
How to rectify This error?
I am designing 4-bit comparator using 2-bit comparator and made a circuit .
After running RTL stimulation Error occurs.
I don't know why this error occurs as most of the output is correct but few...
sstrell
Super Contributor
5 years agoYou have a typo in your equals logic for the 2-bit comparator. The first term is using ~A1 when it should be ~B1.
- Anonymous5 years agoNot applicableCan you please rephrase and explain what you said?
- sstrell5 years ago
Super Contributor
Not sure how to rephrase it any clearer. Your Equal logic assignment should be:
assign Equal = (~A1)&(~A0)&(~B1)&(~B0)....etc.