public static string GetNotOperand(Not expression, VHDLCompilerInterface compiler) { string destination = GetOperand(expression.Expression, compiler); FunctionCallTemplate template = new FunctionCallTemplate(destination, "Not"); return(template.TransformText()); }
protected string GenReportStatement(LoggerMessageVerbosity verbosity, object o) { string verb = string.Format("{0}.{1}", "VHDLRuntime.LoggerMessageVerbosity", verbosity); FunctionCallTemplate template = new FunctionCallTemplate("Logger", "WriteLine", verb, "CurrentTime", "CurrentDutyCycle", o); return(template.TransformText()); }
public static string GetEqualsOperand(Equals expression, VHDLCompilerInterface compiler) { string left = GetOperand(expression.Left, compiler); string right = GetOperand(expression.Right, compiler); FunctionCallTemplate template = new FunctionCallTemplate(left, "Equals", right); return(template.TransformText()); }
public static string GetValueFunctionCall(string target) { FunctionCallTemplate template = new FunctionCallTemplate(target, "GetValue"); return(template.TransformText()); }