aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-09-30 18:25:10 +0200
committerjaseg <git@jaseg.de>2023-09-30 18:25:10 +0200
commit67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625 (patch)
tree583a3e944cb266248a6011d33bebe58cc55ee23c /common
parentee1d1bd0c2c944643596af85b935a128db847117 (diff)
download8seg-67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625.tar.gz
8seg-67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625.tar.bz2
8seg-67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625.zip
8b/10b tx/rx works
Diffstat (limited to 'common')
-rwxr-xr-xcommon/8b10b_test_vector_gen.py3
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: