In FIG. 1, a TFT (n-channel TFT or p-channel TFT) provided over a substrate 10 having an insulating surface is an element for controlling a current flowing to an organic compound layer 20 b of a memory cell, and reference numerals 13 and 14 denote source or drain regions.