Hi , can you tell me why im getting UUUUUUUU for first value of product...and it seems like all the values of product are shifted right..... is it something to do with the clock? ive attached the testbench coding and simulation. THanks! :D
Guest
#2166214
Maybe theres a kind of problem in your COMPONENT mult8X8... :-/ Attach this file for a closer look. (pls with extension *.vhd, and you will see some syntax highlighting magic) BTW: do you know, that VHDL has a multiplcation operator, the '*'?
the previous two attached files are the same..
Guest
#2166514
There are no previously attached files... :-/ At least I didn't find any. However: This is your "problem"
1 | |
2 | |
3 | |
You assign the final value after 17 clocks. So until then the result is -U-ndefined. A solution for you is to assign a default value to Product like this:
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
BTW: do you know, that VHDL has a multiplication operator, the '*'? So you could smply write: Product <= Mplier * Mcand;
It worked. THanks!
Reply
Please log in before posting.