[
P
i
c
k
t
h
e
d
a
t
e
]
[Type the document tle]
!
Các bước thc hin:
!"#$%&'%(&)*%+%&,-./
-./
!"#0,+&1&&,&(&2-3).34%&,5%6&
0%&,5%6&,7/
!89$%0,+&1&&:;2<%&(&,=3>%$%
%,3>%&(&2?%,1@1&
!8,ABA4&,&,0%2C.D&$&(&34%4&,1&-EF!
!EFEF!EF!EF!/
!GA&,)*%H%,'#,I%4&,1&<%%'%%J
i
c
k
t
h
e
d
a
t
e
]
[Type the document tle]
"'())%*+, /.0.1&
+ Biu thc logic theo dng chun tc tuyn ( OR-AND ):
Z [
Z [ [
Z [ [
Z [ [ [
+ Biu thc logic theo dng chun tc h%i ( AND-OR ):
Z-[[[/-[[[ /-[[ [/-[[ [ /-[
[[/
Z-[[[/-[[[ /-[[ [/-[[ [ /-[ [[
/
Z -[[[/ -[[[ / -[ [[/ -[ [ [/ -
+ Đ'u ra K:
∑
=
)10,9,8,6,5(K
và điều kiện ràng buộc
∑
=
0)15,14,13,12,11,7(
Z - / [ - [
/
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z\BAL$9$%=Z
+Đ'u ra L:
∑
=
)10,9,8,6,4(L
và điều kiện ràng buộc
∑
=
0)15,14,13,12,11,7(
SVTH: Lê Anh Huỳnh Nhóm 8A Page 3
∑
=
0)15,14,13,12,11,7(
Z [ /
[
Z
Z
Z
Z
Z
Z
Z\AL$9$%=Z
+Đ'u ra N:
∑
=
)10,8,5,3,1(N
và điều kiện ràng buộc
∑
=
0)15,14,13,12,11,7(
Z- [ / [ - [
SVTH: Lê Anh Huỳnh Nhóm 8A Page 4
[
P
i
c
k
t
h
QQ Q Q
QQ
Q
Y Y
Q Y Y Y Y
Ss
A
BC
[
P
i
c
k
t
h
e
d
a
t
e
]
[Type the document tle]
8X$%&^0,+&9$%=Z[
+Đ'u ra M:
8X$%&^0,+&9$%=Z [
+Đ'u ra N:
t
e
]
[Type the document tle]
8X$%&^0,+&9$%=Z [ [ [
"*=, !
4>?1=
+Thi.t k. với các biu thc đ'u ra dng OR-AND:
Z[
Z[
Z [
Z [ [ [
+Mch:
SVTH: Lê Anh Huỳnh Nhóm 8A Page 7
[
P
i
c
k
t
h
e
d
a
t
e
]
[Type the document tle]
a
t
e
]
[Type the document tle]
^%`%%Q&^0,+&9$%2$,= Z [
a,:2?%,2$,=
Z Z Z Z-[/ -[[/
+X3t b4ng K đ'u ra L:
^%`%%Q&^0,+&2$,= Z
a,:2?%,2$,=
Z Z Z-[/-[[ /
+X3t b4ng K đ'u ra M:
SVTH: Lê Anh Huỳnh Nhóm 8A Page 9
QQ Q Q
QQ Q Q Q Q
Q Q Y
Y Y Y Y
Q Y
QQ Q Q
QQ Q Q
Q Q Y Q
Y Y Y Y
Q Q Y
[
P
i
c
k
t
h
e
d
a
t
e
]
[Type the document tle]
^%`%Q&^0,+&&:2$,= Z
Ph đnh đo hm:
Z Z Z- -[/
+Thi.t k. mch với các biu thc dng AND-OR:
Z-[/-[[/
Z-[/-[[ /
Z-
Z- -[/
+Mch:
SVTH: Lê Anh Huỳnh Nhóm 8A Page 11
K L M N
[
C
D
[
P
i
c
k
t
h
e
d
a
t
e
]
[Type the document tle]
941>?1>&
+ Phủ định 2 l'n biu thc dng AND-OR của các đ'u ra ta c=
dng NOR-NOR:
Z-[/ -[[/Z Z
Z-[/-[[ /Z Z
Z- Z Z
SVTH: Lê Anh Huỳnh Nhóm 8A Page 13
A
B
C
SVTH: Lê Anh Huỳnh Nhóm 8A Page 14
K L M N
A
B
C
D
B
C
D
[
P
i
c
k
t
h
e
d
a
t
e
]
[Type the document tle]
Z Z
Z Z Z
Z[[ Z Z
Z [ Z Z
+Mch:
#include<stdio.h>
main()
{ int a,b,c,d,k,i=0;
printf("BANG CHUYEN MA BCD 7421 => BCD 2421");
printf("\n\n\n");
printf(" \n");
printf("| STP | BCD7421 | ==> | BCD2421 | \n");
printf(" \n");
for(a=0;a<=1;a++)
for(b=0;b<=1;b++)
for(c=0;c<=1;c++)
for(d=0;d<=1;d++)
{ k=8*a+4*b+2*c+d;
if((k>=11)||(k==7)) continue;
printf("| %2d |%2d%2d%2d%2d | ==> |%2d%2d%2d%2d | \n",i,a,b,c,d,
(b&&d||b&&c||a),(a||b&&!d),(a&&d||b&&d||!b&&c),(!a&&d||a&&!d));
i++;
}
printf(" \n");
getch();
}
341?>&
#include<conio.h>
#include<stdio.h>
main()
{ int a,b,c,d,k,i=0;
printf("BANG CHUYEN MA BCD 7421 => BCD 2421");
printf("\n\n\n");
printf(" \n");
t
e
]
[Type the document tle]
#include<conio.h>
#include<stdio.h>
main()
{ int a,b,c,d,k,i=0;
printf("BANG CHUYEN MA BCD 7421 => BCD 2421");
printf("\n\n\n");
printf(" \n");
printf("| STP | BCD7421 | ==> | BCD2421 | \n");
printf(" \n");
for(a=0;a<=1;a++)
for(b=0;b<=1;b++)
for(c=0;c<=1;c++)
for(d=0;d<=1;d++)
{ k=8*a+4*b+2*c+d;
if((k>=11)||(k==7)) continue;
printf("| %2d |%2d%2d%2d%2d | ==> |%2d%2d%2d%2d | \n",i,a,b,c,d,
!((!a&&!b)||(!a&&!c&&!d)),!((!a&&!b)||(!a&&!c&&d)),!((b&&c)||(!
c&&!d)||(!a&&!b&&!c)),!((a&&d)||(!a&&!d)));
i++;
}
printf(" \n");
getch();
}
94)D1>&
#include<conio.h>
#include<stdio.h>
k
t
h
e
d
a
t
e
]
[Type the document tle]
{ int a,b,c,d,k,i=0;
printf("BANG CHUYEN MA BCD 7421 => BCD 2421");
printf("\n\n\n");
printf(" \n");
printf("| STP | BCD7421 | ==> | BCD2421 | \n");
printf(" \n");
for(a=0;a<=1;a++)
for(b=0;b<=1;b++)
for(c=0;c<=1;c++)
for(d=0;d<=1;d++)
{ k=8*a+4*b+2*c+d;
if((k>=11)||(k==7)) continue;
printf("| %2d |%2d%2d%2d%2d | ==> |%2d%2d%2d%2d | \n",i,a,b,c,d,
!(!(b&&d)&&!(b&&c)&&!a),!(!a&&!(b&&!d)),!(!(a&&d)&&!(b&&d)&&!(!b&&c)),!(!
(!a&&d)&&!(a&&!d)));
i++;
}
printf(" \n");