Long latency in ternary tanh due to comparison with fractional number
Created by: jngadiub
I noticed that after the fix to the ternary tanh activation function in this commit
the latency for the activation function operation increased from 0 to 7 clock cycles. It seems it is due to the comparison with a fraction number (0.5 in this case). In this PR I changed such that the data are multiplied by 2 and the comparison is done with 1. This change brings the latency for the ternary tanh back to 0.