absolute value verilog
Well, I am not familiar with verilog, but you should have some software to perform simulations, don't you?
I use Active HDL, you only need to know what number format you are using, and then perform the operation. Just take care of the word length, remember that a multiplier returns twice the length of the operators, i.e. Multiplying A2.14 * B 2.14 = C4.28, A and B are 16-bit numbers in format 2.14, C is a 32-bit number in format 4.28. You can perform your simulation and check if the result is correct.
In Active you can display numbers in decimal, binary, hexadecimal, and octal, also in unsigned or signed numbers.
Hope this helps you.