A method of manufacturing a capacitor and a metal gate on a semiconductor
device comprises forming a dummy gate on a substrate, forming a trench
layer on the substrate and adjacent the dummy gate, forming a capacitor
trench in the trench layer, forming a bottom electrode layer in the
capacitor trench, removing the dummy gate to provide a gate trench,
forming a dielectric layer in the capacitor trench and the gate trench,
and forming a metal layer over the dielectric layer in the capacitor
trench and the gate trench.