A semiconductor device comprising a plurality of basic logic elements provided in parallel, each of the plurality of basic logic elements comprising:
- one or more processors;
- and
- a memory storing instructions executable by the one or more processors to:
- perform calculation processing on an input signal, yielding a calculation result;
- self-diagnose whether or not there is an abnormality in the calculation result;
- retain or relinquish authority to output the calculation result of the calculation based on whether or not the abnormality has been self-diagnosed in the calculation result;
- in response to the authority having been retained, output the calculation result;
- and
- in response to the authority having been relinquished, not output the calculation result.