Adding port and memory constraints