/*
 * mysub.c
 * Submodule template file
 * [eichin:19880511.2039EST]
 */

#include <msimdecl.h>
#define FUNCTION my_func
#define MY(OUT, IN1, IN2) make_binop(my_func, OUT, IN1, IN2)
#define DONE
/*
 * Replace this line with some comments about the function.
 * Also say something about how it works.
 * Functions can often be implemented in a general way, to handle an
 * arbitrary number of inputs and create the right output.
 */ 
#define MY_DELAY 10

my_func(dep)
     Generics dep;
{
  STATE result = LOGIC_LOW;
  Wire outwire;
  
  SAVEOUTWIRE(dep, outwire);
  
  while(MOREARGS(dep))
    {
      STATE nextinput;
      READNEXTSTATE(dep, nextinput);

      switch(nextinput)
	{
	case LOGIC_HI:
	  break;
	case LOGIC_LOW:
	  break;
	}
    }
  
  SETOUTPUT(outwire, result, globaltime+XOR_DELAY);
}
