In this case the second layer of polysilicon is used for an additional layer of interconnect, or for forming passive devices such as resistors or capacitors, or for forming diodes and isolated MOS transistors, in addition to being used to dope and to electrically contact regions of the MOS-gated devices.