+ All Categories
Home > Documents > Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of...

Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of...

Date post: 24-Dec-2015
Category:
Upload: bertram-allison
View: 237 times
Download: 3 times
Share this document with a friend
Popular Tags:
23
Encoder Section 4.10
Transcript
Page 1: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Encoder

Section 4.10

Page 2: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Outline

• Review: Sum of Products• Encoder• Priority Decoder• Application of Priority Decoder

Page 3: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Definition of an Encoder

• 2n input lines• n output lines• Performs the inverse operation of a

decoder

Page 4: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Review: 3-to-8 Line Decoder

Convert binary information from n input lines to 2n unique outputlines.

This particular circuit take a binary number and convert it to an octal number.

Page 5: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Review of ES112: Sum of Products

𝑓 1=𝑥 𝑦 𝑧+𝑥 𝑦 𝑧+𝑥𝑦𝑧

Page 6: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Hardware Implementation

Page 7: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Example of 8-to-3 Encoder

Page 8: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Application of 8 x 3 Encoder

The angular or rotary position of a compass is converted into a digital code by an encoder and inputted to the systems computer to provide navigational data

Page 9: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Implementation of an Encoder

• Focus on one output at a time

x=D4+D5+D6+D7

Page 10: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Implementation of an Encoder

• Focus on one output at a time

y=D2+D3+D6+D7

Page 11: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Implementation of an Encoder

• Focus on one output at a time

z=D1+D3+D5+D7

Page 12: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Uncertainty of an Encoder

• What if all the input lines are 0?–Use a valid bit

Page 13: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Model an Encoder in Verilog

input : D, an array of 8 elementsoutput: Y, an array of 3 elementsV, a valid bit to check for 00000000 input.

Page 14: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Module Templatemodule module_name ( , , )

endmodule

Input, outputwiresreg

Program Body

Page 15: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Choosing a Module Namemodule module_name ( , , )

endmodule

Input, outputwiresreg

Program Body

Page 16: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Choosing a Module Namemodule module_name ( , , )

endmodule

Input, outputwiresreg

Program Body

x=D4+D5+D6+D7y=D2+D3+D6+D7z=D1+D3+D5+D7

Or all elements of D

Page 17: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Output File

D={D0,D1,D2,D3,D4,D5, D6,D7}Y={Y0,Y1,Y2} (least significant to most significant}

Page 18: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Output File

The output with a higher subscript has a higher priority than an output with a lower subscript.

Page 19: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Priority Encoding

• What if more than one input line are high?–Use priority—certain bits are more

important than other bits

Page 20: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Priority Encoder

Not a Valid State

Page 21: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Karnaugh Map

1

Page 22: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Karnaugh Map

Page 23: Encoder Section 4.10. Outline Review: Sum of Products Encoder Priority Decoder Application of Priority Decoder.

Circuit Implementation


Recommended