from collections import OrderedDict
-from soc.decoder.power_fields import DecodeFields, BitRange
+from openpower.decoder.power_fields import DecodeFields
from nmigen import Module, Elaboratable, Signal, Cat
from nmigen.cli import rtlil
from copy import deepcopy
+from openpower.decoder.selectable_int import BitRange
+
class SignalBitRange(BitRange):
def __init__(self, signal):