@internal<EOL><INDENT>def serialzeValueToTCL(self, val, do_eval=False) -> Tuple[str, str, bool]:<DEDENT>
if isinstance(val, int):<EOL><INDENT>val = hInt(val)<EOL><DEDENT>if do_eval:<EOL><INDENT>val = val.staticEval()<EOL><DEDENT>if isinstance(val, RtlSignalBase):<EOL><INDENT>ctx = VivadoTclExpressionSerializer.getBaseContext()<EOL>tclVal = VivadoTclExpressionSerializer.asHdl(val, ctx)<EOL>tclValVal = VivadoTclExpressionSerializer.asHdl(<EOL>val.staticEval())<EOL>return tclVal, tclValVal, False<EOL><DEDENT>else:<EOL><INDENT>tclVal = VivadoTclExpressionSerializer.asHdl(val, None)<EOL>return tclVal, tclVal, True<EOL><DEDENT>
:see: doc of method on parent class