Giter VIP home page Giter VIP logo

wangxuan95 / fpga-gzip-compressor Goto Github PK

View Code? Open in Web Editor NEW
80.0 4.0 15.0 1.18 MB

FPGA-based GZIP (deflate) data compressor. Input raw data and output standard GZIP format (as known as .gz file format). 基于 FPGA 的流式 GZIP 压缩器,用于通用数据压缩。输入原始数据,输出标准的 GZIP 格式,即常见的 .gz / .tar.gz 文件的格式。

Home Page: https://gitee.com/wangxuan95/FPGA-Gzip-compressor

License: GNU General Public License v3.0

Verilog 96.48% Python 2.87% Tcl 0.60% Batchfile 0.05%
deflate deflate-algorithm fpga gzip gzip-compression verilog deflate-compression deflate-compressor gzip-compressor gzip-encoder

fpga-gzip-compressor's Issues

CRC32 in simulation

Hello, may I ask what is the polynomial of CRC32? I couldn't find it through Google search, and I tried using IEEE802 but failed. Meanwhile, I don't quite understand the meaning of your coding in fun calculate_crc, which is quite different from what I saw online. Can you briefly explain how coding work, or are there any similar blogs that can be recommended? Thank you very much for your help.

C example not the python example

Dear Wang:

I am harry who always focus on your project about FPGA. And I wonder if I can use the C/C++ example not python when u run the test program on my laptop?

串口未找到出错

您好,我按照 readme 里面的步骤把工程新建好了,在跑 python 文件的时候发现了下面的报错

original data length = 524288 bytes
  0.  ttyS0  hwid=PNP0501
  1.  CP2108 Quad USB to UART Bridge Controller - CP2108 Interface 3  hwid=USB VID:PID=10C4:EA71 SER=40514E02D54EB08011E72A9E738F7EB LOCATION=1-4:1.3
  2.  CP2108 Quad USB to UART Bridge Controller - CP2108 Interface 2  hwid=USB VID:PID=10C4:EA71 SER=40514E02D54EB08011E72A9E738F7EB LOCATION=1-4:1.2
  3.  CP2108 Quad USB to UART Bridge Controller - CP2108 Interface 1  hwid=USB VID:PID=10C4:EA71 SER=40514E02D54EB08011E72A9E738F7EB LOCATION=1-4:1.1
  4.  CP2108 Quad USB to UART Bridge Controller - CP2108 Interface 0  hwid=USB VID:PID=10C4:EA71 SER=40514E02D54EB08011E72A9E738F7EB LOCATION=1-4:1.0
Please select a port (enter a number): 2
Traceback (most recent call last):
  File "/root/.local/lib/python3.10/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
FileNotFoundError: [Errno 2] No such file or directory: 'ttyUSB2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/zchliu/work/FPGA-Gzip-compressor/Arty-example/python/fpga_uart_gz.py", line 127, in <module>
    gz_data, err_msg = GzipCompressUsePort(port_name, orig_data)
  File "/home/zchliu/work/FPGA-Gzip-compressor/Arty-example/python/fpga_uart_gz.py", line 53, in GzipCompressUsePort
    port = Serial(port_name, baudrate=115200, timeout=1.0)
  File "/root/.local/lib/python3.10/site-packages/serial/serialutil.py", line 244, in __init__
    self.open()
  File "/root/.local/lib/python3.10/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port ttyUSB2: [Errno 2] No such file or directory: 'ttyUSB2'

这看起来像是 serial 没有找到对应的文件目录导致的,我按照网上的解决办法,将 port 改成了本地目录以后跑通了

port = Serial("/dev/serial/by-id/usb-Silicon_Labs_CP2108_Quad_USB_to_UART_Bridge_Controller_40514E02D54EB08011E72A9E738F7EB-if02-port0", baudrate=115200, timeout=1.0)
    # try :
    #     port = Serial(port_name, baudrate=115200, timeout=1.0)
    # except :
    #     return None, '**error: Unable to open port %s' % port_name

但是,这似乎和程序查找串口然后再选择的功能不太一致,想问一下您有遇到这个问题吗?以及如何解决的呢?

系统:ubuntu 22.04
vivado:2022.2
开发板:zcu102

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.