Please visit
https://github.com/4mbilal/XilFPGAdev/tree/main/Custom_IP_Cores/SimulinkHDLCoder/Segmentation