An Implementation of a System-On-Chip Automatic Washing Machine