Borrowed from Spanish pastilla. By surface analysis, pasta + -illa.
Practice speaking and memorizing "pastilla" and many other words and sentences in Catalan.