Exemplo n.º 1
0
        public static string GetLessEqualsOperand(LessEquals expression, VHDLCompilerInterface compiler)
        {
            string left  = GetOperand(expression.Left, compiler);
            string right = GetOperand(expression.Right, compiler);
            FunctionCallTemplate template = new FunctionCallTemplate(left, "LessEquals", right);

            return(template.TransformText());
        }
Exemplo n.º 2
0
        public AbstractValue Evaluate(LessEquals expr)
        {
            AbstractValue left  = Evaluate(expr.Left);
            AbstractValue right = Evaluate(expr.Right);

            if ((left != null) && (right != null) && (left is TIME_VALUE) && (right is TIME_VALUE))
            {
                return(TIME_VALUE.LESS_EQUALS_THAN(left as TIME_VALUE, right as TIME_VALUE));
            }

            throw new NotImplementedException();
        }
Exemplo n.º 3
0
 public static string GetLessEqualsExpresstionType(LessEquals expression, VHDLCompilerInterface compiler)
 {
     return("bool");
 }