EmbDev.net

Forum: FPGA, VHDL & Verilog Booth Multiplier Verilog code not working


von Prabhanshu (Guest)


Attached files:

Rate this post
useful
not useful
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.

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
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?

von Prabhanshu (Guest)


Rate this post
useful
not useful
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.

von Prabhanshu (Guest)


Rate this post
useful
not useful
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
No account? Register here.