Equality Detector Module M5.1 Section 6.1
Equality Detector XNOR X Y Z Z = !(X $ Y) X Y Z
4-Bit Equality Comparator FIELD A = [A0..3]; FIELD B = [B0..3]; FIELD C = [C0..3];
Bit Fields FIELD A = [A0..3]; FIELD B = [B0..3]; FIELD C = [C0..3]; A represents [A0, A1, A2, A3] B represents [B0, B1, B2, B3] C represents [C0, C1, C2, C3]
/******************************************************/ /* */ /* This is a 4-bit equality comparator */ /* using the ANDing of 4 XNOR gates */ /* */ /******************************************************/ /* Target Device: G16V8 */ /******************************************************/
C = !(A $ B) C0 = !(A0 $ B0) C1 = !(A1 $ B1) C2 = !(A2 $ B2) C3 = !(A3 $ B3)
Run WinCupl
.DOC File
4-Bit Equality Comparator
The GAL 16V GND Vcc I/CLK II/O I I I I I I I I/OE I/O GAL 16V8
Structure of the GAL 16V8 PLD
GA L 16V8 Feedback
4-Bit Equality Comparator End of.doc file
Question Expand the following CUPL equation for F: FIELD A = [A2..0]; FIELD B = [B2..0]; FIELD F = [F2..0]; F = !A & B;