How do I regularize the weights of neural networks?

I have a 102 filters of size 32 x 32. How do I regularize the weights of the neural network to become {0, 1} or { -1, 1} instead of (-1,1) or (0,1) . If weights is more than 0, then w = 1. Else, w = -1 or 0. Is it simply achievable?