HomeAboutBlog

Digital Logic Lab (2110263) - Lab 2

สรุปเนื้อหาวิชา Digital Logic Lab (2110263) ภาคเรียนที่ 1 ปีการศึกษา 2567

Written by RuffLogix on September 13, 2024

# CU Intania x CP # 2110263
Digital Logic Lab

Table of Contents

Truth Table

Truth Table คือ ตารางที่ใช้สำหรับแสดงความจริงของฟังก์ชันตาม Input ที่รับเข้ามา

AABBCCMinterm\text{Minterm}Maxterm\text{Maxterm}f(A,B,C)f(A, B, C)
000000m0=ABCm_0 = A'B'C'M0=A+B+CM_0 = A+B+C00
000011m1=ABCm_1 =A'B'CM1=A+B+CM_1 = A+B+C'00
001100m2=ABCm_2 = A'BC'M2=A+B+CM_2 = A+B'+C11
001111m3=ABCm_3 = A'BCM3=A+B+CM_3 = A+B'+C'11
110000m4=ABCm_4 = AB'C'M4=A+B+CM_4 = A'+B+C11
110011m5=ABCm_5 = AB'CM5=A+B+CM_5 = A'+B+C'00
111100m6=ABCm_6 = ABC'M6=A+B+CM_6 = A'+B'+C00
111111m7=ABCm_7 = ABCM7=A+B+CM_7 = A'+B'+C'11

โดยจำนวนแถวจะเท่ากับ 2n2^n โดยที่ nn คือจำนวนข้อมูล Input

Sum of Products (SOP) หรือ Min-terms

เราจะเลือกเฉพาะ f(A,B,C)f(A, B, C) ที่มีค่าเป็น 1 มาเขียนเป็น product term แล้วนำมา OR กัน

ตัวอย่าง

(ทั้ง 3 ตัวอย่างมีความหมายเหมือนกัน)

  • f(A,B,C)=(ABC)+(ABC)+(ABC)+(ABC)f(A, B, C) = (A'BC') + (A'BC) + (AB'C') + (ABC)
  • f(A,B,C)=m2+m3+m4+m7f(A, B, C) = m_2 + m_3 + m_4 + m_7
  • f(A,B,C)=Σm(2,3,4,7)f(A, B, C) = \Sigma m(2, 3, 4, 7)

Product of Sums (POS) หรือ Max-terms

เราจะเลือกเฉพาะ f(A,B,C)f(A, B, C) ที่มีค่าเป็น 0 มาเขียนเป็น sum term แล้วนำมา AND กัน

ตัวอย่าง

(ทั้ง 3 ตัวอย่างมีความหมายเหมือนกัน)

  • f(A,B,C)=(A+B+C)(A+B+C)(A+B+C)(A+B+C)f(A, B, C) = (A+B+C) \cdot (A+B+C') \cdot (A'+B+C') \cdot (A'+B'+C)
  • f(A,B,C)=M0M1M5M6f(A, B, C) = M_0 \cdot M_1 \cdot M_5 \cdot M_6
  • f(A,B,C)=ΠM(0,1,5,6)f(A, B, C) = \Pi M(0, 1, 5, 6)

Example

Sum of Products (SOP)

SOP

Product of Sums (POS)

SOP