README.rst 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. CRC algorithm HDL code generator (VHDL, Verilog, MyHDL)
  2. =======================================================
  3. `Homepage <https://bues.ch/h/crcgen>`_
  4. `Git repository <https://bues.ch/cgit/crcgen.git>`_
  5. `Github repository <https://github.com/mbuesch/crcgen>`_
  6. This tool generates VHDL, Verilog or MyHDL code for use in FPGAs to calculate CRC (Cyclic Redundancy Check) checksums.
  7. The generated HDL code is synthesizable and combinatorial. That means the calculation runs in one clock cycle on an FPGA.
  8. Any combination of CRC algorithm parameters and polynomial coefficients can be selected.
  9. Example usage
  10. =============
  11. Display all options:
  12. .. code:: sh
  13. crcgen -h
  14. Generate Verilog code for CRC-32:
  15. .. code:: sh
  16. crcgen -a CRC-32 -v
  17. Generate VHDL code for CRC-32:
  18. .. code:: sh
  19. crcgen -a CRC-32 -V
  20. Generate Verilog code for a custom non-standard CRC or any standard algorithm that's not included in crcgen's -a list:
  21. .. code:: sh
  22. crcgen -P "x^8 + x^7 + x^5 + x^4 + x^2 + x + 1" -B16 -R -v
  23. Online crcgen
  24. =============
  25. An easy to use online version of crcgen that can be used without installing or downloading anything to your machine is available here:
  26. `Online crcgen <https://bues.ch/h/crcgen>`_
  27. License of the generated HDL code
  28. =================================
  29. The generated code is Public Domain.
  30. Permission to use, copy, modify, and/or distribute this software for any
  31. purpose with or without fee is hereby granted.
  32. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  33. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  34. MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  35. SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  36. RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  37. NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
  38. USE OR PERFORMANCE OF THIS SOFTWARE.
  39. License of the generator
  40. ========================
  41. Copyright (c) 2019-2023 Michael Büsch <m@bues.ch>
  42. 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.
  43. 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.
  44. 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.