diff options
author | jjsuperpower <jjs29356@gmail.com> | 2022-10-21 23:38:44 -0500 |
---|---|---|
committer | jjsuperpower <jjs29356@gmail.com> | 2022-10-21 23:38:44 -0500 |
commit | 59910a855955b5bc2cc7fb182c1a099ef4e77502 (patch) | |
tree | d82c26b5e2f3c5e9c166440d4b84cf1837539719 /hdl/utils.py | |
parent | b20b36d5418bb65556a2bb6e8890045f7e253fc8 (diff) |
added low and high multiply
Diffstat (limited to 'hdl/utils.py')
-rw-r--r-- | hdl/utils.py | 2 |
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) |