SlideShare uma empresa Scribd logo
1 de 15
Basic Logic Operations
• Basic Logic Operations
– Several propositions combined form
propositional/logic functions
– Example: “The light is on” will be true if
• “The bulb is not burned out” is true and if
• “The switch is on” is true.

– Logical statement: The light is on if and only if the
bulb is not burned out and the switch is on
– The first statement (the light is on – basic proposition)
is true only if the last two statements (conditions) are
true
IS 151 Digital Circuitry

1
Basic Logic Operations
• Basic digital logic operations – NOT, AND,
OR, Exclusive-OR

IS 151 Digital Circuitry

2
Basic Logic Operations
– Features
• Inputs – are on the left
• Output – is on the right

– A circuit that performs a specific logic
operation is called a logic gate
– The true/false conditions are represented by a
HIGH (true) and a LOW (false)
• HIGH = TRUE = 1
• LOW = FALSE = 0

IS 151 Digital Circuitry

3
The NOT operation
• Changes one logic level to the opposite
logic level
• When the input is HIGH, the output is
LOW and vice versa
• The NOT operation is implemented by a
logic circuit called an inverter.

IS 151 Digital Circuitry

4
The AND operation
• Produces a HIGH output if and only if all
the inputs are HIGH
• If one input is HIGH and the other is LOW,
or all inputs are LOW, the output is LOW
• The AND operation is implemented by a
logic circuit called an AND gate.

IS 151 Digital Circuitry

5
The OR operation
• Produces a HIGH output when any of the
inputs is HIGH
• Otherwise if all inputs are LOW then the
output is LOW
• The OR operation is implemented by a
logic gate called an OR gate.

IS 151 Digital Circuitry

6
The Exclusive-OR operation
• Produces a HIGH output when one and
only one of the two inputs is HIGH
• The Exclusive-OR operation is
implemented by a logic gate called an EXOR gate.

IS 151 Digital Circuitry

7
Logic Operations - Review
1. When does the NOT operation produce a HIGH/LOW
output?
2. When does the AND operation produce a HIGH/LOW
output?
3. When does the OR operation produce a HIGH/LOW
output?
4. When does the EX-OR operation produce a HIGH/LOW
output?
5. What is an inverter?
6. What is a logic gate?
7. What is the difference between an OR and an
Exclusive-OR operation?
IS 151 Digital Circuitry

8
Basic Logic Functions
• The basic logic gates can be combined to
form more complex logic circuits that
perform many useful operations to build up
complete digital systems
• Some common logic functions:
comparison, arithmetic, code conversion,
encoding, decoding, data selection,
storage, and counting
IS 151 Digital Circuitry

9
The Comparison Function
• Magnitude comparison is performed by a
logic circuit called the comparator.
• A comparator compares two quantities and
indicates whether or not they are equal.
• Example: given two numbers, determine if
the numbers are equal, and if not equal,
which one is greater.

IS 151 Digital Circuitry

10
Arithmetic Functions
• Addition – performed by an adder; adds two
binary numbers (two inputs and a carry in) and
generates an output and a carry out
• Subtraction – performed by a subtracter; three
inputs: two numbers and a borrow input;
generates the difference and borrow out
• Multiplication – performed by a multiplier; have
two inputs, and an output (product)
• Division – performed by a series of
subtractions, comparisons and shifts; have two
inputs and two outputs (quotient and reminder)
IS 151 Digital Circuitry

11
Code Functions
• The Code conversion function
– Changes a form of coded information into
another coded form

• The Encoding function
– Converts information into some coded form

• The Decoding function
– Converts coded information into a
nonencoded form
IS 151 Digital Circuitry

12
The Data Selection Functions
• Multiplexer – switches digital data from
several input lines onto a single output line
in a specified time sequence
• Demultiplexer – switches digital data from
one input line to several output lines in a
specified time sequence

IS 151 Digital Circuitry

13
Storage and Counting Functions
• The Storage function
– To retain binary data for a period of time; e.g.
flip-flops, registers

• The Counting function
– To count events represented by changing
levels or pulses or to generate particular code
sequence.

IS 151 Digital Circuitry

14
• End of Lecture

IS 151 Digital Circuitry

15

Mais conteúdo relacionado

Mais procurados (10)

GCC 3-18-16
GCC 3-18-16GCC 3-18-16
GCC 3-18-16
 
MSE 141L_LAB1
MSE 141L_LAB1MSE 141L_LAB1
MSE 141L_LAB1
 
PLC
PLCPLC
PLC
 
GCC 2-26-16
GCC 2-26-16GCC 2-26-16
GCC 2-26-16
 
Redis - How to install, Keys and Lists commands
Redis - How to install, Keys and Lists commandsRedis - How to install, Keys and Lists commands
Redis - How to install, Keys and Lists commands
 
Remote ashok
Remote ashokRemote ashok
Remote ashok
 
L(1)
L(1)L(1)
L(1)
 
GCC 4-1-16
GCC 4-1-16GCC 4-1-16
GCC 4-1-16
 
Computer hardware
Computer hardware Computer hardware
Computer hardware
 
PLC Guide
PLC GuidePLC Guide
PLC Guide
 

Destaque (20)

IS 151 Lecture 2
IS 151 Lecture 2IS 151 Lecture 2
IS 151 Lecture 2
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
 
IS 151 Lecture 9
IS 151 Lecture 9IS 151 Lecture 9
IS 151 Lecture 9
 
Chap 10(structure and unions)
Chap 10(structure and unions)Chap 10(structure and unions)
Chap 10(structure and unions)
 
IS 139 Lecture 7
IS 139 Lecture 7IS 139 Lecture 7
IS 139 Lecture 7
 
Truth table analysis
Truth table analysisTruth table analysis
Truth table analysis
 
Chapter one
Chapter oneChapter one
Chapter one
 
Cd unit i
Cd unit iCd unit i
Cd unit i
 
pointer, structure ,union and intro to file handling
pointer, structure ,union and intro to file handlingpointer, structure ,union and intro to file handling
pointer, structure ,union and intro to file handling
 
aaالمملكة العربية السعودية
aaالمملكة العربية السعوديةaaالمملكة العربية السعودية
aaالمملكة العربية السعودية
 
Logical and Conditional Operator In C language
Logical and Conditional Operator In C languageLogical and Conditional Operator In C language
Logical and Conditional Operator In C language
 
C Structures and Unions
C Structures and UnionsC Structures and Unions
C Structures and Unions
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Hierarchical Memory System
Hierarchical Memory SystemHierarchical Memory System
Hierarchical Memory System
 
C Structures & Unions
C Structures & UnionsC Structures & Unions
C Structures & Unions
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
Truth tables
Truth tablesTruth tables
Truth tables
 
C pointer
C pointerC pointer
C pointer
 
Introduction to compilers
Introduction to compilersIntroduction to compilers
Introduction to compilers
 
C Structures And Unions
C  Structures And  UnionsC  Structures And  Unions
C Structures And Unions
 

Semelhante a IS 151 - Lecture 3

Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.ppt
Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.pptProgrammable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.ppt
Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.pptMUSTAFAHAIDER53
 
11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptxElisée Ndjabu
 
Digital Logic Design Lecturegyqwdgj-1.pptx
Digital Logic Design Lecturegyqwdgj-1.pptxDigital Logic Design Lecturegyqwdgj-1.pptx
Digital Logic Design Lecturegyqwdgj-1.pptxMalikQadeer8
 
Digital electronics
Digital electronicsDigital electronics
Digital electronicscallr
 
Computer logic and gates
Computer logic and gatesComputer logic and gates
Computer logic and gatessamina khan
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Student
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unitDestro Destro
 
EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1Dilawar Khan
 
digital elctronics
digital elctronicsdigital elctronics
digital elctronicsAsif Iqbal
 
Circuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITTCircuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITTSrivignessh Pss
 
20ME702– MECHATRONICS -UNIT-4.ppt
20ME702– MECHATRONICS -UNIT-4.ppt20ME702– MECHATRONICS -UNIT-4.ppt
20ME702– MECHATRONICS -UNIT-4.pptMohanumar S
 
Programmable logic Controlller ppt
Programmable logic Controlller pptProgrammable logic Controlller ppt
Programmable logic Controlller pptkarthik R
 
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS Mohanumar S
 
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .pptMECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .pptCHANDRA KUMAR S
 

Semelhante a IS 151 - Lecture 3 (20)

shift_register.pptx
shift_register.pptxshift_register.pptx
shift_register.pptx
 
Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.ppt
Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.pptProgrammable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.ppt
Programmable_Logic_Controllers_Introduction_to_PLCs__(Chapter_1)_Lec1.ppt
 
11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx
 
Digital Logic Design Lecturegyqwdgj-1.pptx
Digital Logic Design Lecturegyqwdgj-1.pptxDigital Logic Design Lecturegyqwdgj-1.pptx
Digital Logic Design Lecturegyqwdgj-1.pptx
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Computer logic and gates
Computer logic and gatesComputer logic and gates
Computer logic and gates
 
COA (Unit_2.pptx)
COA (Unit_2.pptx)COA (Unit_2.pptx)
COA (Unit_2.pptx)
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)
 
Digital design chap 2
Digital design    chap 2Digital design    chap 2
Digital design chap 2
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unit
 
EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1EE5440 – Computer Architecture - Lecture 1
EE5440 – Computer Architecture - Lecture 1
 
digital elctronics
digital elctronicsdigital elctronics
digital elctronics
 
Two Bit Adder
Two Bit AdderTwo Bit Adder
Two Bit Adder
 
Karan
KaranKaran
Karan
 
Circuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITTCircuitrix@Pragyan 2015 NITT
Circuitrix@Pragyan 2015 NITT
 
Traffic Light.pdf
Traffic Light.pdfTraffic Light.pdf
Traffic Light.pdf
 
20ME702– MECHATRONICS -UNIT-4.ppt
20ME702– MECHATRONICS -UNIT-4.ppt20ME702– MECHATRONICS -UNIT-4.ppt
20ME702– MECHATRONICS -UNIT-4.ppt
 
Programmable logic Controlller ppt
Programmable logic Controlller pptProgrammable logic Controlller ppt
Programmable logic Controlller ppt
 
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS
Unit 4-PROGRAMMABLE LOGIC INTERFACE-ME6702– MECHATRONICS
 
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .pptMECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
MECHATRONICS-UNIT 4-PROGRAMMABLE LOGIC CONTROLLER .ppt
 

Mais de wajanga

IS 151 Lecture 1
IS 151 Lecture 1IS 151 Lecture 1
IS 151 Lecture 1wajanga
 
IS 151 Outline 2014
IS 151 Outline 2014IS 151 Outline 2014
IS 151 Outline 2014wajanga
 
IS 139 Assignment 3
IS 139 Assignment 3IS 139 Assignment 3
IS 139 Assignment 3wajanga
 
IS 139 Lecture 6
IS 139 Lecture 6IS 139 Lecture 6
IS 139 Lecture 6wajanga
 
IS 139 Assignment 2
IS 139 Assignment 2IS 139 Assignment 2
IS 139 Assignment 2wajanga
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5wajanga
 
IS 139 Lecture 4
IS 139 Lecture 4IS 139 Lecture 4
IS 139 Lecture 4wajanga
 
IS 139 Assignment 1
IS 139 Assignment 1IS 139 Assignment 1
IS 139 Assignment 1wajanga
 
IS 139 Lecture 3
IS 139 Lecture 3IS 139 Lecture 3
IS 139 Lecture 3wajanga
 
IS 139 Lecture 1
IS 139 Lecture 1IS 139 Lecture 1
IS 139 Lecture 1wajanga
 
IS 139 Lecture 2
IS 139 Lecture 2IS 139 Lecture 2
IS 139 Lecture 2wajanga
 
IS 151 Lecture 10
IS 151 Lecture 10IS 151 Lecture 10
IS 151 Lecture 10wajanga
 
IS 151 Lecture 8
IS 151 Lecture 8IS 151 Lecture 8
IS 151 Lecture 8wajanga
 
IS 151 Lecture 7
IS 151 Lecture 7IS 151 Lecture 7
IS 151 Lecture 7wajanga
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6wajanga
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6wajanga
 
IS 151 Lecture 5
IS 151 Lecture 5IS 151 Lecture 5
IS 151 Lecture 5wajanga
 
IS 151 lecture 4
IS 151   lecture 4IS 151   lecture 4
IS 151 lecture 4wajanga
 
IS 151 lecture 2
IS 151   lecture 2IS 151   lecture 2
IS 151 lecture 2wajanga
 

Mais de wajanga (19)

IS 151 Lecture 1
IS 151 Lecture 1IS 151 Lecture 1
IS 151 Lecture 1
 
IS 151 Outline 2014
IS 151 Outline 2014IS 151 Outline 2014
IS 151 Outline 2014
 
IS 139 Assignment 3
IS 139 Assignment 3IS 139 Assignment 3
IS 139 Assignment 3
 
IS 139 Lecture 6
IS 139 Lecture 6IS 139 Lecture 6
IS 139 Lecture 6
 
IS 139 Assignment 2
IS 139 Assignment 2IS 139 Assignment 2
IS 139 Assignment 2
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5
 
IS 139 Lecture 4
IS 139 Lecture 4IS 139 Lecture 4
IS 139 Lecture 4
 
IS 139 Assignment 1
IS 139 Assignment 1IS 139 Assignment 1
IS 139 Assignment 1
 
IS 139 Lecture 3
IS 139 Lecture 3IS 139 Lecture 3
IS 139 Lecture 3
 
IS 139 Lecture 1
IS 139 Lecture 1IS 139 Lecture 1
IS 139 Lecture 1
 
IS 139 Lecture 2
IS 139 Lecture 2IS 139 Lecture 2
IS 139 Lecture 2
 
IS 151 Lecture 10
IS 151 Lecture 10IS 151 Lecture 10
IS 151 Lecture 10
 
IS 151 Lecture 8
IS 151 Lecture 8IS 151 Lecture 8
IS 151 Lecture 8
 
IS 151 Lecture 7
IS 151 Lecture 7IS 151 Lecture 7
IS 151 Lecture 7
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6
 
IS 151 Lecture 6
IS 151 Lecture 6IS 151 Lecture 6
IS 151 Lecture 6
 
IS 151 Lecture 5
IS 151 Lecture 5IS 151 Lecture 5
IS 151 Lecture 5
 
IS 151 lecture 4
IS 151   lecture 4IS 151   lecture 4
IS 151 lecture 4
 
IS 151 lecture 2
IS 151   lecture 2IS 151   lecture 2
IS 151 lecture 2
 

Último

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 

Último (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

IS 151 - Lecture 3

  • 1. Basic Logic Operations • Basic Logic Operations – Several propositions combined form propositional/logic functions – Example: “The light is on” will be true if • “The bulb is not burned out” is true and if • “The switch is on” is true. – Logical statement: The light is on if and only if the bulb is not burned out and the switch is on – The first statement (the light is on – basic proposition) is true only if the last two statements (conditions) are true IS 151 Digital Circuitry 1
  • 2. Basic Logic Operations • Basic digital logic operations – NOT, AND, OR, Exclusive-OR IS 151 Digital Circuitry 2
  • 3. Basic Logic Operations – Features • Inputs – are on the left • Output – is on the right – A circuit that performs a specific logic operation is called a logic gate – The true/false conditions are represented by a HIGH (true) and a LOW (false) • HIGH = TRUE = 1 • LOW = FALSE = 0 IS 151 Digital Circuitry 3
  • 4. The NOT operation • Changes one logic level to the opposite logic level • When the input is HIGH, the output is LOW and vice versa • The NOT operation is implemented by a logic circuit called an inverter. IS 151 Digital Circuitry 4
  • 5. The AND operation • Produces a HIGH output if and only if all the inputs are HIGH • If one input is HIGH and the other is LOW, or all inputs are LOW, the output is LOW • The AND operation is implemented by a logic circuit called an AND gate. IS 151 Digital Circuitry 5
  • 6. The OR operation • Produces a HIGH output when any of the inputs is HIGH • Otherwise if all inputs are LOW then the output is LOW • The OR operation is implemented by a logic gate called an OR gate. IS 151 Digital Circuitry 6
  • 7. The Exclusive-OR operation • Produces a HIGH output when one and only one of the two inputs is HIGH • The Exclusive-OR operation is implemented by a logic gate called an EXOR gate. IS 151 Digital Circuitry 7
  • 8. Logic Operations - Review 1. When does the NOT operation produce a HIGH/LOW output? 2. When does the AND operation produce a HIGH/LOW output? 3. When does the OR operation produce a HIGH/LOW output? 4. When does the EX-OR operation produce a HIGH/LOW output? 5. What is an inverter? 6. What is a logic gate? 7. What is the difference between an OR and an Exclusive-OR operation? IS 151 Digital Circuitry 8
  • 9. Basic Logic Functions • The basic logic gates can be combined to form more complex logic circuits that perform many useful operations to build up complete digital systems • Some common logic functions: comparison, arithmetic, code conversion, encoding, decoding, data selection, storage, and counting IS 151 Digital Circuitry 9
  • 10. The Comparison Function • Magnitude comparison is performed by a logic circuit called the comparator. • A comparator compares two quantities and indicates whether or not they are equal. • Example: given two numbers, determine if the numbers are equal, and if not equal, which one is greater. IS 151 Digital Circuitry 10
  • 11. Arithmetic Functions • Addition – performed by an adder; adds two binary numbers (two inputs and a carry in) and generates an output and a carry out • Subtraction – performed by a subtracter; three inputs: two numbers and a borrow input; generates the difference and borrow out • Multiplication – performed by a multiplier; have two inputs, and an output (product) • Division – performed by a series of subtractions, comparisons and shifts; have two inputs and two outputs (quotient and reminder) IS 151 Digital Circuitry 11
  • 12. Code Functions • The Code conversion function – Changes a form of coded information into another coded form • The Encoding function – Converts information into some coded form • The Decoding function – Converts coded information into a nonencoded form IS 151 Digital Circuitry 12
  • 13. The Data Selection Functions • Multiplexer – switches digital data from several input lines onto a single output line in a specified time sequence • Demultiplexer – switches digital data from one input line to several output lines in a specified time sequence IS 151 Digital Circuitry 13
  • 14. Storage and Counting Functions • The Storage function – To retain binary data for a period of time; e.g. flip-flops, registers • The Counting function – To count events represented by changing levels or pulses or to generate particular code sequence. IS 151 Digital Circuitry 14
  • 15. • End of Lecture IS 151 Digital Circuitry 15