--- Quote Start ---
Dear FvM
I want to implement Multiplication command in VHDL. Because Modelsim does not support for LPM library. And when I use multiply command directly, the result's not true with the negative number.
In this method, I multiply two positive number, and use sign<=A(15)xor B(15); to check the sign of A and B.
If sign=0 => the result's positive. else the result's negative.
When I simulate with the waveforms, it appear strange value. I did not understand it.
Do you have other idea for this?
--- Quote End ---
You can precompile most libraries in Modelsim.
Usually altera_modelsim will have these lpm/altera_mf libraries ready from installation.
Otherwise you can precompile as follows:
go to modelsim => compile => set library name to lpm => navigate to altera folders that contain 220pack.vhd/220model.vhd. select them and compile.