In the verilog file attached, when I simulate it, for some reason the eqz port always remains at dont care. It is supposed to be HIGH when count becomes 0. But for some reason nothing seems to trigger it. I can't figure out what the problem is. Can someone debug the code and tell me what could be the problem? Thankyou.
Prabhanshu wrote: > It is supposed to be HIGH when count becomes 0 And: did you see count becoming 0 at any time in your simulation?
I found the problem with eqz, i had made that port as output instead of input in controller. However the output of the multiplier is still wrong. Any help would be appreciated.
Thankyou for responding Lothar M. The problem has been solved. The only issue remaining is if we can show decimal equivalent of 2's complement number in $monitor command.
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.