/** * Method to return the function of this NodeProto. The Function is a technology-independent * description of the behavior of this NodeProto. * * @return function the function of this NodeProto. */ public PrimitiveNode.Function getFunction(ImmutableNodeInst n) { if (n.protoId instanceof CellId) { return PrimitiveNode.Function.UNKNOWN; } PrimitiveNode np = techPool.getPrimitiveNode((PrimitiveNodeId) n.protoId); return np.getTechnology().getPrimitiveFunction(np, n.techBits); }