Hi all. I am trying to make a vhdl program about a 4bit X 3 bit multiplier. I have made almost all of it but i get some strange results when i simulate it.
Guest
#2418025
aha
Guest
#2418040
secret code?
nightowl wrote: > secret code? Sercet simulation results? > a 4bit X 3 bit multiplier. Something like this?
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
No the code is not secret :) It is attached to this reply. Thank you for the reply
> No the code is not secret :) And the testbench? What results do you get? > architecture behaviour2 of multiplier4X3 is ... Your description ist AVSOLUTY NOT a behavioural description. Ist a completly STRUCTURAL description. So why is the name of your architectur "behaviour2"? BTW: Why does everybody around the world write a half adder and a full adder and a multiplier (and even a AND gate...) on their own? Why not just using the VHDL operators + AND *?
About the name that is correct my mistake, i should change it. Now about the half adder etc i wanted to do it like this so i can fresh my memory about vhdl. About the code i tried to changed it a little and i added a new signal ztemp at the end of the code. The four lines named stage0-3 are replaced with
1 | |
Still i get errors and i can't get it simulated like before, at all. But here are the results of the simulation before, attached Thank u!
1 | |
2 | |
Could you pls attach screenshots as *.gif grphics?
> Still i get errors
What sort of ones?
I only have it on bmp type. Can you open it? It keeps saying "Error (10348): VHDL type mismatch error at multiplier4X3.vhd(57): type of formal parameter "ztemp" does not match port type of value"
> I only have it on bmp type. Can you open it?
Yes. And you are right: it looks like complete nonsense...
Does your full adder work properly?
Whats the theory behind your multiplier?
Do you have a schematic (with your signal names in it)?
Reply
Please log in before posting.
