From 59910a855955b5bc2cc7fb182c1a099ef4e77502 Mon Sep 17 00:00:00 2001 From: jjsuperpower Date: Fri, 21 Oct 2022 23:38:44 -0500 Subject: added low and high multiply --- hdl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hdl/utils.py') 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) -- cgit v1.2.3