Exemple #1
0
static void draw_eval_function_argument(ivl_signal_t port, ivl_expr_t expr)
{
    ivl_variable_type_t dtype = ivl_signal_data_type(port);
    switch (dtype) {
    case IVL_VT_BOOL:
    /* For now, treat bit2 variables as bit4 variables. */
    case IVL_VT_LOGIC:
        function_argument_logic(port, expr);
        break;
    case IVL_VT_REAL:
        function_argument_real(port, expr);
        break;
    case IVL_VT_CLASS:
        vvp_errors += draw_eval_object(expr);
        break;
    case IVL_VT_STRING:
        draw_eval_string(expr);
        break;
    case IVL_VT_DARRAY:
        vvp_errors += draw_eval_object(expr);
        break;
    default:
        fprintf(stderr, "XXXX function argument %s type=%d?!\n",
                ivl_signal_basename(port), dtype);
        assert(0);
    }
}
Exemple #2
0
static void draw_function_argument(ivl_signal_t port, ivl_expr_t expr)
{
      ivl_variable_type_t dtype = ivl_signal_data_type(port);
      switch (dtype) {
	  case IVL_VT_LOGIC:
	    function_argument_logic(port, expr);
	    break;
	  case IVL_VT_REAL:
	    function_argument_real(port, expr);
	    break;
	  case IVL_VT_BOOL:
	    function_argument_bool(port, expr);
	    break;
	  default:
	    fprintf(stderr, "XXXX function argument %s type=%d?!\n",
		    ivl_signal_basename(port), dtype);
	    assert(0);
      }
}