To securely prevent hydrogen from entering a ferroelectric layer of a
ferroelectric memory. A first hydrogen barrier layer 5 is formed on the
lower side of ferroelectric capacitors 7. Upper surfaces and side
surfaces of the ferroelectric capacitors 7 are covered by a second
hydrogen barrier layer. All upper electrodes 7c of the plural
ferroelectric capacitors 7 to be connected to a common plate line P are
connected to one another by an upper wiring layer 91. The upper wiring
layer 91 is connected to the plate line P through a lower wiring 32
provided below the ferroelectric capacitors 7. A third hydrogen barrier
layer 92 is formed on the upper wiring layer 91 such that all edge
sections 92a of the third hydrogen barrier layer 92 come in contact with
the first hydrogen barrier layer 5.