added control signal generator and tested it