SiP layout with edge coupler and Bragg  grating