You are on page 1of 23

ENGINEERING COLLEGE BHARATPUR

(AN AUTONOMOUS INSTITUTIONOF GOVT. OF RAJASTHAN)


(INSTITUTION UNDER THE AEGIS OF ENGINEERING COLLEGE SOCIETY BHARATPUR)

INDEX
S.No. Date -Grade Signature
Experiment

gades osag vADLueeg


Desgn and simo.tes 2Ypedder
+ ? enoderand

3.De slan and smulak y


andJk
JHDL/uela
Yesnaud Smlale
gads

.
Date
Engineering College Bharatpur Exp. No.
Page No...
(AN AUTONOMOUSINSTITUTION OF GOVT. OF RAJASTHAN)
Name..lanbaay.

lAim Desyn and Sirmulate all the logi gates with


tws inputa using VADL JVelog
Appatu Kequiçed xilliax Spatan 3faPA
Xiliny TSE SMolertoxtonl

A og'e gades is idealized c physcal device inlementha


-a, Ballean hneton hat i it pextayms alogical
pexatisns Oh neOY oYe
Binay nputs and paduce

AND Gnate
A
A
B

foy ANn (nete


edule andg CAB)
inpt A, 8

endaodule
Waveomm of AND Gate

landg- tb)A
/and|8
'h1
/and g- tb)y

Waave tsr ofNorhate

fnetgtbJA
lhotg- tb}y

WanetoM R bate

fovg -tB|A
B L

lovg-b|y
Engineering College Bharatpur Date
Exp. No.
.NAUTONOMOUS INSTTTUON OF GOVT. OFRAJASTHANY Page No.

Name....aMA.
Velog test bench pagaanm br AND,Aate
moduleandab

wWieY
Laudg and gate (oAlA)B(B) y):
intial begin
A='bo: B=b8

inish

input A, B
Dtput
Waveba KAND thate

/Innandg
andg- db|B
as)A A

|nand

Wavetoym NoR bade

/norgtb/A
tNG
Engineering College Bharatpur Date
Exp. No..
(AN AUTONOMOUS INSTITUTION OF GOVT. OF RAJASTHAN)
Page No.
Name,

-
fgzam
medule not (ABy)
iaput A

assign y
endodule

NAND nate Nog bce


A

B
y A+K

Iroth able
A_B
IA LBIy

Module
aodule nand a CAB y) Input A B
1nput A.B
otpt y
y = vA1B),
assign y= AA&)) assim
engnodule
endmodu
ENAo,
AL Yeg
decode2to.dh module
endmodule
essign
AnAD); (ENE
A1 assign
D2
L&NAD
DeD3 Do,D, Duput
AO,AI9 EN, Input
(EN,AD, 2to-4d codex module
de
D9
D3); Al,D0D
inei Detput
inpod tooConsitsei henee
t Qutputs
and ines
hasxy
tss SinaulatilinyTSE illinx Seguired Appaus
3FPbaA Sparetay
using
Simdade and sign De Ai’m
ydecodex 9to
encode 2to3 Ne-2 ExpeiMen
Name,
IANAUTONOMOUS
INSTITUTION
RAJÁSTHAN)
No.. Page OFGOVT.
OF
Bharatpur
No. Exp.
College
Engineering
Date
plock bragvm Ao Ay
itrestt

’Do

Decode D,
D
EN

EN
Tretntble94 Deeder
EN Iputs AO Do
D

%I3 Encede
Block Daargn ryt dessu

Encodey
pots
Engineering College Bharatpur Date
Exp. No.
RAJASTHAN) Page No
(ANAUrONOMOUSINSTTTION OF GOVT. OF
Name

decadex. 9to decodex (

inhial begin

1DEN= t'bl A= l'b| A0 =1bo

end

8'sto3 encodex
Foy an g tog binazy encodéy wh tnats IOTI the
ogic expresve Ahei outputs Yo yo ane

Module encodexg to (input 7:0]totput e 03}

endmodule
813
Encodey thrth Tae
Yol

Desyn
Block bragrq Do

iaputs
Dyn
D

S SI so
Date
Engincering College Bharatpur Exp. No....
INSTITUTION OF COVT. OF RA.JASTHAN) Page No.:
(AN AUTONOMOUS Name.

tebench for gxa enodex


Vexila
moduleCncodexto8-Ab

encodex9to-3 encodey(IT)ycy)
indial begin
T= b0000 0001

0T=3' b0001D0o0;
#i 0 T b 0400000

end

Design t Mulktiplexez
Btol motiplexey Consists of eigkt data inpot. bo thsayh
thee Select ineSa thvo ug h So Single
Outputiney
solleau equadtaa f the outpud
Freut hTable

Seleot Data npos


output
So
S Do

D2
Date
Engineering CollegeBharatpur Exp. No.
RAJASTHAN) Pagé No..
(OF GOVI. 0F
AOTONOMOUS INSTITUTION
(AN

testbench Code
Name
"Tanma
module mux 2 l b
moyle mux Case
D:
yeg Do, DI, D2 ,D. Du, Ds,DL
aloe
begin Yeg
Case (s)
9mexCasoloo) -b1, Da(Da), 0s(o),
3 b000:y =D0
-Dubu)Ds(05), Da(oc)p(o).
indtal begia

OSr00|

delau!y tk0;
endease Do, D,p1,0,,Dy, Ds, D, D] $randor 2.3;
end
endaodule
Date
Engincering College Bharatpur Exp. No.
RAJASTHAN) Page No.
(AN AUTONOMOUS INSTITUTON OF GOVT. 0F

Name..laMMay.
A Design and sidae h.Land k tlipHsp ini ÜHDI
4kenileg

Thesry
Ihe Dtype ie fbp emedres the ndetetezkanale pasl
that eist when boh npatsto
hok o_as cloekedesEE ara h
The Schaae tdenlcal to a RsEE ept th at au i
Awefte is used
inpud
module dH - Syneeret
data! Data inqut
lkl| ock inpu

inpud datatlkeset i

always Q Cros edge clk)


t

Ck

Qnes
-

cÈke!
ntl
k On
Date.
Engincering College Bharatpur Exp. No.
RAJASTHAN) age No.... 1
(AN AUTONOMOUS INSTITUTION OF GOVT. OF
Name TaM. May.

(rcset) begin.
4 bo
end ele begin
ehd
endedale

he toaale [) £f has acleck heut Lahieh Cqoses the


Dutput stale chauged tr eash clock palse T n
hs aciye state

Modele Snt-eset
dota,ll Data inpt
eset, Aeet inpat
4

alay (pasedge e ck)


|'b0;
Date
EngineeringCollege Bharatpur Exp. No...
RAJASTHAN) age No......
(AN AUTONOMOUS INSTITUTION OFGOT. OF
Name
ToMMaY.
end olse tt ldata) begin
end
endmodule

he Jk fELs a yeinementat e AsFEmthat the


ondederaned stale of te A yee
npets Jand k behave ke ins SandRto et aud yeet
eleare Ep, The iaput kiarcked. tar Set atd te

alisoystasedoe clk)

begin
end
ele beginCase (J,k)
b0o:0«50}/ no choam1e

ndCase
"TouthTable
NoT gade Tnpot

nmos

NANDgateosot
ruth Table

nput

y=4b
Date
Engineering College Bharatpur Exp. No....
(AN AUTONOMQUS INSTITUTION OF GOVT. OF RAJASTHAN) Page No. 1.
Name
o.aAdy.
A
Cxpenment Alo4
Desigand Stelae alt Ahe lost gates CNoT,NAN)
and
hpats in cMos TeohvelayY

herg ’NcOT Gae


Ie NoT Brhvet tunetan ts oten eonsidesd
sthe Shple s Bollem expsssfou

eslog tade -

module Cmos not cx,y)

Supely wdd i

fmos P (Yvdd,X)}
indial begin
endnodle
tet beneh
medole benios no end
e

en olb ole
Symbol NAHDqte

a.b
(AN EngiAUTONOMOUSneerinINgSTYTUTIColOlNege Bharatpu Date
Exp. No.
O GOVT, OF RAJASTHAN) Page No,

NAND
Nand
nate Name. lanwMaY
. . . .

Called
us'ng 9 pallel
9Setes conneated nmo
Connetdpmos and
Expreso olp
Fiab)
Veleg Qode
module Cmosnand 2(
ingut a,
fnpot b
outputt
wire wn
Supplyvdd

Cmasnamd9 ns (A,a,b)
fmos ra dd,b) intlal begin
a) Ta,b]= 2'b00)
#5o b)
mes ng (tan, b)
Pndmodole
Testbench end ntat
medale tbemasnand2 tontyhmen
reg a,b; End modyle
NoR gade Cirl

a b

a
Date
Engineering College Bharatpur Exp. No..
(AN AUTONOMOUSINSTITUTION OFGOVT. OF Page No.
RAJASTHAN)
NoR trote Name..MMAAY.
NoR is Universal gate.NoR togie dqte Cmos
ere's
Exprestan of outeut
ab)
yeslog ode
motoleNORC input a,
input b
butputf
Cane wp

Sopply bgnd y Cmosnoy 2 ng £,a,5)


tndtal begn
#so Ab]=abal
nMes he Ergndb)}
endmodele
Test bench end
yodele bemshex 2;
monto (thime ax b,bs).b
Endmadele

You might also like