Patent ID: 6999352

Claim:
A semiconductor device having a data inversion function in which data of a given cycle is compared with output data of a directly previous cycle to verify whether or not a majority in total bits constituting the data are switched and in which, when the majority number of bits of the data are switched, the data of said given cycle are inverted and the inverted data are output from a plurality of output terminals, said semiconductor device comprising: a plurality of data comparator circuits, each being provided in associated one of a plurality of paths on which a plurality of data are transferred in parallel, with an output sequence from the output terminal between said plurality of data being predetermined, and comparing temporally before and after data; a plurality of majority decision circuits, each receiving a plurality of comparison results which are output by the corresponding data comparator circuit, and the number of which corresponds to the number of said output terminals, and performing a majority decision of the comparison results received to output a decision result; and a plurality of inversion flag generating circuits, each receiving the decision result from the corresponding majority decision circuit and generating an inversion flag indicating that data is inverted and is output from said output terminals, based on the decision result; wherein the decisions of data inversion for a plurality of cycles are made in parallel.