driver.h 668 Bytes
/*
 *
 *
 *
 *
 */

#ifndef DRIVER_INCLUDE
#define DRIVER_INCLUDE


typedef struct {
  /* required */
  char *label;
  int gclk_old;
  int argc;
  char **argv;

  /* input */
  int gclk;

  /* output */
  int ew_cv_data;             /* [12:0] */
  int x_major;                /* [11:0] */
  int cycle_type;             /* lsb of cycle type */
  int ew_cv_newspan;          /* [13:0] */
  int left;                   /* left major flag */
  int reset;

  /* valids */
  int dv;
  int dv_d1;
  int ew_cv_data_d1;

} driver_t;


/*
 *  Prototypes
 */
void driver(driver_t **pp0, driver_t **pp1);
void driver_init(driver_t *p0, driver_t *p1);

#endif /* DRIVER_INCLUDE */