Parity Checker and Generator
Parity Checker and Generator
Parity Generator
A parity generator can be implemented in VHDL using a GENERATE statement to instantiate a
series of XOR functions. For example, a 5-bit EVEN parity generator can be implemented with a
design entity having the structure shown in Figure 17.1. In general, each portion of the parity
circuit is described by the equation p(i) = d(i) p(i 1).
Parity Checker
A parity checker compares a parity bit from a parity generator with a parity bit created from the
original data applied to the generator. A parity generator can be modified to create a parity
checker. Figure 17.2 shows the circuit. In addition to the Exclusive OR equation given for the
parity generator, one more equation is required: p(0) = d(0) p
in
.
Procedure