Software/Hardware Co-design for Tiny AI Systems