Logic to check 10bit binary number is perfect square or not

In reply to mamathamanu:

Is this for synthesizable logic or a test? If it’s for synthesizable logic the easiest thing to do is just create a look up table. If the input number is in the lookup table (0, 1, 4, 9, etc) then it’s a perfect square. If this is for a test you can use the $sqrt function.