summaryrefslogtreecommitdiff
path: root/hdl/utils.py
diff options
context:
space:
mode:
authorjjsuperpower <jjs29356@gmail.com>2022-10-21 23:38:44 -0500
committerjjsuperpower <jjs29356@gmail.com>2022-10-21 23:38:44 -0500
commit59910a855955b5bc2cc7fb182c1a099ef4e77502 (patch)
treed82c26b5e2f3c5e9c166440d4b84cf1837539719 /hdl/utils.py
parentb20b36d5418bb65556a2bb6e8890045f7e253fc8 (diff)
added low and high multiply
Diffstat (limited to 'hdl/utils.py')
-rw-r--r--hdl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdl/utils.py b/hdl/utils.py
index a2f788e..792e8a7 100644
--- a/hdl/utils.py
+++ b/hdl/utils.py
@@ -133,7 +133,7 @@ def rand_bits_extremes(bits, sus=None):
return random.choice(choices)
-def rand_bits_mix(bits, low=None, high=None, sus=None, extrem_prob=0.25):
+def rand_bits_mix(bits: int|Signal, low:int=None, high:int=None, sus:"None, 'u', 's'"=None, extrem_prob:float=0.25):
'''
Take number of bits or a Signal
sus determines if the number is signed or unsigned, or both ('s', 'u', or None)