Merge branch 'developer' into dev/xilinx_power
All checks were successful
Build on RHEL9 / build (push) Successful in 3m20s
Build on RHEL8 / build (push) Successful in 4m40s

This commit is contained in:
2026-01-19 16:30:55 +01:00
committed by GitHub

View File

@@ -1907,6 +1907,8 @@ class Detector(CppDetectorApi):
raise ValueError("bit_position must be provided when passing int address")
if not isinstance(bit_position, int):
raise ValueError("bit_position must be int")
if isinstance(bitname_or_addr, int):
bitname_or_addr = RegisterAddress(bitname_or_addr)
return BitAddress(bitname_or_addr, bit_position)
# New usage with str or BitAddress