Patent ID: 8350609

Claim:
A semiconductor device comprising: a variable resistance circuit; first to M-th replica circuits (where M is an integer of 2 or larger); and operational amplifiers each provided in correspondence with each of the replica circuits, wherein each of the variable resistance circuit and the first to M-th replica circuits includes: first to M-th resistance elements coupled in series between a first voltage line and a predetermined node; and first to M-th transistors provided in correspondence with the first to M-th resistance elements, respectively, and each coupled between the first voltage line and an electrode on the predetermined node side of a corresponding resistance element, wherein each of the first to M-th replica circuits further includes a constant current source coupled between the predetermined node and a second voltage line and passing predetermined constant current, wherein each of (m+1)th to M-th transistors of the m-th replica circuit (where m is any integer from 1 to M−1) is fixed in a non-conductive state, gates of a plurality of k-th transistors which are not fixed in the non-conductive state out of k-th transistors (where k is any integer from 1 to M) of M+1 pieces included in the variable resistance circuit and the first to M-th replica circuits are coupled to one another, and wherein the operational amplifier controls the gate voltage of the k-th transistor of a corresponding to k-th replica circuit so that voltage of the predetermined node of the corresponding k-th replica circuit becomes predetermined reference voltage.