In reply to tejasakulu:
Not only is your code incorrect but your constraints cannot be satisfied. There is only one negative shortint number with only one bit set—16’sh8000, or -32767.
In reply to tejasakulu:
Not only is your code incorrect but your constraints cannot be satisfied. There is only one negative shortint number with only one bit set—16’sh8000, or -32767.