hwt/synthesizer/rtlLevel/netlist.py
def cut_off_drivers_of(dstSignal, statements):
    """
    Cut off drivers from statements
    """
    separated = []
    stm_filter = []
    for stm in statements:
        stm._clean_signal_meta()
        d = stm._cut_off_drivers_of(dstSignal)
        if d is not None:
            separated.append(d)

        f = d is not stm
        stm_filter.append(f)

    return list(compress(statements, stm_filter)), separated
def cut_off_drivers_of(dstSignal, statements):
    separated = []
    stm_filter = []
    for stm in statements:
        stm._clean_signal_meta()
        d = stm._cut_off_drivers_of(dstSignal)
        if d is not None:
            separated.append(d)

        f = d is not stm
        stm_filter.append(f)

    return list(compress(statements, stm_filter)), separated
def cut_off_drivers_of ( dstSignal , statements ) : separated = [ ] stm_filter = [ ] for stm in statements : stm . _clean_signal_meta ( ) d = stm . _cut_off_drivers_of ( dstSignal ) if d is not None : separated . append ( d ) f = d is not stm stm_filter . append ( f ) return list ( compress ( statements , stm_filter ) ) , separated
Cut off drivers from statements
Cut off drivers from statements