Combinational Logic and Verilog. XORs and XNORs XOR.

29
Combinational Combinational Logic and Logic and Verilog Verilog

Transcript of Combinational Logic and Verilog. XORs and XNORs XOR.

Page 1: Combinational Logic and Verilog. XORs and XNORs XOR.

Combinational Combinational Logic and Logic and

VerilogVerilog

Page 2: Combinational Logic and Verilog. XORs and XNORs XOR.

XORs and XORs and XNORsXNORs

Page 3: Combinational Logic and Verilog. XORs and XNORs XOR.

XOR

Page 4: Combinational Logic and Verilog. XORs and XNORs XOR.

XOR gates

Page 5: Combinational Logic and Verilog. XORs and XNORs XOR.

Cascading XOR gates

Page 6: Combinational Logic and Verilog. XORs and XNORs XOR.

Parity Parity GenerationGeneration

Page 7: Combinational Logic and Verilog. XORs and XNORs XOR.

74x280 9-bit odd/even parity 74x280 9-bit odd/even parity generatorgenerator

Page 8: Combinational Logic and Verilog. XORs and XNORs XOR.

Verilog for 9-input parity checker

Page 9: Combinational Logic and Verilog. XORs and XNORs XOR.

Structural Verilog for 74x280 parity checker

Page 10: Combinational Logic and Verilog. XORs and XNORs XOR.

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.

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.

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.

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.

Tree and Tree and Iterative Iterative circuitscircuits

Page 15: Combinational Logic and Verilog. XORs and XNORs XOR.

Fig.6.74. XORs in comparators

Page 16: Combinational Logic and Verilog. XORs and XNORs XOR.

Big OR functions

Page 17: Combinational Logic and Verilog. XORs and XNORs XOR.

Iterative combinational Circuits

Page 18: Combinational Logic and Verilog. XORs and XNORs XOR.

Iterative Iterative ComparatorsComparators

Page 19: Combinational Logic and Verilog. XORs and XNORs XOR.

Iterative comparator of equalityIterative comparator of equality

Page 20: Combinational Logic and Verilog. XORs and XNORs XOR.

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.

12-bit comparator using 74x85

Iterative Iterative circuitcircuit

Page 22: Combinational Logic and Verilog. XORs and XNORs XOR.

Verilog for 74x85Verilog for 74x85

Five versions of Verilog Five versions of Verilog comparatorcomparator

Page 23: Combinational Logic and Verilog. XORs and XNORs XOR.

Verilog comparatorVerilog comparator

Page 24: Combinational Logic and Verilog. XORs and XNORs XOR.

Verilog comparatorVerilog comparator

Page 25: Combinational Logic and Verilog. XORs and XNORs XOR.

Verilog comparatorVerilog comparator

Page 26: Combinational Logic and Verilog. XORs and XNORs XOR.

Verilog ComparatorVerilog Comparator

Page 27: Combinational Logic and Verilog. XORs and XNORs XOR.

74x682 8-bit comparator74x682 8-bit comparator

EQ and Greater

Page 28: Combinational Logic and Verilog. XORs and XNORs XOR.

74x682 8-bit comparator74x682 8-bit comparator

Page 29: Combinational Logic and Verilog. XORs and XNORs XOR.

Arithmetic Conditions (predicates) derived from 74x682 outputs