diff options
author | jaseg <git@jaseg.de> | 2023-09-30 18:25:10 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-09-30 18:25:10 +0200 |
commit | 67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625 (patch) | |
tree | 583a3e944cb266248a6011d33bebe58cc55ee23c /common | |
parent | ee1d1bd0c2c944643596af85b935a128db847117 (diff) | |
download | 8seg-67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625.tar.gz 8seg-67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625.tar.bz2 8seg-67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625.zip |
8b/10b tx/rx works
Diffstat (limited to 'common')
-rwxr-xr-x | common/8b10b_test_vector_gen.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/8b10b_test_vector_gen.py b/common/8b10b_test_vector_gen.py index 12460c1..6c0250b 100755 --- a/common/8b10b_test_vector_gen.py +++ b/common/8b10b_test_vector_gen.py @@ -1,6 +1,9 @@ #!/usr/bin/env python3 def parse_size(s): + if s is None: + return s + s = s.lower() SUFFIXES = {'k': 1e3, 'm': 1e6, 'g': 1e9} if s[-1] in SUFFIXES: |