hwt/hdl/operator.py
def withRes(opDef, operands, resT, outputs=[]):
        """
        Create operator with result signal

        :ivar resT: data type of result signal
        :ivar outputs: iterable of singnals which are outputs
            from this operator
        """
        op = Operator(opDef, operands)
        out = RtlSignal(getCtxFromOps(operands), None, resT)
        out._const = arr_all(op.operands, isConst)
        out.drivers.append(op)
        out.origin = op
        op.result = out
        op.registerSignals(outputs)
        if out._const:
            out.staticEval()
        return out
def withRes(opDef, operands, resT, outputs=[]):
        op = Operator(opDef, operands)
        out = RtlSignal(getCtxFromOps(operands), None, resT)
        out._const = arr_all(op.operands, isConst)
        out.drivers.append(op)
        out.origin = op
        op.result = out
        op.registerSignals(outputs)
        if out._const:
            out.staticEval()
        return out
def withRes ( opDef , operands , resT , outputs = [ ] ) : op = Operator ( opDef , operands ) out = RtlSignal ( getCtxFromOps ( operands ) , None , resT ) out . _const = arr_all ( op . operands , isConst ) out . drivers . append ( op ) out . origin = op op . result = out op . registerSignals ( outputs ) if out . _const : out . staticEval ( ) return out
Create operator with result signal

        :ivar resT: data type of result signal
        :ivar outputs: iterable of singnals which are outputs
            from this operator
Create operator with result signal