Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dibaotian committed Jan 22, 2021
1 parent 01c2ba8 commit f7ff1ec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,24 @@

### This project is to create different length test vector for xilinx xrt mutiprocess test.

#### 1 create dedicated length random vector
#### 2 calculate the crc32
#### 3 save to file


### create_crc_data.py
#### 1 create specify length random test vector(file)
#### 2 calculate the crc32
#### 3 save the crc file to file
#### the data will be reserved in the data/ folder with the .dat suffix

#### Usage: python create_crc_data.py <data_length>
#### data_length could be byte//Kilobyte/Megabyte
#### example:
#### python create_crc_data.py 64 --create a 64byte file and calculate crc
#### python create_crc_data.py 2K --create a 2Kbyte file and calculate crc
#### python create_crc_data.py 5M --create a 5Mbyte file and calculate crc

### create_deploy_pic_crc.py
#### calculate the input .jpg file crc32 result, the result will be reserved with _crc32.dat subffix
#### the test vector reserved in the testbench/ folder
#### Usage: python create_deploy_pic_crc.py <input_file>
#### example:
#### python create_deploy_pic_crc.py testbench/800p_1.jpg
1 change: 0 additions & 1 deletion create_crc_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def generate_random_str(length):
print(type(base_str))
print ("base_str %s" % len(base_str))
n=len(base_str)-1
# n=61

for i in range(int(length)):
random_str+=base_str[random.randint(0,n)]
Expand Down

0 comments on commit f7ff1ec

Please sign in to comment.