A simulation framework for code-level energy estimation of embedded soft-core processors. (October 2017)