0% found this document useful (0 votes)
139 views10 pages

CS2 - Practical Bifocal Computer Science HSC

Uploaded by

poojapa
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)
139 views10 pages

CS2 - Practical Bifocal Computer Science HSC

Uploaded by

poojapa
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
You are on page 1/ 10

DATE:

PAGE NO
Experi ment, lo 1

Aim: Draud the loai dia4ram of NOTAND, COR


qate write iheJqic, b.onlean e4uation o n d
uth able A\sD _calculate e ach sombination ot
Jpgic input
NOT Cate
Truthtable NOT Gade
o-Y = A
A Y R_ a Loqc I f A ist Hhen Y isfalse if A ís
Boolean Eaation YA £alhe thnn Y is t u
b Combinations of inpus
cae1 Tf A zo;then. A= O=
Cose 2 Tf A Hhan A =)=0
AND Gate:
Truth table AND ate
Y= A.S
A Y-A- a) loqc TfA is tnu and 8 is tmuthen Y is truu:
Conabiaaions pu
Soolean Eauation: Yz A-B
O
caAe L: Tf A-O, B-0 then A:8-0.0o
Cage I f A EO, G= Hhen A8 -0-1E0
Ce 3 T£ AE, 8-D Hhen A:R=l.020
Lage 4 IP A: 8=1 Hheb A R =11=L

3 OR Gate OR Gate
Taruth table :
a IDaicTf A s mu Ox 6 is mu taan Yis ne
YA+s b Cambinatians of iapus
A Y A+B S

B cage 1 Tf A=O,8-0 then At 8-O+0-0


C0ge 2 Tf A 0, B-, then At8 0t=
Boolean Euaion: Y =A+8 O Coe8 Tf A=lL 8:0 Hhen A8=+0E
then At8 =1
Lase 4Tf AEl, d=
DATE:
EX peiment No.2 PAGE NO

Ain: Dru the oaic diaacoo f NAND ,NO28


EX-ORqate riie Jhe Jogic bolean eaALation_
ond truth toble also calculate each combinahon
o ac inpud
NAND Gate:
Trth table:
NAND Gate
A- Y:A-6 2 Loqic IfA is tue and B is t e thern Y is falae:
8- A eY -6 ) eombinations_ inputt
CrNe If A: 0, 8 laen A.6-0.0 =O=1
Soolean tqualion: Y A.8 Cage 2 TE A= 0 8- then A B = 0:1-0EL
Cae 3:TE A=l8-0 then A 1 0 D=1
Cae 4'If A=l, B then A6 T T :0

eNOR Gate 2NOR Gate


Y A+B
Truth table a) Logic: If A is xue Bistrue then Yis ialge
A Y AtB bCombinations of inputs
Cose1: f A=o B=o than A+6=b-0 D =1
Boolcan Equation: Y A+B
CAe 2 I f A-0 e- then Á1B =T d
Case 3: Tf A= 8=0 then A+6 1+0 O
case 4 Tf A=, 6=l then A+8: 141= D

EX O Grat e
32EX-DR Gate
a Laaie TA is true Bis tnebut nnt baih;
Truth +able:
hen Y is mu
Y A8 Y: AOB bCanhinatiansDf Inats
case1 T£ A:0, =0then As 000 D
O Case 2: Tf A-0, 6-then A®B 0 =1
Boalean Equaion : AOR Cae3 Tf A=l, 80S t n B 100 =
Y- B+AB Case : TA , 8= then AO8 1
DATE:
PAGE NO:
Experimevut No. 3

Loaic dia4ram Aim:Drau the Jaaic diogam for Demorgan's


fisst Tuorem Wnte lruth able and baalean
ea uation Also calclate each combination
ai input
Boolean Equaion :
aDemorsan's Hirt Thihrtm
The complement of a Sum is easals o the
Tth Tble mnduct of cornplements

A+8 A.B bCombinationoinpu


Cage 1Tf A=0 and 8=!
LUS = A+g00
RHS =_A.B=0.0 =1-1= 1

CaLe 2:T A-0 and 8= Heh


LHS A+8 D+1 1=D
RHS A 0-T 1.o =o

e TE Aand S o, then-
LYS A+6
RHS A 6 T. o.1 O
Caue4 Tf A=1 and B hen
LHS 8 1t= T
RHS AB 1T 0.0 d
DATE:
PAGE N
Experiment NO 4

Aim: DTs the oqic diagram f o r Demoroe n


SeLond Theoem: Write uth table and
baalean equation AlsD Calcuate each
a)Logic dagre.
Combinntiom_ JDgi.c nput
A A B -o

Demnomaan's Setand henom:


bBoolean Eauehiom The LDmplemont of pnaunt e o tHhe
Sum d COmplaimouts
A 8
Cowhiuakions 0f inpudk
cTruth Table case 1 Tf A=0 and 8 0,Ahen.
LHS = A.B = 0.0 O
A A-B + RHS E
A+B=

caRe 2 H A0 ancd8=Lthen=
LHS = AB =
.1=
RHS = A +B = 0+1 +0=1

Cae 3 Tf A=l and 8-0 hen-


UHS A8 =

RHS A+ T+D 0+ =1

cage If A= and e= hen-


LHS A 8 1
RHS A+8 T+1 0+ D = O
DATE
perimert io 5 PAGE NO

AimDxad Hheicc aa ram for


)NOT usinaNAD
AND ina NAND
eugina ANO
Wntetruth toable and bonlean Eaion
NOT i AND Alsn calculate each combinatin lsoinput
Truth Tabla NOT u3Ing AND:
colar Epokion A combinatn inpu
LHSA RHS
RHS Coke 1 I£ A=0,the case 2 Tf AE, then
LHS A= O=1 LHS A T = 0_
RHS A :O =i RHS A : =0_

it sina6
AND using NANO
bTruth Table
Lambination of inputs:
Case :#A:0, 8-0, then cage 2 f A-oB:í Hwn
O
|LHS 66 0.0 =O HS AB O.
lenr, Eoon
RHSA:6 O:6-0 RHS A:B =. 0
Cse 3: Tf A=,G-0: ten case 4 Tf A=1, 8 l then

PHS A8 .6-0 RHS A8 1 =|_

2OR winq NAND


CombinaHan af inputs
h
e 1: If A-O,&:0, nan case 2 A-0, B=1then
bTruh Toble
HS A.B O.0 0 LHS AO 6.T
6 J RHS A+B 0+0 O =
RHS A 8 o+|
a 9oirnh C/1abitr O Co3 3: Tf A=L 8-0 t e n case a TfA:1, 8- t e n
LHS A 01 HS A.e 1
RHSAA 4o RHS A+ 1+1
DATE
Experimernt No.G PAGE N0.:

Aim Draud dhe loaic ooao.m for


a) MoT i ngNOR
) AND uing OR.
OR wina DL
NOT using NOR te huttable _ans aaalean esnahton-
AoYT Also Cal eulate each oinatan Jequc inpu
b) Trth Table NgT inqMoR
a) Boolean equation A LHS-A PHS A COmbination inpuss
A A
Cale 1: I f A:0, then COse Tf A=1 thn
LHS RHS.
LHS O =1 UHS A I=o
RHS A O :|| RHS A - 1E D
AND usin9 NR
9
22AND wna NOR
_Combinaion 0f inputs
caje1 fA=0, B0thtn Case 2: Tf A=0 , then
LHS= At8 LH S A+ õ+î O
bTruh Table RHS A 8 0.0 0 RHS A3 O.1 O
A At 6
BLHs- RHS= AB
a) Booeah eamation
At6 A B cae 21T£ A Aa0 then caie 4IE A=\,B1 then
LHS = RHS LHS A+8 +o O LHSAr TTe 1
RHS A:8 10 d RHS A 8 - 11 L
OR ing NOR:
Y- At 8 3 OR ung NoR
A+S Y= A+8B
Cambinaion of imputs:
coe 1:TH A20 G=0then case 2 T£ A=0, 8- fn
6TruthTable
a) Bogleah eauaion: RHS- A+8 CH 9 At 0+0 =O
A+e AtB A B LHS A+B RHS A+8 0 +0 - 0 RNS At8 0t|
LHS RHS
Cae3: Tf A=I B:0 then
LHS AtA t0= LHS AB = =
RHS AtB +0 ) RHS A 8 = 1t)
DATE

Experiment NO.7 PAGE NO

Aim: Dra logic diaaram hea halk adder


Waite the tiruth asla and boalenh equatan
Also calculate each conahinatl.on i c input
a) Jeaic diagram:
A B
aHalf adder
A half adder s uued tn adotoo cinale dit
binar numheri and TPIubs inta a 0 -d t Ounu.
C A:8
Adder onka by hmbinirg the bperations of
hacJogic aes ta he Simplest nm eina
lEXR and AND qate
Boolean Euaion
Carry C AB Compinations input
Sum S = AOB Cale 1 Tf A 0 and B -0,ha la
S = A O8 -O 0 -O
T r t h Table:
C A:B = O.0-o
8 e lam) stsum) case 2 Tf A0 and 6e1H a
O

O
O

Cage 8 T A-1 ano 8-0than

A 8 1:0 0

Cage 4 f B: and B hen


A8 11
C A B = 1:1
DATE: 1I
Experiment l0. PAGE NO.

Drt
Aim Loq C diaaram hol ubtroctor.
Orite the truth 4able_and bosle an eauahicn
a) Jogic dia4Yam Also calculteeach coubinaian nic m
A B

8A.B Haf Subtracor


The nalf Suhtractor u a Conhi nationa iTcut
wch J ed to perfomm Subtra chion hoo bits
D A®DB tuo inputs, A (minuund and 8C Subtraheno}
and oo 8utputs DLdiffenrme)_ande(harnw).
b)Sooleen Eaat1on b onmbl nafioMI MATR
Difference D = AB case 1 If A0 and B :0 then
Bomu = A-B DE AOB = o 0 - O
8 : A 8=

C)Truth Tab le case 2If A=0 _ad 8l hn


A D(Difference) BCBom) D=AG8 oD11_
8 AB -1 1

cOe 3 Tf A=land B=o;hen


D AD8 0EL
B A 8 10 0

Caye 4 Tf f: and = Hsh


D: AB 1 =O
B:A:8-1:1= 0
DATE I
PAGE NO.
ExeX1uent No.9

Aim: 1Dran J0ic diorsm fo fw_ Adder


Late uth table ond balean eaahion
Also calculate eaclk (pahinakian i c inpu
Jogic oiaram
A C
AB a F l addler
Ae+8C +AC A fladderadds tre e_eno-bit binar numbers_
tOO eperandd _and a caTTY bi t - The adder Duktou
tOO umbeS i 0 Sum and a_caTTy i t
ful adders ont made TM EX-0R AND and OR
AOB gates

SABOG
Conbinations nt inpus
caue 1Tf A:0 B-0, C= 0 Haen
S : A BOC =o 0 0 =O_
O+0+0 - O
C= AB+ BC* AC = 0.0 O0+O.O =

bBoolean esmai on
AC
Corry= C =
AB t BC +

ABB0 c thon
Sum S
cage 2: Tf A= 0, 8-0, C=1
S AO80c = 0 0 I = 1
0.0t0.l +0.1= 0+0 +0 -

CTuth Toble C AB +8C +AC

A B C Carry C Sum
(s) Cage 3: I f A=0, 8 l C 0 Hhen
0 S A8C = 0 1 0
+ 10+ . d 0+0+0 = O
O C AB-+ BC+AC =O =

0
cage4 T A:0, 8-1, C=15 hen
S A8c oO11 o
AB+ eC+Ac =O« + 11 +0.1 0t 1+0 =
C

ASo CDmplele thsecas


Cas 7
Erperi me t1o PAGEHO

Aim:Dru Jsaic dinorn, r ful athc


rHe dhe trust isble nnd rrleo, spai
Also calzulate eatl torbiratitr Jsaiinpu~
a) Jsgic diagram
:

aFul Subttoctor
Do
Bout AB+ Ain+8.8n
A fl subhractori a tombinatono) catt that
perforns Subhrachibn inunlvina thoebit ian
A(minue/nd)£ (Suhtrahendand BtnEormi-1n).
B.ein Ano ta0 Outputs as D (dfference) andBut Esrni-nu
A O8

bCobinahions inpuds i
D: A@B Bin Cose 1 If A:0, B=0 B:0 then

Bout- A 8+ ABin+ 68in o.o+ 6.o +0.0 O+0+ 0 =O.


bSoolean Euaon
Differene D = A® 8 8in
A8 + A.Bin + 6. Bin Case 2 If A =0 8 0, B1 Hn
Bonrou)-0ut: Bout
=

D A66 Bin06 091=


0+1+0=|
Bout =A8+H&n tBBin OOt 0.1+:
cTuthTable
D Diferhc
BBoow-out)
Case 3 Tf A:0, 8=l Bin 0 t
A in D A8 8in=01o=1
Bout 6 +R8in 8in 0 + O.01:0 I+0+O=

case 4If A-0, : , Bine1Hhen


D: A®B Bin= oG o
Bout-A6+ A 8in+ 8Bin = o14 6.1 + 1:1 = 1+1+1 =1
0
Cage S:
cage 6: ALO COmpete kae cageg
(age 7
CAJe

You might also like