From 67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 30 Sep 2023 18:25:10 +0200 Subject: 8b/10b tx/rx works --- common/8b10b_test_vector_gen.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') 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: -- cgit