A hardware implementation of artificial neural networks using field programmable gate arrays