예제 #1
0
        public static string GetNotOperand(Not expression, VHDLCompilerInterface compiler)
        {
            string destination            = GetOperand(expression.Expression, compiler);
            FunctionCallTemplate template = new FunctionCallTemplate(destination, "Not");

            return(template.TransformText());
        }
예제 #2
0
        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());
        }
예제 #3
0
        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());
        }
예제 #4
0
        public static string GetValueFunctionCall(string target)
        {
            FunctionCallTemplate template = new FunctionCallTemplate(target, "GetValue");

            return(template.TransformText());
        }