Skip to content

Commit 5491ffe

Browse files
committed
bit_length() method is implemented for Scope access.
1 parent e96e6e7 commit 5491ffe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

veriloggen/core/vtypes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,9 @@ def __init__(self, *args):
16301630
if not args:
16311631
raise ValueError("Scope requires at least one argument.")
16321632

1633+
def bit_length(self):
1634+
return self.args[-1].bit_length()
1635+
16331636
#-------------------------------------------------------------------------------
16341637
class SystemTask(_Numeric):
16351638
def __init__(self, cmd, *args):

0 commit comments

Comments
 (0)