combinational logic and verilog. xors and xnors xor
TRANSCRIPT
![Page 1: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/1.jpg)
Combinational Combinational Logic and Logic and
VerilogVerilog
![Page 2: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/2.jpg)
XORs and XORs and XNORsXNORs
![Page 3: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/3.jpg)
XOR
![Page 4: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/4.jpg)
XOR gates
![Page 5: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/5.jpg)
Cascading XOR gates
![Page 6: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/6.jpg)
Parity Parity GenerationGeneration
![Page 7: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/7.jpg)
74x280 9-bit odd/even parity 74x280 9-bit odd/even parity generatorgenerator
![Page 8: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/8.jpg)
Verilog for 9-input parity checker
![Page 9: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/9.jpg)
Structural Verilog for 74x280 parity checker
![Page 10: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/10.jpg)
Parity generation and checking Parity generation and checking for a 8-bit-wide memoryfor a 8-bit-wide memory
![Page 11: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/11.jpg)
Error-correcting Error-correcting circuit for a 7-bit circuit for a 7-bit Hamming CodeHamming Code
Exors for Exors for parityparity
see next slide
![Page 12: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/12.jpg)
Error-correcting circuit for a 7-bit Error-correcting circuit for a 7-bit Hamming CodeHamming Code
![Page 13: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/13.jpg)
Behavioral Verilog for Hamming error correction
This is the This is the same code same code as in last as in last slideslide
![Page 14: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/14.jpg)
Tree and Tree and Iterative Iterative circuitscircuits
![Page 15: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/15.jpg)
Fig.6.74. XORs in comparators
![Page 16: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/16.jpg)
Big OR functions
![Page 17: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/17.jpg)
Iterative combinational Circuits
![Page 18: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/18.jpg)
Iterative Iterative ComparatorsComparators
![Page 19: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/19.jpg)
Iterative comparator of equalityIterative comparator of equality
![Page 20: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/20.jpg)
74x85 4-bit comparator74x85 4-bit comparator
Output of A Output of A greater than greater than BB
Output of A Output of A less than Bless than B
output of A output of A equal Bequal B
4-bit of A 4-bit of A and 4-bit of and 4-bit of BB
Input of A Input of A less than Bless than B
Input of A Input of A equal Bequal B
Input of A Input of A greater than greater than BB
![Page 21: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/21.jpg)
12-bit comparator using 74x85
Iterative Iterative circuitcircuit
![Page 22: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/22.jpg)
Verilog for 74x85Verilog for 74x85
Five versions of Verilog Five versions of Verilog comparatorcomparator
![Page 23: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/23.jpg)
Verilog comparatorVerilog comparator
![Page 24: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/24.jpg)
Verilog comparatorVerilog comparator
![Page 25: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/25.jpg)
Verilog comparatorVerilog comparator
![Page 26: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/26.jpg)
Verilog ComparatorVerilog Comparator
![Page 27: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/27.jpg)
74x682 8-bit comparator74x682 8-bit comparator
EQ and Greater
![Page 28: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/28.jpg)
74x682 8-bit comparator74x682 8-bit comparator
![Page 29: Combinational Logic and Verilog. XORs and XNORs XOR](https://reader038.vdocument.in/reader038/viewer/2022103022/56649d055503460f949d900b/html5/thumbnails/29.jpg)
Arithmetic Conditions (predicates) derived from 74x682 outputs