Patent attributes
The present invention provides a semiconductor device capable of detecting illegal data in secret data communications. A semiconductor device that transmits and receives data includes a specific bit extraction block that extracts first data from transmission data in accordance with a first rule, another specific bit extraction block that extracts second data from reception data in accordance with a second rule, and a bit pattern accumulation buffer that accumulates the first data and the second data. A scramble pattern used when scrambling the transmission data is generated by a combination of the first data and the second data accumulated in the bit pattern accumulation buffer.