Sie sind auf Seite 1von 2

Decoder:

Assignment: Implement 2-to-4 decoder using basic gates.

Theory:

Decoder is a combinational circuit that has n input lines and 2n output lines. One of these
outputs will be active High based on the combination of inputs present, when the decoder is
enabled. That means decoder detects a particular code.

In 2-to-4 decoder, there are two input lines (A0,A1) and four output lines (D0,D1,D2,D3).

Circuit Diagram:

Truth Table:

Inputs Outputs
A1 A0 D3 D2 D1 D0
0 0 0 0 0 1
0 1 0 0 1 0
1 0 0 1 0 0
1 1 1 0 0 0
Truth table of 2 to 4 decoder
Requirement: IC 7408, IC 7404, Wire, Digital Trainer Kit.
Priority encoder:

Assignment: Implement 4-to-2 priority encoder using basic gates.

Theory:

A priority encoder provide n bits of binary coded output representing the position of the
highest order active input of 2n inputs. If two or more inputs are high at the same time, the
input having the highest priority will take precedence. Internal hardware will check this
condition and priority is set. A 4-to-2 priority encoder takes 4 input bits and produces 2
output bits. D3 gets highest priority and D0 gets lowest priority. Output line V indicates
validity of ouput line Y0 and Y1. Here, V=1 indicates valid output.

Circuit Diagram:

Fig: Logic Diagram of 4 bit priority encoder

Truth Table:

Truth Table of 4 bit priority encoder

Requirement: IC 7408, IC 7404, IC 7432, Wire, Digital Trainer Kit.

Das könnte Ihnen auch gefallen