Hardware architecture and routing-aware training for optimal memory usage: a case study | IEEE Conference Publication | IEEE Xplore