this software is a nightmare!! i have a simualtion running, it is a 32bit multiplier. but for some reason when i force a "10" it outputs "16". so for example if i try to multiplie 10*2 it gives me the result 16*2 = 32; i put the radix in decimal but it still goes on like this. why? btw, its like that with all the numbers with zero, meaning 20 is 32.
fuck_modelsim wrote: > when i force That "forcing" thing is the wrong way to s(t)imulate a HDL design. Use a test bench insted. > but for some reason when i force a "10" it outputs "16". Obviously the 10 is a hexadecimal number. Thats fairly usual in hardware design...
:
Edited by Moderator
Lothar M. wrote: > fuck_modelsim wrote: >> when i force > That "forcing" thing is the wrong way to s(t)imulate a HDL design. Use a > test bench insted. > >> but for some reason when i force a "10" it outputs "16". > Obviously the 10 is a hexadecimal number. Thats fairly usual in > hardware design... can u explain to me what is a test bench and how do i do one? i know its super basic.. the thing is my college provided just 3 classes on vhdl and now they want us to create an intire project with it.
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.