Parallel-serial data converter

Abstract: The parallel-serial data converter comprises a n-th latch circuit (11) which latches the sign bit at the most significant bit of parallel data, a n-1th selector (12 n-1 ) which selects either of the n-1th bit or the ground level, a n-1th latch circuit (13 n-1 ) which latches the output from the selector n-1, a i-th selector (12 i ) which selects either of the i-th bit (i = n-2, n-3, ..., 2, 1) of the parallel data or the output from the i+1th latch circuit, a i-th latch circuit (13 i ) which latches the output from the i-th selector, a n-th selector (17) which selects either of the output from the first inverter to reverse the output from the first latch circuit or the output from the first latch circuit, a n+1th selector (19) which selects either of the output from a second inverter to reverse the output from the n-th selector or the output from the n-th selector for output as serial data in two's compliment notation, a set latch circuit (21) which is set according to the STORE signal and latches the output from the first AND circuit to take the logical AND the output form the n-th selector and the selection signal as well as a second AND circuit which takes the logical AND the output from the set latch circuit and the output from the n-th latch circuit for output as the selection signal.

Description: BACKGROUNDS OF THE INVENTION FIELD OF THE INVENTION The present invention relates to a parallel-serial data converter and particularly relates to a parallel-serial data converter which converts parallel data in sign magnitude notation into serial data in two's compliment notation. DESCRIPTION OF THE RELATED ART As shown in Fig. 9, a parallel-serial data converter to convert parallel data in sign magnitude notation into serial data in two's compliment notation generally comprises EXOR (exclusive-OR) circuits 90 1 , ... , 90 n-2 and 90 n-1 , adders 91 1 , ..., 91 n-2 and 91 n-2 , selectors 92 1 , ..., 91 n-2 and 91 n-1 , latch circuits 93 1 , ..., 93 n-2 and 93 n-1 and another latch circuit 93 n , an OR circuit 94, AND circuits 95 and 96 and a still another latch circuit 97. From n (positive integer) bits of parallel data in sign magnitude notation I 1 , ...., I n-2 , I n-1 and I n , the sign bit I n and each of the remaining bits I 1 to I n-1 are sent to the EXOR circuits 90 1 , ...,90 n-2 and 90 n-1 respectively. The outputs from the EXOR circuits 90 1 , ..., 90 n-2 and 90 n-1 are sent to the adders 91 1 , ..., 91 n-2 and 91 n-2 where the carry output from less significant bit is treated as the carry input. The addition results from the adders and the outputs from the latch circuits 93 1 , ..., 93 n-2 , 93 n-1 and 93 n are given as inputs A and B to the selectors 92 1 , ..., 92 n-2 and 92 n-1 , each of which selects either of A or B according to the STORE signal. The outputs from the selectors 92 1 , ..., 92 n-2 and 92 n-1 are input to the latch circuits 93 1 , 93 n-2 and 93 n-1 . The latch circuit 93 n receives the sign bit I n as the data input. The OR circuit 94 takes the logical OR the STORE and LOAD signals. The AND circuit 95 takes the logical AND the output from the OR circuit 94 and the CLOCK (1) signal, and the AND circuit 96 takes the logical AND the output from the OR circuit 94 and the CLOCK (2) signal. The latch circuit 97 outputs serial data. Each of the latch circuits 93 n to 93 1 and the latch circuit 97 comprises a two-phase flip-flop of D type and receives the output from the AND circuit 95 as the master clock and the output from the AND circuit 96 as the slave clock. Fig. 10 is a timing chart of input/output signals for such a conventional embodiment. Referring to Figs. 9 and 10, the operation in a conventional embodiment will be described below. Firstly, when the parallel data I 1 to I n in sign magnitude notation are positive, the sign bit I n is at "L" level. The parallel data I 1 , ...., I n-2 and I n-1 in sign magnitude notation are output as they are from the EXOR circuits 90 1 , ..., 90 n-2 and 90 n-1 serving as discrepancy detectors. They are sent to the corresponding adders 91 1 , .... 91 n-2 and 91 n-1 and output as they are again. If the STORE signal is at H level, the selectors 92 1 , ....., 92 n-2 and 92 n-1 select input A for output, which causes the outputs from the adders 91 1 , ....., 91 n-2 and 91 n-1 to be sent to the latch circuits 93 1 , ....., 93 n-1 . The latch circuit 93 n directly fetches the sign bit I n . If the LOAD signal is at H level, the selectors 92 1 , ....., 92 n-2 and 92 n-1 select input B for output and each time the CLOCK signal (2) rises, latch data from the latch circuits 93 1 to 93 n are subsequently output from the latch circuit 97 as serial data in two's compliment notation. Next, when the parallel data I 1 to I n in sign magnitude notation are negative, the sign bit I n is at "H" level. The parallel data I 1 , ......, I n-2 and I n-1 in sign magnitude notation are, at the EXOR circuits 90 1 , ....., 90 n-2 , 90 n-1 serving as discrepancy detectors, output with the level reversed and sent to the corresponding adders 91 1 , ....., 91 n-2 and 91 n-1 for addition and output. If the STORE signal is at H level, the selectors 92 1 , 92 n-2 and 92 n-1 select input A for output and the outputs from the adders 91 1 , ....., 91 n-2 , 91 n-1 are sent to the latch circuits 93 1 , ..... and 93 n-1 . The latch circuit 93 n directly fetches the sign bit I n . If the LOAD signal is at H level, the selectors 92 1 , ....., 92 n-2 and 92 n-1 select input B for output. As a result, the data from the latch circuits 93 1 to 93 n are output from the latch circuit 97 as serial data in two's compliment notation. Thus, parallel data in sign magnitude notation are converted into and output as serial data in two's compliment notation when two is at the LSB first. In such a conventional parallel-serial data converter, the operation to convert parallel data in sign magnitude notation into serial data in two's compliment notation applies to the parallel data. This means that the converter must have as many EXOR circuits and adders as the number of bits contained in the data to be converted. This may result in a huge circuit scale. US-A-4,418,418 discloses a parallel-serial converter. It comprises a plurality of selection-delay unit circuits. The unit circuit selectively receives an output signal from the immediately preceding unit circuit and one of a plurality of input parallel signals and shifts the selectively received signal to the immediately succeeding unit circuit. The selection-delay unit circuit is only formed of three transfer gates and two inverters in order to reduce a chip size and save power consumption. "COMPUTER DESIGN, July 1979, pages 1205-112" discloses practical hardware solutions for 2's complement arithmetic problems. A method and an apparatus for signed 2's complement to/from signed magnitude conversion is disclosed. SUMMARY OF THE INVENTION An object of the present invention is to provide a parallel-serial data converter with a smaller circuit scale with omitting exclusive OR circuits and adders which are needed as many as the number of data bits in a conventional converter. The parallel-serial data converter of the present invention is particularly effective when applied to a circuit for conversion of data with a large number of bits. The present invention is defined in independent claims 1 and 4. The dependent claims define particular embodiment of the invention. According to a preferred embodiment of the present invention to attain the above object, a parallel-serial data converter comprises a n-th latch circuit which latches the sign bit at the most significant bit of the parallel data of n (positive integer) bits in sign magnitude notation according to the STORE signal, a n-1th selector which receives the n-1th bit of the parallel data as the first input and the ground level as the second input and selects either of them for output according to the STORE signal, a n-1th latch circuit which latches the output from the n-1th selector according to the predetermined CLOCK signal, a i-th selector which receives the i-th bit of the parallel data (i = n-2, n-3, ..., 2 and 1) as the first input and the output from a i+1th latch circuit as the second input and selects either of them for output according to the STORE signal, a i-th latch circuit which latches the output from the i-th selector according to the CLOCK signal, a first inverter which reverses the output from the first latch circuit, a n-th selector which receives the output from the first inverter as the first input and the output from the first latch circuit as the second input and selects either of them for output according to the output from the n-th latch circuit, a second inverter which reverses the output from the selector n, a selector n+1 which receives the output from the second inverter as the first input and the output from the selector n as the second input and selects either of them according to the predetermined selection signal for output as the serial data in two's compliment notation, a first AND circuit which takes the logical AND the output from the n-th selector and the selection signal, a set latch circuit which is set according to the STORE signal and latches the output from the first AND circuit according to the CLOCK signal, and a second AND circuit which takes the logical AND the output from the set latch circuit and the output from the n-th latch circuit for output as the selection signal. According to another preferred embodiment of a parallel-serial data converter according to the present invention, the n-th latch circuit, the n-1th latch circuit and the i-th latch circuit comprise D type flip-flops. According to a further preferred embodiment, the n-1th and i-th latch circuits are designed to operate according to the master/slave method with two D type flip-flops which make latching according to CLOCK signals of two different phases. In addition, a parallel-serial data converter further comprises an OR circuit which takes the logical OR the STORE signal and LOAD signal to direct serial data output and an AND circuit which takes the logical AND the output from the OR circuit and the CLOCK signal, the output from the AND circuit being used as the clock signal for the n-1th latch circuit, the i-th latch circuit and the set latch circuit. According to still another preferred embodiment of the present invention to attain the above object, a parallel-serial data converter to convert parallel data of n (positive integer) bits in sign magnitude notation into serial data in two's compliment notation comprises a n-1th selector which receives the n-1th bit of the parallel data as the first input and the ground level as the second input and selects either of them for output according to the reversed LOAD signal, a n-1th latch circuit which latches the output from the n-1th selector according to the predetermined CLOCK signal, a i-th selector which receives the i-th bit of the parallel data (i = n-2, n-3, ..., 2 and 1) as the first input and the output from the i+1th latch circuit as the second input and selects either of them for output according to the reversed LOAD signal, a i-th latch circuit which latches the output from the i-th selector according to the CLOCK signal, a first inverter which reverses the output from the first latch circuit, a n-th selector which receives the output from the first inverter as the first input and the output from the first latch circuit as the second input and selects either of them for output according to the sign bit of the parallel data, a second inverter which reverses the output from the n-th selector, a n+1th selector which receives the output from the second inverter as the first input and the output from the n-th selector as the second input and selects either of them according to the predetermined selection signal for output as the serial data in two's compliment notation, a first AND circuit which takes the logical AND the output from the n-th selector and the selection signal, a set latch circuit which is set according to the STORE signal and latches the output from the first AND circuit according to the CLOCK signal, and a second AND circuit which takes the logical AND the output from the set latch circuit and the sign bit of the parallel data for output as the selection signal. According to a further preferred embodiment, the n-1th and i-th latch circuits are designed to operate according to the master/slave method with two D type flip-flops which make latching according to CLOCK signals of two different phases. Other objects, characteristics and effects of the present invention will be clarified in the detailed description below. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram to show the configuration of a parallel-serial data converter according to a first embodiment of the present invention; Fig. 2 is a timing chart to show the operation of the first embodiment; Fig. 3 is a block diagram to show the configuration of a parallel-serial data converter according to a second embodiment of the present invention; Fig. 4 is a timing chart to show the operation of the second embodiment; Fig. 5 is a block diagram to show the configuration of a parallel-serial data converter according to a third embodiment of the present invention; Fig. 6 is a timing chart to show the operation of the third embodiment; Fig. 7 is a block diagram to show the configuration of a parallel serial data converter according to a fourth embodiment of the present invention; Fig. 8 is a timing chart to show the operation of the fourth embodiment; Fig. 9 is a block diagram to show the configuration of a conventional parallel-serial data converter; and Fig. 10 is a timing chart to illustrate the operation of the circuit shown in Fig. 9. DESCRIPTION OF THE PREFERRED EMBODIMENT Referring to the attached figures, preferred embodiments of the present inventions will be described in details below. Fig. 1 shows the configuration of a parallel-serial data converter according to a first embodiment of the present invention. In the figure, a parallel-serial data converter of the present invention comprises latch circuits 11, 13 n-1 to 13 1 and 23, selectors 12 n-1 to 12 1 , 17, 19 and 21, an OR circuit 14, AND circuits 15, 20 and 22, inverters 16 and 18 as well as a set latch circuit 21. The latch circuit 11 processes parallel data having n bits in sign magnitude notation (I 1 , ....., I n-2 , I n-1 , and I n ) to latch the data I n serving as the sign bit according to the STORE signal. The selector 12 n-1 receives, from n bits of parallel data in sign magnitude notation, the data I n-1 as input A, and receives the ground potential as input B and selects either of them according to the STORE signal. The selectors 12 n-2 to 12 1 have the parallel data I 1 to I n-2 as input A and the output from the latch circuits 13 n-1 to 13 2 as input B and select either of them according to the STORE signal. The latch circuits 13 n-1 to 13 1 receive the outputs from the selectors 12 n-1 to 12 1 . The OR circuit 14 takes the logical OR the STORE signal and the LOAD signal and the AND circuit 15 takes the logical AND the output from the OR circuit 14 and the CLOCK signal. The above latch circuits 13 n-1 to 13 1 operate with using the output from the AND circuit 15 as the clock. The selector 17 receives the output from the inverter 16 where the output from the latch circuit 13 1 is reversed as input A and the output from the latch circuit 13 1 as input B and selects either of them according to the output from the latch circuit 11. The selector 19 receives the output of the inverter 18 where the output from the selector 17 is reversed as input A and the output of the selector 17 as input B and selects either of them according to the output from the AND circuit 20. The set latch circuit 21 receives the output from the AND circuit 22 which takes the logical AND the output from the AND circuit 20 and the output from the selector 17 as the input D and the STORE signal as a set signal. The AND circuit 20 takes the logical AND the output from the latch circuit 11 and the set latch circuit 21. The latch circuit 23 receives the output from the selector 19 as the data input and operates with using the output from the AND circuit 15 as the clock so as to output serial data. Fig. 2 is a timing chart of input/output signals related to the operation according to the first embodiment. Referring to the figure, when the parallel data I 1 , ...., I n-2 , I n-1 and I n in sign magnitude notation are positive, the sign bit I n is latched by the latch circuit 11 according to the STORE signal. The remaining parallel data I 1 , I n-2 and I n-1 are processed differently depending on the STORE signal level. If the STORE signal is at H level, the selectors 12 1 , ....., 12 n-2 and 12 n-1 select input A, which is in turn latched by the latch circuits 13 1 , ....., 13 n-2 and 13 n-1 respectively according to the output from the AND circuit 15. At the same time, the set latch circuit 21 is set via the STORE signal at H level. If the STORE signal is at L level, the selectors 12 1 , ....., 12 n-2 , 12 n-1 select input B, with resulting in serial connection of the latch circuits 13 1 to 13 n-1 . In this case, however, the input to the latch circuit 13 n-1 is the ground potential, or at L level. At the selectors 17 and 19, the output from the latch circuit 11 is at L level, and the output from the AND circuit 20 is also at L level. This means that both selectors select input B. If the LOAD signal becomes H under such conditions, the AND circuit 15 outputs the clock signal. Each time the CLOCK signal rises, the latch circuit 23 subsequently outputs serial data in two's compliment notation. The serial data are output one by one from the least significant bit. When the parallel data I 1 , ....., I n-2 , I n-1 and I n in sign magnitude notation are negative, the sign bit I n is at H level. The sign bit I n is latched and stored by the latch circuit 11 according to the STORE signal. The remaining data I 1 , ....., I n-2 and I n-1 are processed differently depending on the STORE signal level. If the STORE signal is at H level, the selectors 12 1 , ....., 12 n-2 and 12 n-1 select input A, which is in turn latched by the latch circuits 13 1 , 13 n-2 and 13 n-1 respectively according to the output from the AND circuit 15. At the same time, the set latch circuit 11 is set via the STORE signal. If the STORE signal is at L level, the selectors 12 1 , ......, 12 n-2 and 12 n-1 select input B, with resulting in serial connection of the latch circuits 13 1 , ......, 13 n-2 and 13 n-1 . In this case, however, the input to the latch circuit 13 n-1 is the ground potential. The selector 17 selects input A for output because the output from the latch circuit 11 is at H level. If the LOAD signal is at H level, the outputs from the latch circuit 13 1 are reversed before being output from the selector 17. Since the output from the latch circuit 11 is at H level, the output level of the AND circuit 20 depends on the output level of the set latch circuit 21. Note that the set latch circuit 21 is in set status at first with its output level at "H". Therefore, the output level of the AND circuit 20 is at H level at first, which causes the selector 19 to select input A for output. The data output from the latch circuit 13 1 via the CLOCK signal from the AND circuit 15 is reversed twice during the first CLOCK signal (H level) at the selectors 17 and 19 which select input A as described above and as a result output the data to the latch circuit 23 as it is. For example, the latch circuit 23 provides "1" if the first output data from the latch circuit 13 1 is "1", and "0" if it is "0". During the next CLOCK signal (H level), a value determined by the AND circuit 22 as the logical product of the set signal selected by the previous cycle CLOCK signal (output from the AND circuit 20) and the previous cycle output from the selector 17 is latched by the set latch circuit 21, output via the AND circuit 20 and sent to the selector terminal S of the selector 19 so that either of input A or B is selected. If the latch circuit 13 1 outputs "0" as the first output data and "1" as the second output data, since the set signal selected according to the CLOCK signal of the previous cycle (output from the AND circuit 20) is "1" and the output from the selector 17 of the previous cycle is reversed to be "1", the AND circuit 22 outputs "1" and the AND circuit 20 outputs "1". Therefore, the selector 19 selects input A, which causes the above second output data "1" to be reversed twice and read out as "1". If the latch circuit 13 1 outputs "1" as the first output data and "1" as the second output data, then the set signal selected according to the CLOCK signal of the previous cycle (output from the AND circuit 20) is "1" and the output from the selector 17 of the previous cycle is reversed to be "0", and the AND circuit 22 outputs "0" and the AND circuit 20 outputs "0". Therefore, the selector 19 selects input B and the above second output data '1" is reversed once and read out as "0". Thus, serial data in two's compliment notation from the latch circuit 23 is output synchronizing with the CLOCK signal. In the first embodiment of Fig. 1, the selectors 12 n-1 to 12 1 and the selectors 17 and 19 should be set to have a delay time exceeding the rise time of the clock signal so as to ensure latching at the latch circuits 13 n-1 to 13 1 and the latch circuit 23. If the selectors 12 n-1 to 12 1 and selectors 17 and 19 have a delay time shorter than the rise time of the clock signal, the first rising of the clock signal upon entering of LOAD signal to H level causes the latch circuits 13 n-1 to 13 1 and the latch circuit 23 to enter "through" status and all of them have the same level as the ground potential (L level). If the selectors 12 n-1 to 12 1 and the selectors 17 and 19 have a delay time more than the rise time of the clock signal, then the parallel data latched by the latch circuits 13 n-1 to 13 1 are subsequently transmitted. In conversion of parallel data in sign magnitude notation into serial data in two's compliment notation, the sign bit data and the data other than the sign bit are differently handled. In the first embodiment of the present invention, "0" is given to the latch circuit 13 n-1 to prevent the data serially output from the latch circuit 13 1 from being reversed together with the sign bit at the selector 17, even when the data is negative. Thus, a converter according to the first embodiment is capable of data conversion without judging whether each data bit in serial output is a sign bit or not. Fig. 3 shows the configuration of a parallel-serial data converter according to a second embodiment of the present invention. In a data converter according to this embodiment, the latch circuits 13 n-1 to 13 1 and the latch circuit 23 in the first embodiment of Fig. 1 are replaced with the latch circuits 33 n-1 to 33 1 and 43 comprising two-phase D type flip-flops operating according to the master-slave method. For CLOCK signals, master CLOCK (1) and slave CLOCK (2) are provided. In addition to the AND circuit 15 which takes the logical AND the output from the OR circuit 14 and master CLOCK (1), another AND circuit 35 is added to AND the output from the OR circuit 14 and slave CLOCK (2). Except these points, this embodiment has the same configuration as in Fig. 1. Fig. 4 is a timing chart of input/output signals in conversion operation according to the second embodiment. The second embodiment basically works in the same way as the first embodiment except that parallel data latching and serial data output are synchronized with the slave CLOCK (2). In this embodiment, adoption of latch circuits using master/slave method eliminates the need of consideration for delay time at the selectors 12 n-1 to 12 1 to ensure latching operation at the latch circuits as in the first embodiment. Next, a third embodiment of the present invention is described. The third embodiment is a parallel-serial data converter which can cope with absence of the STORE signal. Fig. 5 is a block diagram to show the third embodiment. It is supposed here that the parallel data is fixed at least one clock before the LOAD signal and kept invariable while the LOAD signal is at H level. In other words, this is a circuit configuration to continue, even after the parallel data is fixed, to receive the same parallel data. As shown in Fig. 5, a parallel-serial data converter according to the third embodiment comprises selectors 50 1 , ......, 50 n-2 and 50 n-1 , latch circuits 51 2 , ......, 51 n-2 and 51 n-1 , a latch circuit 51 1 , inverters 53 and 54, a selector 55, an inverter 56, a selector 57, AND circuits 58 and 60, a set latch circuit 59 and a latch circuit 63. From n bits of parallel data (I 1 , ......, I n-2 , I n-1 and I n ) in sign magnitude notation, the selectors 50 1 , ......, 50 n-2 and 50 n-1 receive the data except the sign bit In (I 1 , ......, I n-2 and I n-1 ) as input A. The latch circuits 51 2 , ......, 51 n-2 and 51 n-1 which latch the outputs from the selectors 50 1 , ......, 50 n-2 and 50 n-1 via the CLOCK signal and return them via the LOAD signal reversed at the converter 53 to the corresponding selectors 50 1 , ......, 50 n-2 as input B. The latch circuit 51, the inverter 54, the selector 55, the inverter 56, the selector 57, the AND circuit 58, the set latch circuit 59 and the AND circuit 60 correspond to the latch circuit 13 1 , the inverter 16, the selector 17, the inverter 18, the selector 19, the AND circuit 20, the set latch circuit 21 and the AND circuit 22 in the first embodiment respectively. Referring now to Fig. 6, which is a timing chart of input/output signals, the operation of the converter according to this embodiment is compared with that in the first embodiment. In the first embodiment as shown in Fig. 1, from n bit parallel data I 1 , ......, I n-2 , I n-1 and I n in sign magnitude notation, the parallel data except the sign bit In (I 1 , ......, I n-2 and I n-1 ) are latched according to the STORE signal. In this embodiment, however, latching is made according to the CLOCK signal while the LOAD signal is at L level. The circuit comprising the latch circuit 51, the inverter 54, the selector 55, the inverter 56, the selector 57, the AND circuits 58 and 60 and the set latch circuit 59 as in the first embodiment operates in the same way as the first embodiment and the description is omitted. Fig. 7 is a parallel-serial data converter according to a fourth embodiment of the present invention. For this embodiment, the latch circuits 51 n-1 to 51 1 and the latch circuit 53 in the third embodiment are replaced with latch circuits 71 n-1 to 71 1 and a latch circuit 73 comprising two-phase D type flip-flops operating according to the master/slave method. For CLOCK signals, master CLOCK (1) and slave CLOCK (2) are input to the latch circuits. Fig. 8 is a timing chart to show the operation in the fourth embodiment. Except that the parallel data latching and the serial data output are synchronized with the slave CLOCK (2), the operation is exactly the same as in the first and the third embodiments. Thus, in the above embodiments, exclusive OR circuits and adders required for the number of bits in a conventional converter are replaced with a latch circuit and a set latch circuit, two selectors, two inverters and two AND circuits. This largely reduces the number of circuit elements resulting in a smaller scale circuit. The present invention is particularly effective when applied to a converter for a large number of bits.

Claims: A parallel-serial data converter to convert parallel data of n (positive integer) bits (n being the most significant bit) in sign magnitude notation into serial data in two's compliment notation comprising: a n-th latch circuit (11) of in total n latch circuits, said n-th latch circuit latching the sign bit at the most significant bit of said parallel data in response to a STORE signal; a n-lth selector (12n-1) of in total n+1 selectors, said n-1th selector receiving the n-1th bit of said parallel data as the first input and the ground level as the second input and selecting either of them for output according to said STORE signal; a n-lth latch circuit (13n-1) latching the output from said n-lth selector (12n-1) in response to a predetermined CLOCK signal; a i-th selector (12i) receiving the i-th bit of said parallel data (i = n-2, n-3 ,..., 2 and 1) as the first input and the output from a i+1th latch circuit as the second input and selecting either of them for output according to said STORE signal; a i-th latch circuit (13i) latching the output from said i-th selector (12i) in response to said CLOCK signal; a first inverter (16) reversing the output from the first (i=1) latch circuit (131); a n-th selector (17) receiving the output from said first inverter (16) as the first input and the output from said first latch circuit (131) as the second input and selecting either of them for output according to the output from said n-th latch circuit (11); a second inverter (18) which reverses the output from said n-th selector (17); a n+1th selector (19) receiving the output from said second inverter (18) as the first input and the output from said n-th selector (17) as the second input and selecting either of them according to a predetermined selection signal for output as the serial data in two's compliment notation; a first AND circuit (22) taking the logical AND of the output from said n-th selector (17) and said selection signal; a set latch circuit (21) being set according to said STORE signal and latching the output from said first AND circuit (22) in response to said CLOCK signal; and a second AND circuit (20) taking the logical AND of the output from said set latch circuit (21) and the output from said n-th latch circuit (11) for output as said selection signal, wherein said clock signal for said n-1th latch circuit (13n-1), said i-th latch circuit and said set latch circuit (21) is the logical AND of said CLOCK signal with the logical OR of said STORE signal and said LOAD signal to direct serial data output. The parallel-serial data converter of Claim 1, wherein said n-th latch circuit (11), said n-lth latch circuit (13 n-1 ) and said i-th latch circuit (13 i ) comprise D type flip-flops. The parallel-serial data converter of Claim 1, wherein said n-1th and i-th latch circuits are designed to operate according to the master/slave method with two D type flip-flops which make latching according to CLOCK signals of two different phases. A parallel-serial data converter to convert parallel data of n (positive integer) bits (n being the most significant bit) in sign magnitude notation into serial data in two's compliment notation comprising: a n-1th selector (50 n-1 ) of in total n+1 selectors, said (n-1)th selector receiving the n-1th bit of said parallel data as the first input and the ground level as the second input and selecting either of them for output according to an inverted LOAD signal; a n-1th latch circuit (51 n-1 ) of in total (n-1) latch circuits, said (n-1)th latch circuit latching the output from said n-1th selector (50 n-1 ) in response to a predetermined CLOCK signal; a i-th selector (50 i ) receiving the i-th bit of said parallel data (i = n-2, n-3, ..., 2 and 1) as the first input and the output from the i+1th latch circuit as the second input and selecting either of them for output according to said inverted LOAD signal; a i-th latch circuit (51 i ) latching the output from said i-th selector (50 i ) in response to said CLOCK signal; a first inverter (54) reversing the output from said first (i=1) latch circuit (51 1 ); a n-th selector (55) receiving the output from said first inverter (54) as the first input and the output from said first latch circuit (51 1 ) as the second input and selecting either of them for output according to the sign bit of said parallel data; a second inverter (54) which inverts the output from said n-th selector (55); a n+1th selector (57) receiving the output from said second inverter (54) as the first input and the output from said n-th selector (55) as the second input and selecting either of them according to a predetermined selection signal for output as the serial data in two's compliment notation; a first AND circuit (60) taking the logical AND of the output from said n-th selector (55) and said selection signal; a set latch circuit (59) being set according to said STORE signal and latching the output from said first AND circuit (60) in response to said CLOCK signal; and a second AND circuit (58) taking the logical AND of the output from said set latch circuit (59) and said sign bit of said parallel data for output as said selection signal. The parallel-serial data converter of Claim 4, wherein said n-lth latch circuit (51 n-1 ), said i-th latch circuit (51 i ) comprise D type flip-flops. The parallel-serial data converter of Claim 4, wherein said n-1th and i-th latch circuits are designed to operate according to the master/slave method with two D type flip-flops which make latching according to CLOCK signals of two different phases.

Inventors: MATSUMOTO YOSHIMI, MATSUMOTO, YOSHIMI, MATSUMOTO, YOSHIMI, C/O NEC IC MICROCOMPUTER
Applicants: NIPPON ELECTRIC CO, NEC CORPORATION
Application year: 1993
Main classification: H03M9
IPC codes: H03M9