at least a p - type and n - type semiconductor device deposited upon a semiconductor wafer containing metal or metal alloy gates . more particularly , a complementary metal - oxide - semiconductor device is formed on a semiconductor wafer having n - type and p - type metal gates .