Giter VIP home page Giter VIP logo

crc's Introduction

Introduction

A simple terminal program to calculate the crc code of particular input and generation polynomials.

Usage

In the terminal, follow the instructions on the menu to set the data to be encoded, the generation polynomial.

To set the generator polynomial recommended in the homework, type in the following command: 6 or 7 and press enter.

To set costomized generator polynomial, type in the following command: 2 and press enter.

For polynomial x^31 + x^3 + 1, input "31 3 0 -1", where -1 is the end of input.

For polynomial x^31 + x^3 + x^2 + x + 1, input "31 3 2 1 0 -1", where -1 is the end of input.

Similarly, press 1 to set the polynomial to be encoded.

Press 3 to see what is in the buffer.

Press 4 to encode the data.

Press 5 to quit the program.

Example

  1. Press 6 to set the generator polynomial as x^3 + x^2 + 1.

    generator

  2. Press 1 to set the data to be encoded as x^4 + x^3 + x^2 + x + 1.

    data

  3. Press 4 to encode the data.

    encode

    It displays the remainder and the encoded data.

Warnings

Don't press keys except the numbers on the keyboard.

中文版

考虑到用英语使用github copilot生成效果可能比较好,就先用英语写了,然后翻译成中文。

chinese

crc's People

Contributors

101010zyl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.