How to use the parameter in comparing the variable and constant value?
The verilog replication operator will work here.  

The general syntax is: {n{m}} (m will be replicated n times).

The replication count, n, must be a constant value, and can be a parameter value.

In your case, the code would be:

assign out_top = (temp_var == { SIZE {1'b0} } ) ? 1b'0 : 1'b1;