Decoder circuit and decoder circuit design method
10680641 ยท 2020-06-09
Assignee
Inventors
Cpc classification
International classification
Abstract
The n-bit decoder circuit includes 2.sup.n base circuits each outputting, as the output signal OA, 0, 1 or the input signal IA depending on setting of selection signals S<1:0>; and the (n1)-bit decoder circuit. The (n1)-bit decoder circuit includes 2.sup.(n-1) base circuits and an (n2)-bit decoder circuit in cases of n3, and includes the 1-bit decoder circuit in cases of n=2. The 1-bit decoder circuit outputs 00 in cases of the binary input BIN<0>=0 and outputs 01 in cases of the binary input BIN<0>=1 as thermometer outputs THM(1)<1:0>.
Claims
1. An n-bit decoder circuit that decodes and converts n-bit binary inputs BIN<n1:0> into 2.sup.n-bit thermometer outputs THM(n)<2.sup.n-1:0>, where n is an integer of 2 or more, the n-bit decoder circuit comprising: 2.sup.n base circuits each outputting, as an output signal OA, 0, 1 or an input signal IA depending on setting of selection signals S<1:0>; and an (n1)-bit decoder circuit, wherein 0 and the binary input BIN<n1> are linked together and input as selection signals S<1:0> for higher 2.sup.(n-1) base circuits corresponding to the thermometer outputs THM(n)<2.sup.n-1:2.sup.(n-1)>, and each bit of thermometer outputs THM(n1)<2.sup.(n-1)-1:0> output from the (n1)-bit decoder circuit is input as an input signal IA for the higher 2.sup.(n-1) base circuits, wherein the higher 2.sup.(n-1) base circuits output 0 to all bits in cases of the binary input BIN<n1>=0 and output the thermometer outputs THM(n1)<2.sup.(n-1)-1:0> in cases of the binary input BIN<n1>=1, as the thermometer outputs THM(n)<2.sup.n-1:2.sup.(n-1)>, wherein the binary input BIN<n1> and 1 are linked together and input as selection signals S<1:0> for lower 2.sup.(n-1) base circuits corresponding to the thermometer outputs THM(n)<2.sup.(n-1)-1:0>, and each bit of the thermometer outputs THM(n1)<2.sup.(n-1)-1:0> is input as an input signal IA for the lower 2.sup.(n-1) base circuits, wherein the lower 2.sup.(n-1) base circuits output the thermometer outputs THM(n1)<2.sup.(n-1)-1:0> in cases of the binary input BIN<n1>=0 and output 1 to all bits in cases of the binary input BIN<n1>=1, as the thermometer outputs THM(n)<2.sup.(n-1)-1:0>, wherein in cases of n3, the (n1)-bit decoder circuit includes an (m1)-bit decoder circuit with m being set with a value from n to 3, and in cases of n=2, the (n1)-bit decoder circuit includes a 1-bit decoder circuit, where m is an integer of nm3, wherein with m being set with a value from n to 3, the (m1)-bit decoder circuit includes 2.sup.(m-1) base circuits and an (m2)-bit decoder circuit, and wherein the 1-bit decoder circuit outputs 00 in cases of the binary input BIN<0>=0 and outputs 01 in cases of the binary input BIN<0>=1 as thermometer outputs THM(1)<1:0>.
2. The decoder circuit according to claim 1, wherein the base circuit includes a first inverter, a second inverter and an output selection circuit, wherein the first inverter includes a first P type MOS transistor and a first N type MOS transistor, the input signal IA is input to a gate of the first P type MOS transistor and a gate of the first N type MOS transistor, and a drain of the first P type MOS transistor and a drain of the first N type MOS transistor are connected to an internal node, wherein the output selection circuit includes a second P type MOS transistor, a third P type MOS transistor, a second N type MOS transistor and a third N type MOS transistor, the second P type MOS transistor is connected between a power source and a source of the first P type MOS transistor, the third P type MOS transistor is connected between the power source and the internal node, the second N type MOS transistor is connected between a source of the first N type MOS transistor and a ground, the third N type MOS transistor is connected between the internal node and the ground, the selection signal S<1> is input to a gate of the second P type MOS transistor and a gate of the third N type MOS transistor, and the selection signal S<0> is input to a gate of the second N type MOS transistor and a gate of the third P type MOS transistor, and wherein an input terminal of the second inverter is connected to the internal node, and the output signal OA is output from the second inverter.
3. The decoder circuit according to claim 1, wherein the 1-bit decoder circuit includes a single base circuit that receives 01 as the selection signals S<1:0> and outputs the binary input BIN <0> as the output signal OA, and the 1-bit decoder circuit outputs: 0 as the thermometer output THM(1)<1>; and the binary input BIN<0> as the thermometer output THM(1)<0> from the single base circuit.
4. The decoder circuit according to claim 2, wherein the 1-bit decoder circuit includes a single base circuit that receives 01 as the selection signals S<1:0> and outputs the binary input BIN <0> as the output signal OA, and the 1-bit decoder circuit outputs: 0 as the thermometer output THM(1)<1>; and the binary input BIN<0> as the thermometer output THM(1)<0> from the single base circuit.
5. The decoder circuit according to claim 1, wherein the 1-bit decoder circuit includes a buffer that outputs the binary input BIN <0>, and the 1-bit decoder circuit outputs: 0 as the thermometer output THM(1)<1>; and the binary input BIN<0> as the thermometer output THM(1)<0> from the buffer.
6. The decoder circuit according to claim 2, wherein the 1-bit decoder circuit includes a buffer that outputs the binary input BIN <0>, and the 1-bit decoder circuit outputs: 0 as the thermometer output THM(1)<1>; and the binary input BIN<0> as the thermometer output THM(1)<0> from the buffer.
7. A method of designing an n-bit decoder circuit that decodes and converts n-bit binary inputs BIN<n1:0> into 2.sup.n-bit thermometer outputs THM(n)<2.sup.n-1:0>, where n is an integer of 2 or more, the method comprising: a step of designing a base circuit that outputs, as an output signal OA, 0, 1 or an input signal IA depending on setting of selection signals S<1:0>; a step of designing a 1-bit decoder circuit that outputs 00 in cases of the binary input BIN<0>=0 and outputs 01 in cases of the binary input BIN<0>=1 as thermometer outputs THM(1)<1:0>; a step of, in cases of n3, with m being set with a value from 3 to n, designing an (m1)-bit decoder circuit using 2.sup.(m-1) base circuits and an (m2)-bit decoder circuit, where m is an integer of nm3; and a step of designing an n-bit decoder circuit using 2.sup.n base circuits and an (n1)-bit decoder circuit, wherein the step of designing the n-bit decoder circuit includes: a step of linking 0 and the binary input BIN<n1> together and inputting them as selection signals S<1:0> for higher 2.sup.(n-1) base circuits corresponding to the thermometer outputs THM(n)<2.sup.n-1:22.sup.(n-1)>, and inputting each bit of thermometer outputs THM(n1)<2.sup.(n-1)-1:0> output from the (n1)-bit decoder circuit as an input signal IA for the higher 2.sup.(n-1) base circuits; and a step of linking the binary input BIN<n1> and 1 together and inputting them as selection signals S<1:0> for lower 2.sup.(n-1) base circuits corresponding to the thermometer outputs THM(n)<2.sup.(n-1)-1:0>, and inputting each bit of the thermometer outputs THM(n1)<2.sup.(n-1)-1:0> as an input signal IA for the lower 2.sup.(n-1) base circuits, and wherein the step of designing the (m1)-bit decoder circuit includes: a step of linking 0 and the binary input BIN<m2> together and inputting them as selection signals S<1:0> for higher 2.sup.(m-2) base circuits corresponding to the thermometer outputs THM(m1)<2.sup.(m-1)-1:22.sup.(m-2)>, and inputting each bit of thermometer outputs THM(m2)<2.sup.(m-2)-1:0> output from the (m2)-bit decoder circuit as an input signal IA for the higher 2.sup.(m-2) base circuits; and a step of linking the binary input BIN<m2> and 1 together and inputting them as selection signals S<1:0> for lower 2.sup.(m-2) base circuits corresponding to the thermometer outputs THM(m1)<2.sup.(m-2)-1:0>, and inputting each bit of the thermometer outputs THM(m2)<2.sup.(m-2)-1:0> as an input signal IA for the lower 2.sup.(m-2) base circuits.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION OF THE INVENTION
(12) On the following pages, a decoder circuit and a decoder circuit design method according to the present invention are described in detail with reference to preferred embodiments shown in the accompanying drawings.
(13) A decoder circuit of the present invention can be used to, in a product having for example an n-bit current type DAC (where n is an integer of 2 or more) mounted therein, convert binary inputs BIN representing an n-bit binary code, which are inputs, into thermometer outputs THM representing a 2.sup.n-bit thermometer code, which are outputs, and control the DAC by the use of these thermometer outputs THM in order to keep the linearity of an analog output from the DAC.
(14) First, a basic algorithm used in designing an n-bit decoder circuit that converts n-bit binary inputs BIN<n1:0> into 2.sup.n-bit thermometer outputs THM(n)<2.sup.n-1:0> is described below.
(15) The binary inputs BIN<n1:0> used herein are signals of n-bit bus notation in which the least significant bit (LSB) is a binary input BIN<0> and the most significant bit (MSB) is a binary input BIN<n1>. Similarly, the thermometer outputs THM(n)<2.sup.n-1:0> are signals of 2.sup.n-bit bus notation in which the least significant bit is a thermometer output THM(n)<0> and the most significant bit is a thermometer output THM(n)<2.sup.n-1>.
(16) It is assumed that an (n1)-bit decoder circuit that converts (n1)-bit binary inputs BIN<n2:0> into 2.sup.(n-1)-bit thermometer outputs (n1)<2.sup.(n-1)-1:0> is already present.
(17) Depending on the state of the binary input BIN<n1> which is the most significant bit of the n-bit binary inputs BIN<n1:0>, the operation is carried out according to the algorithm described below for each of the thermometer outputs THM(n)<2.sup.n-1:0>.
(18) In the case where the binary input BIN<n1> (which is the most significant bit)=0
(19) Thermometer outputs THM(n)<2.sup.n-1:2.sup.(n-1)>: 0 is output to each bit.
(20) Thermometer outputs THM(n)<2.sup.(n-1)-1:0>: The thermometer outputs THM(n1)<2.sup.(n-1)-1:0> output from the (n1)-bit decoder circuit are passed through and output as they are.
(21) In the case where the binary input BIN<n1> (which is the most significant bit)=1
(22) Thermometer outputs THM(n)<2.sup.n-1:2.sup.(n-1)>: The thermometer outputs THM(n1)<2.sup.(n-1)-1:0> output from the (n1)-bit decoder circuit are passed through and output as they are.
(23) Thermometer outputs THM(n)<2.sup.(n-1)-1:0>: 1 is output to each bit.
(24) When the n-bit decoder circuit is designed, the (n1)-bit decoder circuit needs to be already present as described above, and this condition is established when n2 is satisfied. In other words, a 2-bit decoder circuit can be designed according to the foregoing algorithm as long as there is the most basic 1-bit decoder circuit, and any n-bit decoder circuit can be designed by increasing the number of bits like 3 bits, 4 bits, 5 bits, and so on.
(25) TABLE-US-00002 TABLE 2 Binary input BIN Thermometer output THM <0> <1> <0> 0 0 0 1 0 1
(26) Table 2 is a truth table representing the operation of a 1-bit decoder circuit, i.e., the relationship between a binary input BIN<0> and thermometer outputs THM(1)<1:0>.
(27) TABLE-US-00003 TABLE 3 Binary input BIN Thermometer output THM <1> <0> <3> <2> <1> <0> 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 1 1 1 1 0 1 1 1
(28) Table 3 is a truth table representing the operation of a 2-bit decoder circuit, i.e., the relationship between 2-bit binary inputs BIN<1:0> and 4-bit thermometer outputs THM(2)<3:0>.
(29) As shown in Tables 2 and 3, within the 44 region of the thermometer outputs THM(2)<3:0> in the truth table of the 2-bit decoder circuit, values in the upper left 22 region are all 0 while values in the lower right 22 region are all 1. The values in the upper right 22 region and the values in the lower left 22 region are the same as those of the thermometer outputs THM(1)<1:0> in the truth table of the 1-bit decoder circuit.
(30) This condition is always the same even when the number of bits of binary inputs BIN increases, and in the case of 4 bits for instance, Table 1 mentioned above is established. To be more specific, within the 1616 region of the thermometer outputs THM(4)<15:0> in the truth table of the 4-bit decoder circuit, values in the upper left 88 region are all 0 while values in the lower right 88 region are all 1. The values in the upper right 88 region and the values in the lower left 88 region are the same as those of thermometer outputs THM(3)<7:0> in the truth table of a 3-bit decoder circuit as shown in Table 5 to be described later.
(31) Thus, it would be understood that when a 2-bit decoder circuit is designed according to the foregoing algorithm with the use of a 1-bit decoder circuit and the number of bits is increased like 3 bits, 4 bits, 5 bits, and so on, any n-bit decoder circuit can easily be designed.
(32) A decoder circuit of the present invention is described with reference to specific examples.
(33)
(34) The 2-bit decoder circuit 10 includes four base circuits 12a, 12b, 12c, 12d and a 1-bit decoder circuit 14.
(35) The base circuits 12a, 12b, 12c, 12d each output, as an output signal OA, 0, 1 or an input signal IA as it is depending on the setting of 2-bit selection signals S<1:0>.
(36) Outputting an input signal IA as it is means letting the input signal IA pass through and outputting a signal having the same value as the input signal IA as an output signal OA.
(37) 1-bit data 1b0 that is fixed to 0 is input to a selection input terminal S<1> of each of higher two base circuits 12a, 12b corresponding to higher 2-bit thermometer outputs THM(2)<3:2>, and a binary input BIN<1> which is the most significant bit of the binary inputs BIN<1:0> is input to a selection input terminal S<0> thereof. 1b0 is an exemplary description in the hardware description language (HDL) of Verilog and represents the 1-bit binary number 0. Hereinafter, descriptions are provided in the same manner. In other words, 0 and the binary input BIN<1> are linked together as {1b0, BIN<1>} and, as the selection signals S<1:0>, input to the higher two base circuits 12a, 12b.
(38) A thermometer output THM(1)<1> output from the 1-bit decoder circuit 14 is input to a signal input terminal IA of the higher base circuit 12a, and a thermometer output THM(1)<0> is input to a signal input terminal IA of the higher base circuit 12b. In other words, each bit of the thermometer outputs THM(1)<1:0> is input as the input signal IA for the higher two base circuits 12a, 12b.
(39) On the other hand, the binary input BIN<1> is input to a selection input terminal S<1> of each of lower two base circuits 12c, 12d corresponding to lower 2-bit thermometer outputs THM(2)<1:0>, and 1-bit data 1b1 that is fixed to 1 is input to a selection input terminal S<0> thereof. In other words, as the selection signals S<1:0> for the lower two base circuits 12c, 12d, the binary input BIN<1> and 1 are input as {BIN<1>, 1b1}.
(40) The thermometer output THM(1)<1> is input to a signal input terminal IA of the lower base circuit 12c, and the thermometer output THM(1)<0> is input to a signal input terminal IA of the lower base circuit 12d. In other words, each bit of the thermometer outputs THM(1)<1:0> is input as the input signal IA for the lower two base circuits 12c, 12d.
(41) Thermometer outputs THM(2)<3:0> are output as output signals OA from the signal output terminals OA of the base circuits 12a, 12b, 12c, 12d.
(42)
(43) The configurations of the base circuits 12b, 12c, 12d are also the same as that of the base circuit 12a.
(44) The first inverter is provided to output an inverted signal of an input signal IA to an internal node A, and includes a first P type MOS transistor (hereinafter also called PMOS) 18a and a first N type MOS transistor (hereinafter also called NMOS) 18b.
(45) The input signal IA is input to the gate of the first PMOS 18a and the gate of the first NMOS 18b. The drain of the first PMOS 18a and the drain of the first NMOS 18b are connected to the internal node A.
(46) The output selection circuit is provided to, in accordance with the setting of the selection signals S<1:0>, switch a signal to be output as an internal signal at the internal node A among 0, 1 and the inverted signal of the input signal IA. The output selection circuit includes a second PMOS 20a, a third PMOS 20b, a second NMOS 22a and a third NMOS 22b.
(47) The second PMOS 20a is connected between a power source and the source of the first PMOS 18a, and the third PMOS 20b is connected between the power source and the internal node A. The second NMOS 22a is connected between the source of the first NMOS 18b and the ground, and the third NMOS 22b is connected between the internal node A and the ground. The selection signal S<1> is input to the gate of the second PMOS 20a and the gate of the third NMOS 22b, and the selection signal S<0> is input to the gate of the second NMOS 22a and the gate of the third PMOS 20b.
(48) The second inverter 16 outputs the inverted signal of the internal signal at the internal node A as an output signal OA. The input terminal of the second inverter 16 is connected to the internal node A, and the output signal OA is output from the second inverter 16.
(49) TABLE-US-00004 TABLE 4 S<1> S<0> OA 0 0 0-fixed 0 1 IA through output 1 1 1-fixed 1 0 Inhibited
(50) Table 4 is a truth table representing the operation of the base circuit 12a, i.e., the relationship between the 2-bit selection signals S<1:0> and the output signal OA.
(51) As shown in Table 4, in the case of the selection signals S<1:0>=00, the PMOSs 20a, 20b are turned ON and the NMOSs 22a, 22b are turned OFF in the base circuit 12a. In this case, regardless of the value of the input signal IA, the internal node A is charged up via the PMOS 20b and turned to 1, and the internal signal at the internal node A is inverted by the second inverter 16, so that the output signal OA is fixed to 0, i.e., is to be 0.
(52) In the case of the selection signals S<1:0>=01, the PMOS 20a and the NMOS 22a are turned ON and the PMOS 20b and the NMOS 22b are turned OFF. In this case, the input signal IA is inverted by the first inverter and output to the internal node A, and the internal signal at the internal node A is inverted by the second inverter 16; thus, the output signal OA is in the state where the input signal IA is passed through. In other words, the input signal IA is output as it is as the output signal OA.
(53) In the case of the selection signals S<1:0>=11, the PMOSs 20a, 20b are turned OFF and the NMOSs 22a, 22b are turned ON. In this case, regardless of the value of the input signal IA, the internal node A is discharged via the NMOS 22b and turned to 0, and the internal signal at the internal node A is inverted by the second inverter 16, so that the output signal OA is fixed to 1, i.e., is to be 1.
(54) In the case of the selection signals S<1:0>=10, the PMOS 20a and the NMOS 22a are turned OFF and the PMOS 20b and the NMOS 22b are turned ON. In this case, since a direct current flows from the power source to the ground via the PMOS 20b and the NMOS 22b, input of the selection signals S<1:0>=10 is inhibited.
(55) In the 2-bit decoder circuit 10 shown in
(56) Note that a base circuit having an arbitrary configuration that realizes the truth table shown in Table 4 is applicable to the base circuit 12a.
(57) For example, as shown in
(58) Subsequently, the 1-bit decoder circuit 14 decodes and converts a 1-bit binary input BIN<0> into 2-bit thermometer outputs THM(1)<1:0>.
(59) The binary input BIN<0> is input to a binary input terminal BIN of the 1-bit decoder circuit 14. The 2-bit thermometer outputs THM(1)<1:0> are output from thermometer output terminals THM(1)<1:0> of the 1-bit decoder circuit 14.
(60) The 1-bit decoder circuit 14 always outputs 0 as the thermometer output THM(1)<1>, as shown in Table 2 above. The 1-bit decoder circuit 14 also outputs the binary input BIN<0> as it is as the thermometer output THM(1)<0>. In other words, the 1-bit decoder circuit 14 outputs 00 in the case of the binary input BIN<0>=0 and outputs 01 in the case of the binary input BIN<0>=1 as the thermometer outputs THM(1)<1:0>.
(61) Next, the configuration of the 1-bit decoder circuit 14 is described with reference to specific examples.
(62)
(63) The 1-bit data 1b0 that is fixed to 0 is input to the selection input terminal S<1> of the single base circuit, and the 1-bit data 1b1 that is fixed to 1 is input to the selection input terminal S<0> thereof. That is, 01 is input as the selection signals S<1:0> for the single base circuit. The binary input BIN<0> is input to the binary input terminal BIN of the single base circuit (refer to
(64) The 1-bit data 1b0 that is fixed to 0 is connected to the thermometer output THM(1)<1>.
(65) In the 1-bit decoder circuit 14a, the thermometer output THM(1)<1> is fixed to 0, i.e., is 0. That is, the 1-bit decoder circuit 14a always outputs 0 as the thermometer output THM(1)<1>, as shown in Table 2.
(66) With the selection signals S<1:0>=01, the PMOS 20a and the NMOS 22a are in the ON state while the PMOS 20b and the NMOS 22b are in the OFF state, and the single base circuit lets the input signal IA pass through and outputs the same as it is as the output signal OA. That is, the 1-bit decoder circuit 14a outputs the binary input BIN <0> as it is as the thermometer output THM(1)<0>, as shown in Table 2.
(67) Thus, by fixing the selection signals S<1:0>=01, the 1-bit decoder circuit 14a uses the base circuit 12a as a buffer, outputs the output signal OA therefrom as the thermometer output THM(1)<0>, and further outputs the 0 fixed signal as the thermometer output THM(1)<1>; thus the 1-bit decoder circuit 14a can easily be realized. In this case, without designing a dedicated circuit as a 1-bit decoder circuit, an n-bit decoder circuit 14a can be realized by means only of the single base circuit.
(68)
(69) The binary input BIN<0> is input to an input terminal of the upstream inverter, that is, the binary input terminal BIN of the 1-bit decoder circuit 14b (refer to
(70) The 1-bit data 1b0 that is fixed to 0 is connected to the thermometer output THM(1)<1>.
(71) In the 1-bit decoder circuit 14b, the thermometer output THM(1)<1> is fixed to 0, i.e., is 0. That is, the 1-bit decoder circuit 14b always outputs 0 as the thermometer output THM(1)<1>, as shown in Table 2.
(72) Further, the 1-bit decoder circuit 14b inverts the binary input BIN<0> two times by the inverters 24a, 24b and outputs the binary input BIN <0> as it is as the thermometer output THM(1)<0>, as shown in Table 2, from the buffer.
(73) The 1-bit decoder circuit 14b can easily be realized by outputting the output signal from the buffer as the thermometer output THM(1)<0> and further outputting the 0 fixed signal as the thermometer output THM(1)<1>. In this case, the 1-bit decoder circuit can be realized using an extremely simple circuit that only includes the buffer composed of the two inverters 24a, 24b.
(74) Note that a 1-bit decoder circuit having an arbitrary configuration that realizes the truth table shown in Table 2 is applicable to the 1-bit decoder circuit 14.
(75) Next, the operation of the 2-bit decoder circuit 10 is described.
(76) In the 2-bit decoder circuit 10, in the case of the binary input BIN<1>=0, 0 and the binary input BIN<1>, i.e., {1b0, BIN<1>}=00, are input to the selection input terminals S<1:0> of the higher two base circuits 12a, 12b as the selection signals S<1:0>. In this case, 00 is output from the signal output terminals OA of the two base circuits 12a, 12b as the thermometer outputs THM(2)<3:2>, as shown in Table 3 above.
(77) In the case of the binary input BIN<1>=0, the binary input BIN<1> and 1, i.e., {BIN<1>, 1b1}=01, are input to the selection input terminals S<1:0> of the lower two base circuits 12c, 12d as the selection signals S<1:0>. In this case, the thermometer outputs THM(1)<1:0> output from the 1-bit decoder circuit 14 are output from the signal output terminals OA of the two base circuits 12c, 12d as they are as the thermometer outputs THM(2)<1:0>, as shown in Table 3.
(78) In other words, as the thermometer outputs THM(2)<1:0>, 00 is output in the case of the binary input BIN<0>=0 and 01 is output in the case of the binary input BIN<0>=1.
(79) In the case of the binary input BIN<1>=1, 0 and the binary input BIN<1>, i.e., {1b0, BIN<1>}=01, are input to the selection input terminals S<1:0> of the higher two base circuits 12a, 12b as the selection signals S<1:0>. In this case, the thermometer outputs THM(1)<1:0> output from the 1-bit decoder circuit 14 are output from the signal output terminals OA of the two base circuits 12a, 12b as they are as the thermometer outputs THM(2)<3:2>, as shown in Table 3.
(80) In other words, as the thermometer outputs THM(2)<3:2>, 00 is output in the case of the binary input BIN<0>=0 and 01 is output in the case of the binary input BIN<0>=1.
(81) In the case of the binary input BIN<1>=1, the binary input BIN<1> and 1, i.e., {BIN<1>, 1b1}=11, are input to the selection input terminals S<1:0> of the lower two base circuits 12c, 12d as the selection signals S<1:0>. In this case, 11 is output from each of the signal output terminals OA of the two base circuits 12c, 12d as the thermometer outputs THM(2)<1:0>, as shown in Table 3.
(82) Next,
(83) The 3-bit decoder circuit 26 includes eight base circuits 12e, 12f, 12g, 12h, 12i, 12j, 12k, 12l and the 2-bit decoder circuit 10.
(84) 1-bit data 1b0 that is fixed to 0 is input to a selection input terminal S<1> of each of higher four base circuits 12e, 12f, 12g, 12h corresponding to higher 4-bit thermometer outputs THM(3)<7:4>, and a binary input BIN<2> which is the most significant bit of the binary inputs BIN<2:0> is input to a selection input terminal S<0> thereof. In other words, 0 and the binary input BIN<2> are linked together as {1b0, BIN<2>} and input to the higher four base circuits 12e, 12f, 12g, 12h as the selection signals S<1:0>.
(85) A thermometer output THM(2)<3> output from the 2-bit decoder circuit 10 is input to a signal input terminal IA of the higher base circuit 12e, a thermometer output THM(2)<2> is input to a signal input terminal IA of the higher base circuit 12f, a thermometer output THM(2)<1> is input to a signal input terminal IA of the higher base circuit 12g, and a thermometer output THM(2)<0> is input to a signal input terminal IA of the higher base circuit 12h. In other words, each bit of the thermometer outputs THM(2)<3:0> is input as the input signal IA for the higher four base circuits 12e, 12f, 12g, 12h.
(86) On the other hand, a binary input BIN<2> is input to a selection input terminal S<1> of each of lower four base circuits 12i, 12j, 12k, 12l corresponding to lower 4-bit thermometer outputs THM(3)<3:0>, and 1-bit data 1b1 that is fixed to 1 is input to a selection input terminal S<0> thereof. In other words, as the selection signals S<1:0> for the lower four base circuits 12i, 12j, 12k, 12l, the binary input BIN<2> and 1 are linked together and input as {BIN<2>, 1b1}.
(87) A thermometer output THM(2)<3> is input to a signal input terminal IA of the lower base circuit 12i, a thermometer output THM(2)<2> is input to a signal input terminal IA of the lower base circuit 12j, a thermometer output THM(2)<1> is input to a signal input terminal IA of the lower base circuit 12k, and a thermometer output THM(2)<0> is input to a signal input terminal IA of the lower base circuit 12l. In other words, each bit of the thermometer output THM(2)<3:0> is input as the input signal IA for the lower four base circuits 12i, 12j, 12k, 12l.
(88) Thermometer outputs THM(3)<7:0> are output from the signal output terminals OA of the base circuits 12e, 12f, 12g, 12h, 12i, 12j, 12k, 12l.
(89) The configurations of the base circuits 12e, 12f, 12g, 12h, 12i, 12j, 12k, 12l are the same as the base circuits used in the 2-bit decoder circuit 10 and as shown in
(90) The 2-bit decoder circuit 10, which is as shown in
(91) The binary inputs BIN<1:0> are input to binary input terminals BIN<1:0> of the 2-bit decoder circuit 10. The 4-bit thermometer outputs THM(2)<3:0> are output from thermometer output terminals THM(2)<3:0> of the 2-bit decoder circuit 10.
(92) Next, the operation of the 3-bit decoder circuit 26 is described.
(93) TABLE-US-00005 TABLE 5 Binary input BIN Thermometer output THM <2> <1> <0> <7> <6> <5> <4> <3> <2> <1> <0> 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 0 1 0 0 0 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1
(94) Table 5 is a truth table representing the operation of the 3-bit decoder circuit, i.e., the relationship between the 3-bit binary inputs BIN<2:0> and the 8-bit thermometer outputs THM(3)<7:0>.
(95) In the 3-bit decoder circuit 26, in the case of the binary input BIN<2>=0, 0 and the binary input BIN<2>, i.e., {1b0, BIN<2>}=00, are input to the selection input terminals S<1:0> of the higher four base circuits 12e, 12f, 12g, 12h as the selection signals S<1:0>. In this case, 0000 is output from the signal output terminals OA of the four base circuits 12e, 12f, 12g, 12h as the thermometer outputs THM(3)<7:4>, as shown in Table 5.
(96) In the case of the binary input BIN<2>=0, the binary input BIN<2> and 1, i.e., {BIN<2>, 1b1}=01, are input to the selection input terminals S<1:0> of the lower four base circuits 12i, 12j, 12k, 12l as the selection signals S<1:0>. In this case, the thermometer outputs THM(2)<3:0> output from the 2-bit decoder circuit 10 are output from the signal output terminals OA of the four base circuits 12i, 12j, 12k, 12l as they are as the thermometer outputs THM(3)<3:0>, as shown in Table 5.
(97) In other words, as the thermometer outputs THM(3)<3:0>, 0000 is output in the case of the binary input BIN<1:0>=00, 0001 is output in the case of the binary input BIN<1:0>=01, 0011 is output in the case of the binary input BIN<1:0>=10, and 0111 is output in the case of the binary input BIN<1:0>=11.
(98) In the case of the binary input BIN<2>=1, 0 and the binary input BIN<2>, i.e., {1b0, BIN<2>}=01, are input to the selection input terminals S<1:0> of the higher four base circuits 12e, 12f, 12g, 12h as the selection signals S<1:0>. In this case, the thermometer outputs THM(2)<3:0> output from the 2-bit decoder circuit 10 are output from the signal output terminals OA of the four base circuits 12e, 12f, 12g, 12h as they are as the thermometer outputs THM(3)<7:4>, as shown in Table 5.
(99) In other words, as the thermometer outputs THM(3)<3:0>, 0000 is output in the case of the binary input BIN<1:0>=00, 0001 is output in the case of the binary input BIN<1:0>=01, 0011 is output in the case of the binary input BIN<1:0>=10, and 0111 is output in the case of the binary input BIN<1:0>=11.
(100) In the case of the binary input BIN<2>=1, the binary input BIN<2> and 1, i.e., {BIN<2>, 1b1}=11, are input to the selection input terminals S<1:0> of the lower four base circuits 12i, 12j, 12k, 12l as the selection signals S<1:0>. In this case, 1111 is output from the signal output terminals OA of the four base circuits 12i, 12j, 12k, 12l as the thermometer outputs THM(3)<3:0>, as shown in Table 5.
(101) The configuration of an n-bit decoder circuit that decodes and converts n-bit binary inputs BIN<n1:0> into 2.sup.n-bit thermometer outputs THM(n)<2.sup.n-1:0> is also the same.
(102) The n-bit decoder circuit includes 2.sup.n base circuits and an (n1)-bit decoder circuit.
(103) 0 and a binary input BIN<n1> are linked together as {1b0, BIN<n1>} and input as selection signals S<1:0> for higher 2.sup.(n-1) base circuits corresponding to thermometer outputs THM(n)<2.sup.n-1:22.sup.(n-1)>. Each bit of thermometer outputs THM(n1)<2.sup.(n-1)-1:0> output from the (n1)-bit decoder circuit is input as an input signal IA for the higher 2.sup.(n-1) base circuits.
(104) The higher 2.sup.(n-1) base circuits output 0 to all the bits of the thermometer outputs THM(n)<2.sup.n-1:22.sup.(n-1)> in the case of the binary input BIN<n1>=0 and output the thermometer outputs THM(n1)<2.sup.(n-1)-1:0> in the case of the binary input BIN<n1>=1, as the thermometer outputs THM(n)<2.sup.n-1:22.sup.(n-1)>.
(105) On the other hand, the binary input BIN<n1> and 1 are linked together as {BIN<n1>, 1b1} and input as selection signals S<1:0> for lower 2.sup.(n-1) base circuits corresponding to thermometer outputs THM(n)<2.sup.(n-1)-1:0>. Also, each bit of the thermometer outputs THM(n1)<2.sup.(n-1)-1:0> is input as an input signal IA for the lower 2.sup.(n-1) base circuits.
(106) The lower 2.sup.(n-1) base circuits output the thermometer outputs THM(n1)<2.sup.(n-1)-1:0> in the case of the binary input BIN<n1>=0 and output 1 to all the bits of the thermometer outputs THM(n)<2.sup.(n-1)-1:0> in the case of the binary input BIN<n1>=1, as the thermometer outputs THM(n)<2.sup.(n-1)-1:0>.
(107) In the case of n3, the (n1)-bit decoder circuit includes an (m1)-bit decoder circuit with m (which is an integer of nm3) being set with a value from n to 3; in the case of n=2, the (n1)-bit decoder circuit includes a 1-bit decoder circuit.
(108) With m being set with a value from n to 3, the (m1)-bit decoder circuit includes 2.sup.(m-1) base circuits and an (m2)-bit decoder circuit.
(109) Now referring to the flowcharts in
(110) First, a base circuit outputting, as an output signal OA, 0, 1 or an input signal IA depending on the setting of selection signals S<1:0> is designed (Step S1 in
(111) A 1-bit decoder circuit outputting 00 in the case of the binary input BIN<0>=0 and outputting 01 in the case of the binary input BIN<0>=1 as thermometer outputs THM(1)<1:0> is designed (Step S2 in
(112) Subsequently, in the case of n3, with m (which is an integer of nm3) being set with a value from 3 to n, the (m1)-bit decoder circuit is designed using 2.sup.(m-1) base circuits and an (m2)-bit decoder circuit (Step S3 in
(113) Here, when the (m1)-bit decoder circuit is designed, 0 and a binary input BIN<m2> are linked together as {1b0, BIN<m2>} and input as selection signals S<1:0> for higher 2.sup.(m-2) base circuits corresponding to thermometer outputs THM(m1)<2.sup.(m-1)-1:22.sup.(m-1)> (Step S31 in
(114) Each bit of thermometer outputs THM(m2)<2.sup.(m-2)-1:0> output from the (m2)-bit decoder circuit is input as an input signal IA for the higher 2.sup.(m-2) base circuits (Step S32 in
(115) On the other hand, the binary input BIN<m2> and 1 are linked together as {BIN<m2>, 1b1} and input as selection signals S<1:0> for lower 2.sup.(m-2) base circuits corresponding to thermometer outputs THM(m1)<2.sup.(m-2)-1:0> (Step S33 in
(116) Each bit of thermometer outputs THM(m2)<2.sup.(m-2)-1:0> is input as an input signal IA for the lower 2.sup.(m-2) base circuits (Step S34 in
(117) Referring back to the flowchart in
(118) Here, when the n-bit decoder circuit is designed, 0 and a binary input BIN<n1> are linked together as {1b0, BIN<n1>} and input as selection signals S<1:0> for higher 2.sup.(n-1) base circuits corresponding to thermometer outputs THM(n)<2.sup.n-1:2.sup.(n-1)> (Step S41 in
(119) Each bit of thermometer outputs THM(n1)<2.sup.(n-1)-1:0> output from the (n1)-bit decoder circuit is input as an input signal IA for the higher 2.sup.(n-1) base circuits (Step S42 in
(120) On the other hand, the binary input BIN<n1> and 1 are linked together as {BIN<n1>, 1b1} and input as selection signals S<1:0> for lower 2.sup.(n-1) base circuits corresponding to thermometer outputs THM(n)<2.sup.(n-1)-1:0> (Step S43 in
(121) Each bit of thermometer outputs THM(n1)<2.sup.(n-1)-1:0> is input as an input signal IA for the lower 2.sup.(n-1) base circuits (Step S44 in
(122) For instance, in the case of n=4, first, the 2-bit decoder circuit 10 shown in
(123) As described above, the n-bit decoder circuit according to the invention can be realized using the combination of 2.sup.n base circuits and an (n1)-bit decoder circuit.
(124) Thus, it is possible to realize the n-bit decoder circuit only by combining a plurality of primitive circuits, namely, plural base circuits and a 1-bit decoder circuit. Furthermore, when the 1-bit decoder circuit 14a is used for example, the size of the resulting n-bit decoder circuit is proportional to the number of the base circuits 12=(22.sup.n)3; thus, the increase in circuit size can be far smaller than the increase in size of a conventional circuit proportional to n2.sup.n. Furthermore, the critical path length only increases in proportion to n which is the number of bits of binary inputs BIN and is therefore sufficiently small.
(125) Furthermore, the n-bit decoder circuit can be designed by combining plural base circuits and a 1-bit decoder circuit in accordance with the number of bits of binary inputs BIN. Furthermore, by measuring the output delay times of the primitive circuits that are the base circuits and the 1-bit decoder circuit in advance, the output delay time of the n-bit decoder circuit can easily be calculated in accordance with the number of bits of the binary inputs BIN. Thus, the n-bit decoder circuit can extremely easily be designed, and the design can be changed in short time even when the number of bits of the binary inputs BIN is changed.
(126) While the invention is described above in detail, the invention is not limited to the above embodiments, and various improvements and modifications may be made without departing from the spirit and scope of the invention.