Specification and Implementation of Digital Hopfield-Type Associative Memory with On-Chip Training