Svag matchende rim for semiconductor gate