SlideShare uma empresa Scribd logo
1 de 31
Baixar para ler offline
ELETRÔNICA
DIGITAL
AULA 18 - GERADORES E VERIFICADORES DE PARIDADE
PROFESSORA: EMMANUELLY DIÓGENES
INFORMATIVOS
● Às aulas ficarão disponíveis no
Classroom.
● Fiquem á vontade para tirar dúvidas.
ATENÇÃO
GERADORES E
VERIFICADORES DE
PARIDADE
01
Código Detectores de Erros
● Problema de transmissão de dados binários em canais de comunicações:
1. Devido às interferências do canal de comunicações (e.g ruído), a
sequência binária transmitida pode não ser igual a sequência binária
recebida;
2. Deseja-se um meio de detectar erros;
a. Código de paridade
b. Código de Hamming;
c. Outros códigos.
Código Detectores de Erros: Código de paridade
● O código de paridade consiste em adicionar um bit extra (bit de
paridade), na sequência transmitida;
● Existem dois tipos de paridade:
1. Paridade PAR
a. Quantidade de bits 1 ímpar -> Bit de paridade 1;
b. Quantidade de bits 1 par -> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
● O bit de paridade é apendado a sequência original geralmente no final.
Código de paridade
Número Paridade ímpar Paridade par
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111
1000
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111 0 1
1000
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111 0 1
1000 0 1
1001
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111 0 1
1000 0 1
1001 1 0
1010
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111 0 1
1000 0 1
1001 1 0
1010 1 0
1011
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111 0 1
1000 0 1
1001 1 0
1010 1 0
1011 0 1
1100
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111 0 1
1000 0 1
1001 1 0
1010 1 0
1011 0 1
1100 1 0
1101
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111 0 1
1000 0 1
1001 1 0
1010 1 0
1011 0 1
1100 1 0
1101 0 1
1110
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111 0 1
1000 0 1
1001 1 0
1010 1 0
1011 0 1
1100 1 0
1101 0 1
1110 0 1
1111
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
Número Paridade ímpar Paridade par
0000 1 0
0001 0 1
0010 0 1
0011 1 0
0100 0 1
0101 1 0
0110 1 0
0111 0 1
1000 0 1
1001 1 0
1010 1 0
1011 0 1
1100 1 0
1101 0 1
1110 0 1
1111 1 0
1. Paridade PAR
a. Quantidade de bits 1
ímpar -> Bit de paridade
1;
b. Quantidade de bits 1 par
-> Bit de paridade 0;
2. Paridade ÍMPAR: INVERSO
Código de paridade
P = Ē3
Ē2
Ē1
E0
+ Ē3
Ē2
E1
Ē0
+ Ē3
E2
Ē1
Ē0
+ Ē3
E2
E1
E0
+
E3
Ē2
Ē1
Ē0
+ E3
Ē2
E1
E0
+E3
E2
Ē1
E0
+ E3
E2
E1
Ē0
P = Ē3
Ē2
(Ē1
E0
+ E1
Ē0
)
+
Ē3
E2
(Ē1
Ē0
+ E1
E0
)+
E3
Ē2
(Ē1
Ē0
+ E1
E0
) + E3
E2
(Ē1
E0
+ E1
Ē0
)
P = Ē3
Ē2
(E1
⊕ E0
) + Ē3
E2
(E1
⊕ E0
) +
______
E3
Ē2
(E1
⊕ E0
) +
_______
E3
E2
(E1
⊕ E0
)
P = (E1
⊕ E0
) (Ē3
Ē2
+ E3
E2
) + (E1
⊕ E0
) (Ē3
E2
+ E3
Ē2
)
________
Código de paridade
P = Ē3
Ē2
Ē1
E0
+ Ē3
Ē2
E1
Ē0
+ Ē3
E2
Ē1
Ē0
+ Ē3
E2
E1
E0
+
E3
Ē2
Ē1
Ē0
+ E3
Ē2
E1
E0
+E3
E2
Ē1
E0
+ E3
E2
E1
Ē0
P = Ē3
Ē2
(Ē1
E0
+ E1
Ē0
)
+
Ē3
E2
(Ē1
Ē0
+ E1
E0
)+
E3
Ē2
(Ē1
Ē0
+ E1
E0
) + E3
E2
(Ē1
E0
+ E1
Ē0
)
P = Ē3
Ē2
(E1
⊕ E0
) + Ē3
E2
(E1
⊕ E0
) +
______
E3
Ē2
(E1
⊕ E0
) +
_______
E3
E2
(E1
⊕ E0
)
P = (E1
⊕ E0
) (Ē3
Ē2
+ E3
E2
) + (E1
⊕ E0
) (Ē3
E2
+ E3
Ē2
)
________
Código de paridade
P = (E1
⊕ E0
) (Ē3
Ē2
+ E3
E2
) + (E1
⊕ E0
) (Ē3
E2
+ E3
Ē2
)
________
P = (E1
⊕ E0
) (E3
⊕E2
) +
_______
(E1
⊕ E0
) (E3
⊕ E2
)
_______
Chamando: x = E1
⊕ E0
Y = E3
⊕ E2
P = xy + xy = x ⊕ y
_ _
P = (E3
⊕ E2
) ⊕ (E1
⊕ E0
)
Código de paridade
● Diagrama de circuito lógico:
E3
E2
E1
E0
Código de paridade
Como o código de paridade pode ser usado para detectar erros?
● No receptor, existe outro gerador de paridade;
● “Pega-se“ os N-1 bits recebidos e gera-se a paridade;
● Compara-se a paridade gerada no receptor com a paridade
transmitida.
● Se forem diferentes, ocorreu um erro na transmissão.
E3
E2
E1
E0
Código de paridade
● Projeto de um verificador de Paridade (Par):
E2
E3
E2
E1
E0
P
Código de paridade
● Limitações:
● Se houver a permuta de uma quantidade par de bits, o verificador
de paridade não é capaz de identificar o erro;
● O bit de paridade é enviado pelo canal, e por isso, pode sofrer com
erros.
AVISO
Os slides serão disponibilizados no
Classroom!
Dúvidas?

Mais conteúdo relacionado

Destaque

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destaque (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Geradores e verificadores de paridade

  • 1. ELETRÔNICA DIGITAL AULA 18 - GERADORES E VERIFICADORES DE PARIDADE PROFESSORA: EMMANUELLY DIÓGENES
  • 2. INFORMATIVOS ● Às aulas ficarão disponíveis no Classroom. ● Fiquem á vontade para tirar dúvidas. ATENÇÃO
  • 4. Código Detectores de Erros ● Problema de transmissão de dados binários em canais de comunicações: 1. Devido às interferências do canal de comunicações (e.g ruído), a sequência binária transmitida pode não ser igual a sequência binária recebida; 2. Deseja-se um meio de detectar erros; a. Código de paridade b. Código de Hamming; c. Outros códigos.
  • 5. Código Detectores de Erros: Código de paridade ● O código de paridade consiste em adicionar um bit extra (bit de paridade), na sequência transmitida; ● Existem dois tipos de paridade: 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO ● O bit de paridade é apendado a sequência original geralmente no final.
  • 6. Código de paridade Número Paridade ímpar Paridade par 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 7. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 8. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 9. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 10. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 11. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 12. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 13. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 1000 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 14. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 0 1 1000 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 15. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 0 1 1000 0 1 1001 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 16. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 0 1 1000 0 1 1001 1 0 1010 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 17. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 0 1 1000 0 1 1001 1 0 1010 1 0 1011 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 18. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 0 1 1000 0 1 1001 1 0 1010 1 0 1011 0 1 1100 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 19. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 0 1 1000 0 1 1001 1 0 1010 1 0 1011 0 1 1100 1 0 1101 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 20. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 0 1 1000 0 1 1001 1 0 1010 1 0 1011 0 1 1100 1 0 1101 0 1 1110 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 21. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 0 1 1000 0 1 1001 1 0 1010 1 0 1011 0 1 1100 1 0 1101 0 1 1110 0 1 1111 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 22. Código de paridade Número Paridade ímpar Paridade par 0000 1 0 0001 0 1 0010 0 1 0011 1 0 0100 0 1 0101 1 0 0110 1 0 0111 0 1 1000 0 1 1001 1 0 1010 1 0 1011 0 1 1100 1 0 1101 0 1 1110 0 1 1111 1 0 1. Paridade PAR a. Quantidade de bits 1 ímpar -> Bit de paridade 1; b. Quantidade de bits 1 par -> Bit de paridade 0; 2. Paridade ÍMPAR: INVERSO
  • 23. Código de paridade P = Ē3 Ē2 Ē1 E0 + Ē3 Ē2 E1 Ē0 + Ē3 E2 Ē1 Ē0 + Ē3 E2 E1 E0 + E3 Ē2 Ē1 Ē0 + E3 Ē2 E1 E0 +E3 E2 Ē1 E0 + E3 E2 E1 Ē0 P = Ē3 Ē2 (Ē1 E0 + E1 Ē0 ) + Ē3 E2 (Ē1 Ē0 + E1 E0 )+ E3 Ē2 (Ē1 Ē0 + E1 E0 ) + E3 E2 (Ē1 E0 + E1 Ē0 ) P = Ē3 Ē2 (E1 ⊕ E0 ) + Ē3 E2 (E1 ⊕ E0 ) + ______ E3 Ē2 (E1 ⊕ E0 ) + _______ E3 E2 (E1 ⊕ E0 ) P = (E1 ⊕ E0 ) (Ē3 Ē2 + E3 E2 ) + (E1 ⊕ E0 ) (Ē3 E2 + E3 Ē2 ) ________
  • 24. Código de paridade P = Ē3 Ē2 Ē1 E0 + Ē3 Ē2 E1 Ē0 + Ē3 E2 Ē1 Ē0 + Ē3 E2 E1 E0 + E3 Ē2 Ē1 Ē0 + E3 Ē2 E1 E0 +E3 E2 Ē1 E0 + E3 E2 E1 Ē0 P = Ē3 Ē2 (Ē1 E0 + E1 Ē0 ) + Ē3 E2 (Ē1 Ē0 + E1 E0 )+ E3 Ē2 (Ē1 Ē0 + E1 E0 ) + E3 E2 (Ē1 E0 + E1 Ē0 ) P = Ē3 Ē2 (E1 ⊕ E0 ) + Ē3 E2 (E1 ⊕ E0 ) + ______ E3 Ē2 (E1 ⊕ E0 ) + _______ E3 E2 (E1 ⊕ E0 ) P = (E1 ⊕ E0 ) (Ē3 Ē2 + E3 E2 ) + (E1 ⊕ E0 ) (Ē3 E2 + E3 Ē2 ) ________
  • 25. Código de paridade P = (E1 ⊕ E0 ) (Ē3 Ē2 + E3 E2 ) + (E1 ⊕ E0 ) (Ē3 E2 + E3 Ē2 ) ________ P = (E1 ⊕ E0 ) (E3 ⊕E2 ) + _______ (E1 ⊕ E0 ) (E3 ⊕ E2 ) _______ Chamando: x = E1 ⊕ E0 Y = E3 ⊕ E2 P = xy + xy = x ⊕ y _ _ P = (E3 ⊕ E2 ) ⊕ (E1 ⊕ E0 )
  • 26. Código de paridade ● Diagrama de circuito lógico: E3 E2 E1 E0
  • 27. Código de paridade Como o código de paridade pode ser usado para detectar erros? ● No receptor, existe outro gerador de paridade; ● “Pega-se“ os N-1 bits recebidos e gera-se a paridade; ● Compara-se a paridade gerada no receptor com a paridade transmitida. ● Se forem diferentes, ocorreu um erro na transmissão. E3 E2 E1 E0
  • 28. Código de paridade ● Projeto de um verificador de Paridade (Par): E2 E3 E2 E1 E0 P
  • 29. Código de paridade ● Limitações: ● Se houver a permuta de uma quantidade par de bits, o verificador de paridade não é capaz de identificar o erro; ● O bit de paridade é enviado pelo canal, e por isso, pode sofrer com erros.
  • 30.
  • 31. AVISO Os slides serão disponibilizados no Classroom! Dúvidas?