Digital neural network