The Wayback Machine - https://web.archive.org/web/20240930182823/https://www.geeksforgeeks.org/block-coding-in-digital-electronics/
Open In App

Block Coding in Digital Electronics

Last Updated : 10 Sep, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

The block coding is a technique through which much reliability is injected into the data that is sent over the network or kept in a device. It does this by adding extra information bits to every block of data; hence, it identifies the errors and corrects the same if it happens to occur on the way. Because of this added redundancy, it becomes easier to identify the problems caused by noise or interference. Thus, applying block coding concurrently with methods of error correction will make sure the data will arrive at the destination place accurately. That’s why block coding has become a vital component in modern digital communication and storage systems.

What is Block Coding?

Block coding is a method used in digital electronics to encode data into a specific format. The purpose of block coding is to add redundant information to the data, which can be used to detect and correct errors that may occur during transmission or storage. Block coding is often used in conjunction with error correction codes (ECCs) to provide a more robust way of transmitting and storing data.

Types of Block Codes

  1. Hamming Codes: Hamming codes are a type of block code that can detect and correct single-bit errors. They are commonly used in digital systems to ensure the accuracy of transmitted data.
  2. Reed-Solomon Codes: Reed-Solomon codes are a type of block code that can correct multiple-bit errors. They are commonly used in storage systems, such as CD-ROMs and DVDs, to ensure the integrity of stored data.
  3. BCH Codes: BCH codes are a type of block code that can correct a specific number of errors. They are commonly used in digital communication systems to ensure the accuracy of transmitted data.
  4. Block coding can provide many benefits in digital electronics, including improved reliability, increased data accuracy, and greater efficiency in the transmission and storage of data. However, block coding also has some disadvantages, including increased complexity and increased overhead in terms of processing time and memory usage.

In summary, block coding is a method used in digital electronics to encode data into a specific format, adding redundant information to the data to detect and correct errors that may occur during transmission or storage. There are several types of block codes, including Hamming codes, Reed-Solomon codes, and BCH codes, and they offer many benefits in terms of data accuracy and reliability, but also come with some disadvantages, such as increased complexity and overhead.

Techniques for Conversion of Digital Data to Digital Signal

  1. Line Coding
  2. Block Coding
  3. Scrambling

Out of which Line coding is always needed, block coding and scrambling may or may not be needed. Block coding helps in error detection and re-transmission of the signal. It is normally referred to as mB/nB coding as it replaces each m-bit data group with an n-bit data group (where n>m). Thus, its adds extra bits (redundancy bits) which helps in synchronization at receiver’s and sender’s end and also providing some kind of error detecting capability. It normally involves three steps: division, substitution, and combination. In the division step, a sequence of bits is divided into groups of m-bits. In the substitution step, we substitute an m-bit group for an n-bit group. Finally, the n-bit groups are combined together to form a stream which has more bits than the original bits. Examples of mB/nB coding: 4B/5B (four binary/five binary ) – This coding scheme is used in combination with NRZ-I. The problem with NRZ-I was that it has a synchronization problem for long sequences of zeros. So, to overcome it we substitute the bit stream from 4-bit to 5-bit data group before encoding it with NRZ-I. So that it does not have a long stream of zeros. The block-coded stream does not have more than three consecutive zeros (see encoding table). mB/nB At the receiver, the NRZ-I encoded digital signal is first decoded into a stream of bits and then decoded again to remove the redundancy bits. Drawback – Though 4B/5B encoding solves the problem of synchronization,it increases the signal rate of NRZ-L.Moreover,it does not solve the DC component problem of NRZ-L. 8B/10B (eight binary/ten binary) – This encoding is similar to 4B/5B encoding except that a group of 8 bits of data is now substituted by a 10-bit code and it provides greater error detection capability than 4B/5B. It is actually a combination of 5B/6B and 3B/4B encoding.The most five significant bits of a 10-bit block is fed into the 5B/6B encoder; the least 3 significant bits is fed into a 3B/4B encoder. The split is done to simplify the mapping table. mB/nB A group of 8 bits can have 2^8 different combinations while a group of 10 bits can have 2^10 different combinations. This means that there are 2^10-2^8=768 redundant groups that are not used for 8B/10B encoding and can be used for error detection and disparity check. Thus, this technique is better than 4B/5B because of better error-checking capability and better synchronization. Reference- Data Communications and Networking By Behrouz A.Forouzan(Book)

Advantages of Block Coding in Digital Electronics

  1. Improved Reliability: Block coding can improve the reliability of digital systems by adding redundant information to the data, which can be used to detect and correct errors that may occur during transmission or storage.
  2. Increased Data Accuracy: Block coding can help ensure the accuracy of transmitted or stored data by detecting and correcting errors that may occur.
  3. Greater Efficiency: Block coding can increase the efficiency of digital systems by reducing the number of errors that occur during transmission or storage, reducing the need for retransmission or storage.
  4. Robustness: Block coding can provide a more robust way of transmitting and storing data by detecting and correcting errors that may occur, reducing the impact of errors on the overall system.

Disadvantages of Block Coding in Digital Electronics:

  1. Increased Complexity: Block coding can increase the complexity of digital systems, making them more difficult to design, implement, and maintain.
  2. Increased Overhead: Block coding can increase the overhead of digital systems in terms of processing time and memory usage, reducing overall system performance.
  3. Increased Cost: Block coding can increase the cost of digital systems, as it requires additional hardware or software to implement the error correction and detection mechanisms.

Applications of Block Coding in Digital Electronics

  • Communication Systems: Block coding allows for error-free transmission of data through the internet or even mobile networks and satellites, when it appears interference or noise would affect it.
  • Data Storage: It finds its usage in storage devices ranging from hard disks and SSDs to CDs and DVDs for ensuring that there is no loss or corruption of data for maintaining file safety from being damaged or decaying with time.
  • Optical Fiber Networks: In fiber optic cables, which transmit data as light, block coding helps fix any errors that may occur in these long-distance-traveling light signals.
  • Wireless Communication: In Wi-Fi, Bluetooth, and cellular networks-say, 4G and 5G-block coding helps maintain your stable connection by reducing errors caused either due to a weak signal or interference.
  • Digital TV and Broadcasting: It ensures that your digital TV or radio broadcasts come through clear as should be, even if the signal is weak or there’s interference, for a smooth view or listening experience.
  • Video and Audio Streaming: Block coding aids in ensuring that movies, music, and videos stream well on the internet through correcting errors brought about by network issues or slow internet.
  • Security Data Transmission: This will provide an extra layer of security since unauthorized users will face increased difficulty while decoding the data to be transmitted.
  • Digital Signal Processing: Block coding ensures that when signals, either audio or video, are digitally processed, the output is correct, even if errors take place during the processing.

Conclusion

Block coding represents one of the basic techniques of digital electronics, which allows any application to make sure that data is sent or stored as accurately as possible. The very basic underlying principle of such a technique consists in adding supplementary information to the data itself so that, if some error happens, it can be detected and thus corrected. Increasing the complexity of systems and requiring more processing power, advantages regarding increased reliability, reduced errors, and higher security have made this technique mandatory for virtually all modern digital communication and storage systems.

Most Frequently Asked Questions for Block Coding in Digital Electronics

Why do we use block coding?

With block coding, the integrity of information could be ascertained, and it would be more reliable as there would be lesser errors while data is being transferred or stored.

What are some examples of block codes?

Examples include Hamming codes for single-bit error correction, Reed-Solomon codes for multiple-error correction, and BCH codes for errors up to a certain number.

Where Block Coding is Used

Block coding is used in so many areas: internet communication, storage, fibre optic networks, wireless connections, digital TVs, etc, where security concerning data transmission is needed.



Similar Reads

Digital Electronics and Computer Organisation
Digital Electronics Half Adder Half Subtractor K-Map Counters Computer Organisation and Architecture Machine Instructions What’s difference between 1’s Complement and 2’s Complement? Addressing Modes Cache Memory Computer Arithmetic | Set – 1 Computer Arithmetic | Set – 2 Cache Organization | Set 1 (Introduction) Pipelining | Set 1 (Execution, Stag
1 min read
What is Scrambling in Digital Electronics ?
A computer network is designed to send information from one point to another. Data that we send can either be digital or analog. Also, signals that represent data can also be digital or analog. Thus to send data by using signals, we must be able to convert the data into signals, this conversion can be Analog to Analog, Analog to Digital, Digital to
5 min read
Operational Amplifier (op-amp) in Digital Electronics
An amplifier is a device that increases the strength of the input signal. It can be Voltage amplifiers, whose input is some voltage and output is also voltage but amplified. Current amplifier, whose input is some current and output is also current but amplified. Transconductance amplifier, whose input is some voltage and output is the current.Trans
4 min read
Digital Electronics - Radix and Diminished Radix Complements
Prerequisite - Complement of a Number The use of complements is to mainly perform Subtraction. We can easily perform addition in contrast if we would like to implement subtraction using logic gates we require more (because we need to consider borrowing that kind of stuff). So if we somehow make it into simple expressions i.e. we are using less expe
4 min read
Logic Synthesis in Digital Electronics
The process of resolving into component parts or analyzing, interpreting, translating, optimizing (rearranging or rewriting to improve efficiency), and mapping RTL (Register Transfer Level) code into a particular and indicated cell library. Programmed production of logic components in a specific digital circuit which may involve various kinds of co
5 min read
Wired Logic in Digital Electronics
Wired logic is a type of digital logic where some logic operations are carried out by directly coupling the outputs of a single or several logic gates. This approach is determined by the electrical properties of the gates involved. A logic gate that uses just passive components like diodes and resistors to implement boolean algebra is known as a wi
4 min read
LMN - Digital Electronics
See Last Minute Notes on all subjects here. We will discuss the important key points useful for GATE exams in summarized form. For details you may refer this. Logic Gates: Note: NAND and NOR gates are called UNIVERSAL GATES because all other gates can be constructed from any of them. K-map example of 3 variables: : F(A,B,C)=π(0,3,6,7) From red
4 min read
Basics of Boolean Algebra in Digital Electronics
In the time middle of the 19th century, mathematician George Boole introduced a new form of mathematical reasoning system which is widely known as Boolean Algebra. This is a special branch of mathematics in which all logic is based on only two representations True(1) and False,(0). In modern science, Boolean algebra has become a very integral part
7 min read
What is Register in Digital Electronics ?
A register is a small and temporary storage unit inside a computer's (CPU). It plays a vital role in holding the data required by the CPU for immediate processing and is made up of flip-flops. It usually holds a limited amount of data ranging from 8 to 64 bits, depending on the processor architecture. Registers act as intermediate storage for data
9 min read
8085 Program to Copy a Source Block to Destination Block with Overlapping Memory Address
The task is to copy the data from some source block to some destination block given that the destination block has an overlapping memory address with the source block. Data cannot just simply be moved from source block to destination block because the destination block is having an overlapping memory address, it could lead to overriding of data and
5 min read
Configuration Logic Block
This article will provide an overview of digital electronics and the configuration logic block. It will cover the basics of digital circuits and how they work, as well as the different types of logic blocks that can be used to create more complex designs. The word digital has many definitions, most of which are based on the concept of something tha
4 min read
Difference between Unipolar, Polar and Bipolar Line Coding Schemes
Data as well as signals that represents data can either be digital or analog. Line coding is the process of converting digital data to digital signals. By this technique we converts a sequence of bits to a digital signal. At the sender side digital data are encoded into a digital signal and at the receiver side the digital data are recreated by dec
7 min read
Consensus Theorem in Digital Logic
Prerequisite - Properties of Boolean algebra, Minimization of Boolean Functions Redundancy theorem is used as a Boolean algebra trick in Digital Electronics. It is also known as Consensus Theorem: AB + A'C + BC = AB + A'C The consensus or resolvent of the terms AB and A'C is BC. It is the conjunction of all the unique literals of the terms, excludi
3 min read
Variable Entrant Map (VEM) in Digital Logic
Prerequisite - Karnaugh Map (K-map) K-map is the best manual technique to solve Boolean equations, but it becomes difficult to manage when number of variables exceed 5 or 6. So, a technique called Variable Entrant Map (VEM) is used to increase the effective size of k-map. It allows a smaller map to handle large number of variables. This is done by
3 min read
Static Hazards in Digital Logic
A hazard, if exists, in a digital circuit causes a temporary fluctuation in the output of the circuit. In other words, a hazard in a digital circuit is a temporary disturbance in the ideal operation of the circuit which if given some time, gets resolved itself. These disturbances or fluctuations occur when different paths from the input to output h
4 min read
Ring Counter in Digital Logic
A ring counter is a typical application of the Shift register. The ring counter is almost the same as the shift counter. The only change is that the output of the last flip-flop is connected to the input of the first flip-flop in the case of the ring counter but in the case of the shift register it is taken as output. Except for this, all the other
3 min read
5 variable K-Map in Digital Logic
Prerequisite - Implicant in K-Map Karnaugh Map or K-Map is an alternative way to write a truth table and is used for the simplification of Boolean Expressions. So far we are familiar with 3 variable K-Map & 4 variable K-Map. Now, let us discuss the 5-variable K-Map in detail. Any Boolean Expression or Function comprising of 5 variables can be s
5 min read
Self Dual functions in Digital Logic
A function is said to be Self dual if and only if its dual is equivalent to the given function, i.e., if a given function is f(X, Y, Z) = (XY + YZ + ZX) then its dual is, fd(X, Y, Z) = (X + Y).(Y + Z).(Z + X) (fd = dual of the given function) = (XY + YZ + ZX), it is equivalent to the given function. So function is self dual. In a dual function: AND
2 min read
Adders and Subtractors in Digital Logic
Subtraction of two binary numbers can be accomplished by adding 2's complement of the subtrahend to the minuend and disregarding the final carry if any. If the MSB bit in the result of addition is a '0'. then the result of addition is the correct answer. If the MSB bit is a '1'. , this implies that the answer has a negative sign. The true magnitude
4 min read
Array Multiplier in Digital Logic
An array multiplier is a digital combinational circuit used for multiplying two binary numbers by employing an array of full adders and half adders. This array is used for the nearly simultaneous addition of the various product terms involved. To form the various product terms, an array of AND gates is used before the Adder array. Checking the bits
3 min read
Specification of Digital System
Specification of a system is the description of its function and other characteristics required for it, for example speed, cost and power. Design can be improved at the expense of worsening on both of the others. These tradeoffs exit at every level in the system design, every sub-piece and components. A designer must make the tradeoffs necessary to
1 min read
Introduction to Digital Systems
A system is a set of related components that work as a whole to achieve a goal. A system contains inputs, behavior and outputs. Behavior is a function that translates inputs to output. Components are electronics blocks - digital, analog, or mixed signal. Digital System is a system in which signals have a finite number of discrete values. Analog Sys
1 min read
Implementation of Digital System
Prerequisite - Introduction to Digital Systems Implementation means how the system is constructed from smaller and simpler components called modules. The modules can vary from simple Gates to complex processors. Digital system follows some Hierarchical implementation. Hierarchical implementation : It is a modular design system which uses divide and
2 min read
Characteristics and Benefits of Digital System
Important characteristics of Digital System are as following below: Data is represented in a digital system as a vector of binary variables.Digital Systems can provide accuracy (dynamic range) limited only by the number of bits used to represent a variableDigital systems are less prone to error than analog systems.Data representation in a digital s
2 min read
What is DAT(Digital Audio Tape)?
DAT (Digital Audio Tape) is an electronic cassette that has a background recording facility and playback singing medium. It is similar to a compact cassette, but it has the main difference. Earlier tapes were analog, but DAT is digital. Unlike standard tapes, digital tapes do their work in only one direction. The DATs can record multiple vibrations
5 min read
Serial Binary Adder in Digital Logic
Serial binary adder is a combinational logic circuit that performs the addition of two binary numbers in serial form. Serial binary adder performs bit by bit addition. Two shift registers are used to store the binary numbers that are to be added. A single full adder is used to add one pair of bits at a time along with the carry. The carry output fr
2 min read
Non-binary Counter in Digital Logic
A counter is a circuit that counts the number of occurrences of an input. The circuit consists of flip-flops which along with combinational elements are used for generation of control signals. If M = Total number of states, and n = Total number of flip-flop Then, M <= 2n If M = 2n ; Binary counter and M < 2n ; Non-binary counter Block Diagram
2 min read
What is DVM(Digital Volt Meter)?
As human needs to expand and grow, different commodities and goods are made and designed for us to meet those needs. Most of the things that we use today require electricity to operate and hence, the role of the Digital Volt Meter becomes all the more crucial in that regard. A Digital Volt Meter, as the name suggests, is used to measure the voltage
4 min read
Clock Skew in synchronous digital circuit systems
In Synchronous circuits where all the logic elements share the same clock signal, it becomes imperative to design these elements as close to the clock source as possible because a system-on-chip, FPGA, CPLD contain Billions of transistors. Even though these distances are minute due to their sheer number there is a propagation delay which leads to t
2 min read
List of “Difference Between” Digital Logic and Design Topics
Digital Logic and Design are the main part of ultramodern electronic systems which enable the structure of complex circuits that power our world of digital and technology. This is a system in computers that uses simple values to produce I/ O operations. These distinctions include sense gates, circuit designs, and design approaches, and They have a
4 min read
Article Tags :