Skip to main content

CRC algorithm HDL code generator (VHDL, Verilog, MyHDL)

Homepage

Git repository

Github repository

This tool generates VHDL, Verilog or MyHDL code for use in FPGAs to calculate CRC (Cyclic Redundancy Check) checksums.

The generated HDL code is synthesizable and combinatorial. That means the calculation runs in one clock cycle on an FPGA.

Any combination of CRC algorithm parameters and polynomial coefficients can be selected.

Example usage

Display all options:

crcgen -h

Generate Verilog code for CRC-32:

crcgen -a CRC-32 -v

Generate VHDL code for CRC-32:

crcgen -a CRC-32 -V

Generate Verilog code for a custom non-standard CRC or any standard algorithm that’s not included in crcgen’s -a list:

crcgen -P "x^8 + x^7 + x^5 + x^4 + x^2 + x + 1" -B16 -R -v

Online crcgen

An easy to use online version of crcgen that can be used without installing or downloading anything to your machine is available here:

Online crcgen

License of the generated HDL code

The generated code is Public Domain.

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

License of the generator

Copyright (c) 2019-2023 Michael Büsch <m@bues.ch>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Metadata

Release files for crcgen 2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crcgen 2.6
File Size Uploaded
crcgen-2.6.tar.gz 23.2 kB Details

Release files / crcgen-2.6.tar.gz

Download URL crcgen-2.6.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c1546bd8d97d50cec6755fd42deafc4d99bb869378184700b768b614bd2edc4c
BLAKE2b-256 checksum
How to use checksums
be30e80f8be56c378d4c9074086806152fd8ce5e477dfefe07776536cd985922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

2.6 This release

1 release file

2.5

1 release file

2.4

1 release file

2.3

1 release file

2.2

1 release file

2.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page