hwt/hdl/types/bitVal_opReduce.py
def tryReduceAnd(sig, val):
    """
    Return sig and val reduced by & operator or None
    if it is not possible to statically reduce expression
    """
    m = sig._dtype.all_mask()
    if val._isFullVld():
        v = val.val
        if v == m:
            return sig
        elif v == 0:
            return val
def tryReduceAnd(sig, val):
    """
    Return sig and val reduced by & operator or None
    if it is not possible to statically reduce expression
    """
    m = sig._dtype.all_mask()
    if val._isFullVld():
        v = val.val
        if v == m:
            return sig
        elif v == 0:
            return val
def tryReduceAnd ( sig , val ) : m = sig . _dtype . all_mask ( ) if val . _isFullVld ( ) : v = val . val if v == m : return sig elif v == 0 : return val
Return sig and val reduced by & operator or None
    if it is not possible to statically reduce expression
Return sig and val reduced by & operator or None if it is not possible to statically reduce expression