SHAPES: Scalable Software Hardware Platform for Embedded Systems