0% found this document useful (0 votes)
9 views54 pages

Plezu Tun Multiplexer Implementation

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views54 pages

Plezu Tun Multiplexer Implementation

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

o

muliplexu:
Quo ceuple two to

Ap
Yo

Y3
Bo

B
stsle),

Enable
E S y output
c l o's

hele t B

*]*) M?plezu cruits can be combin with


selection
prouide multiple ln put bik
slect ?npts t pr0uie
*7 Fig aboue showA quacuple
actuple two to ene lin

The crult has input A 'e' Lach o


which of bts. 4 muitplexwJ. Output Yo con
be selected
Bo input.
jrom Ao in put,
Output Yi can be sele ctecd Comes

A, inp ut B, inpu
jrom
Outpt Ya 'cauu be alete
j1om Aa Input BR B input
*1 Output Y3 cQn be helectecd COmu

77om As inpt Ba inpt


E-0, S-0 the
output
HA" inputs haue a patu
to tu
S= 1 the
E:0 sou 'B' nps
patlu tu the bou outpu,
E:1 "sve all

outputs

Boolon function Smplimentat'on 2g


sing multiplew

1 Impl rnnt jotlouwing booluau {undon uing


8:1 mutizu
F=m C,a, 3.6, )

A BC y Data i/p
Io
1

101
1
1

Smplemunt 7otoutng booleon tun tion wang


Hi! mwlipleu
m( , 2,3.6,7)
MEVC
5 MEV Sata

1 Io
1
1
1

Ig
O|

1 S,
gncl (A) (8)
S
Iy
I
3,4. 24,5, C0,I, MEV
wing ucion oluowing Em(wxyz)= F
Smplement
the
4Q]
te) (B) CA) VCc. qna
1
I+ D
Is
13
D D
Io
I,
oDrololo
Io
D
ABclD)F
MEV
H,U,
a, =ll,
3, EABD)
l5)L3,14,
wing iplu mult 3:1
Smplement
the
36)
The slate qate:

input(A) Y otput
contol (e)
y: (Do
Y High impeden e i< e:o
*] Th thaee Atat gate have nput, output
and ot
conlrol agnal
*] Two 6t ots
The thircl state callut high enmpdtne
Atate whicb
behauu ke open c&cit
il The clrcult hs loqte kignzicance
iíl The out put o the clrt cann 5t be olftcta
by the lnput.

Constut a? 1 mulfplex aing


thre at ot gati;

A
copyui)

slet
Slet o

A
’ Conatuct thu stau qal
andl decod

Io

A
D

Alect ilp

HH

1
1 1

Construt 8:1 the atatu gatu


and decoolu

I,

A
3:3
deccu

D
ktect ?lp
A BC

Ia

IG

HOL Implmentation :
cOou a to H LEne lecodos.

qoat vutlo,atniption .
level
Tute tabu :
Dlo E AB
Q-
A EAB
X X 1
EAB -
o
--

Snable

D.

Cooe:
mocdule decodes a to H CD,A,B. enable):

input
nput
A,B;
enable ;
A-not B-not, enable_not;

not CA-not , A);


not 42 CB-not , B);
not Cenable- not , en ablu):
4
(D[ol, Anot B-not, enable-not);
nand s (D[J, A-not BsKOt, Lnable -not)3
nable- not):
nond 46 (D[2], A-at, B-not. nable - noi):
nano A
Vuilog code o1 ato 4 decodee uinq odata
moe

module ducod &to4 (D. A, B, nabu):


Output Co:3)D:
2nput A,B
nablu ;

auiqn Dli] ~(leE) (~A) (B));


CMign Dla): ~llE) 4 CA) ¢ (~B));
amiqn
endmodule

t DL 4 -b addu
apple cauy àdu.
vuilog
B A Ba Aa B, A

C4
FA EA EA Co

S,

Hay odolu Hoy oacle

code
module
half -adou C5, C, X. y):
Otput S,c
input
XOR CS, x, y):
and C C, x, y);
end module
module Ful-adolu c s.C,, y, )3
input
S,C;
ne) 61,C1, Ca;
nuthu
Hay- addua HA 1CS1,C4, x, Y);
HA aCS, C,S1
51 , ) ;
OR 9l (C,Ca,C1):
end mooule

moclule Rpple- cary ( s1, CyiA:B. Co):


Out pui (3:0]6;
Ot put CH, [Link]
input Cai0] A,:
input Co
wie C1, Ca,Ca (6)
Full-adu FAOCS[o), Ci , Alo], 6lo) , co);
Full-adls EA1(S[1] , Ca ,Al], Bl), C1);
Ful- a d u FAa(S(2]C3 .Ala], Bl2 , ca);
Fl-addu F A3(5(3), Cy A31, 3(30, C3);
endmodle
vu~log HDL
behauiouol model.
&31,
and
muipl,
2:1 muX
module muxls. i. y):
input s;
input :0]:;
utput yi
alwaya @*)
beqin
CarLCs)
1'b0: y [o; 1 i1
1'b1 : :
);
enodcase
end
endmooule

module mux(s i, y):


lnput 81
input
L3
Output

always @C*)
CaueCs)
S, So

a'b10 1

'bii i(3]:
endcau
Lnd
endlmodule
module mur ls, i, y);
input Ia:075:
TTTTTT
input [ t:0]i;
output y
aways @C*)
beqin
Caue Cs )
SA SiSo

3'6000 :
3b001
3'b0LO
360I
3bl00 i3
3'bl0I y i(5);
3b I0
3blL
endcou
end
endmodule
vuiog
data (low modl.
coce
con ditionat tad tmus)'

mocule mUx to 1 (y, o, 1 Aleet):


outpw y:
input
input Aleet;! Atatemunl
anign y : Caeleu)? : ; conditionat
|
con dlti on 9 tu, Fast
end moduue xp

select :1,

dota (low
vuog
moct
HDL

willu conoe tional ntatmnt

-o

,,[Link]{so ):
modutu mUx to 4 (Y. o,
Dtput
input
input B,Bo

eudmodle
Encoclu l4:a)

X
Do D Da
Po

prlonity
encodu X

moduu prlorlty encooulo. y1:


inpu [30]D; 1| [Link], Oa, D3
out put [1:o) y:

Clwoya @ Co)
bqin

ueil CD[2]=)y=2'bio;

end
endmodue

gequutial Ciruiti
Input Combinatinal output
mmotY
emnt

in t
storc Vele
pruut inpud Vo

You might also like