Skip to content

Python functions that: 1. Accepts binary and returns resulting modulation in 4B/5B encoding. 2. Accepts binary and returns the sequence after hamming encoding has been applied.

Notifications You must be signed in to change notification settings

JasonBallantyne/BinaryEncoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

BinaryEncoding

4B-5B_Encoding.py:

  • Function called modulateInputs which accepts binary input (in 4 bit binary format) and returns the resulting modulation using 4B/5B encoding.
  • If the input is not as expected, the program should print Error: Input must be in 4 bit binary.

HammingEncoding.py:

  • Function hammingEncode which takes a binary sequence as an input and outputs the sequence after hamming encoding has been applied.
  • All input errors are handled by printing Error: Input must be in binary.

About

Python functions that: 1. Accepts binary and returns resulting modulation in 4B/5B encoding. 2. Accepts binary and returns the sequence after hamming encoding has been applied.

Topics

Resources

Stars

Watchers

Forks

Languages