Text this: System and circuit design for biologically-inspired learning