Stacking the electronic processing unit and the micromechanical structure