A semiconductor device packaged in three dimensions comprises a first thin
film device, a second thin film device, and a third thin film device,
each of the first, second, and third thin film devices comprising a first
insulating film, a first electrode formed over the first insulating film,
a second insulating film formed over the first electrode, first and
second thin film transistors formed over the second insulating film,
wherein the first thin film transistor is connected to the first
electrode through a first contact hole, a third insulating film formed
over the first and second thin film transistor, a second electrode formed
over the third insulating film, wherein the second electrode is connected
to the second thin film transistor through a second contact hole, and a
fourth insulating film formed over the third insulating film and the
second electrode.