Text this: Architecture design for highly flexible and energy-efficient deep neural network accelerators