示例#1
0
 def __init__(self, exponent_w, mantisa_w, name=None, const=False):
     """
     :param negated: if true the value is in negated form
     """
     HdlType.__init__(self, const=const)
     assert exponent_w > 0, exponent_w
     assert mantisa_w > 0, mantisa_w
     Floatt.__init__(self, exponent_w, mantisa_w, name=name)
示例#2
0
 def __init__(self, bit_length, signed=BITS_DEFAUTL_SIGNED,
              force_vector=BITS_DEFAUTL_FORCEVECTOR,
              negated=BITS_DEFAUTL_NEGATED,
              name=None,
              const=False,
              strict_sign=True, strict_width=True):
     """
     :param negated: if true the value is in negated form
     """
     self.negated = negated
     HdlType.__init__(self, const=const)
     bit_length = int(bit_length)
     assert bit_length > 0, bit_length
     Bits3t.__init__(self, bit_length, signed, name=name,
                     force_vector=force_vector,
                     strict_sign=strict_sign, strict_width=strict_width)