ep.h 5.44 KB
/*
 *  ep.h: types, macros, etc. for Edge Walker Pipe
 *
 *  9/1/94  RJM
 */

#ifndef EWPIPE_UNIT_INCLD
#define EWPIPE_UNIT_INCLD


typedef struct
{
  /* required by C-sim */
    char *label;  /* label must be first */
    char **argv;
    int argc;
    int gclk_old;

  /*    I n p u t    S i g n a l s    */

    int gclk;
    int tlut_en;
    int ew_st_span;
    int ew_d; 		/* [21:0] */
    int cv_x_offset;	/* [1:0]  */
    int cv_y_offset;	/* [1:0]  */
    int cv_cvg;		/* [3:0]  */
    int cv_mask;	/* */
    int tc_load;	/* */
    int cycle_type;	/* [1:0] */
  
  /*    O u t p u t    S i g n a l s    */

    int st_span_st_w;
    int st_span_st_l;
    int st_span_st_s;
    int st_span_st_t;
    int st_span_st_r;
    int st_span_st_g;
    int st_span_st_b;
    int st_span_st_a;
    int st_span_st_z;
    int st_span_tc;
    int st_span_tf;
    int st_span_cc;
    int st_span_bl;
    int st_span_ms;
    int d_w;		/* [21:0], s,.21 */
    int d_l;		/* [21:0], s,10.11 */
    int d_s;		/* [21:0], s,10.11 */
    int d_t;		/* [21:0], s,10.11 */
    int d_r;		/* [15:0], s,9.6 */
    int d_g;		/* [15:0], s,9.6 */
    int d_b;		/* [15:0], s,9.6 */
    int d_a;		/* [15:0], s,9.6 */
    int d_z;		/* [21:0], s,15.6 */
    int x_offset_r;	/* [1:0] */
    int x_offset_g;	/* [1:0] */
    int x_offset_b;	/* [1:0] */
    int x_offset_a;	/* [1:0] */
    int x_offset_z;	/* [1:0] */
    int y_offset_r;	/* [1:0] */
    int y_offset_g;	/* [1:0] */
    int y_offset_b;	/* [1:0] */
    int y_offset_a;	/* [1:0] */
    int y_offset_z;	/* [1:0] */
    int cvg_cc;		/* [3:0] */
    int mask_bl;	/*  */

  /*    I n t e r n a l     R e g i s t e r s    */

    unsigned int st_span_1d: 1;
    unsigned int st_span_2d: 1;
    unsigned int st_span_3d: 1;
    unsigned int st_span_4d: 1;
    unsigned int st_span_5d: 1;
    unsigned int st_span_6d: 1;
    unsigned int st_span_7d: 1;
    unsigned int st_span_8d: 1;
    unsigned int st_span_9d: 1;
    unsigned int st_span_10d: 1;
    unsigned int st_span_11d: 1;
    unsigned int st_span_12d: 1;
    unsigned int st_span_13d: 1;
    unsigned int st_span_14d: 1;
    unsigned int st_span_15d: 1;
    unsigned int st_span_16d: 1;
    unsigned int st_span_17d: 1;
    unsigned int st_span_18d: 1;
    unsigned int st_span_19d: 1;
    unsigned int st_span_20d: 1;
    unsigned int st_span_21d: 1;

    unsigned int d_1d: 22;
    unsigned int d_2d: 22;
    unsigned int d_3d: 22;
    unsigned int d_4d: 22;
    unsigned int d_5d: 22;
    unsigned int d_6d: 22;
    unsigned int d_7d: 22;
    unsigned int d_8d: 22;
    unsigned int d_9d: 22;
    unsigned int d_10d: 22;

    unsigned int x_offset_1d: 2;
    unsigned int x_offset_2d: 2;
    unsigned int x_offset_3d: 2;
    unsigned int x_offset_4d: 2;
    unsigned int x_offset_5d: 2;
    unsigned int x_offset_6d: 2;
    unsigned int x_offset_7d: 2;
    unsigned int x_offset_8d: 2;
    unsigned int x_offset_9d: 2;
    unsigned int x_offset_10d: 2;
    unsigned int x_offset_11d: 2;
    unsigned int x_offset_12d: 2;
    unsigned int x_offset_13d: 2;
    unsigned int x_offset_14d: 2;
    unsigned int x_offset_15d: 2;
    unsigned int x_offset_16d: 2;
    unsigned int x_offset_17d: 2;
    unsigned int x_offset_18d: 2;
    unsigned int x_offset_19d: 2;
    unsigned int x_offset_20d: 2;
    unsigned int x_offset_21d: 2;
    unsigned int x_offset_22d: 2;

    unsigned int y_offset_1d: 2;
    unsigned int y_offset_2d: 2;
    unsigned int y_offset_3d: 2;
    unsigned int y_offset_4d: 2;
    unsigned int y_offset_5d: 2;
    unsigned int y_offset_6d: 2;
    unsigned int y_offset_7d: 2;
    unsigned int y_offset_8d: 2;
    unsigned int y_offset_9d: 2;
    unsigned int y_offset_10d: 2;
    unsigned int y_offset_11d: 2;
    unsigned int y_offset_12d: 2;
    unsigned int y_offset_13d: 2;
    unsigned int y_offset_14d: 2;
    unsigned int y_offset_15d: 2;
    unsigned int y_offset_16d: 2;
    unsigned int y_offset_17d: 2;
    unsigned int y_offset_18d: 2;
    unsigned int y_offset_19d: 2;
    unsigned int y_offset_20d: 2;
    unsigned int y_offset_21d: 2;
    unsigned int y_offset_22d: 2;

    unsigned int cvg_1d: 4;
    unsigned int cvg_2d: 4;
    unsigned int cvg_3d: 4;
    unsigned int cvg_4d: 4;
    unsigned int cvg_5d: 4;
    unsigned int cvg_6d: 4;
    unsigned int cvg_7d: 4;
    unsigned int cvg_8d: 4;
    unsigned int cvg_9d: 4;
    unsigned int cvg_10d: 4;
    unsigned int cvg_11d: 4;
    unsigned int cvg_12d: 4;
    unsigned int cvg_13d: 4;
    unsigned int cvg_14d: 4;
    unsigned int cvg_15d: 4;
    unsigned int cvg_16d: 4;
    unsigned int cvg_17d: 4;
    unsigned int cvg_18d: 4;
    unsigned int cvg_19d: 4;
    unsigned int cvg_20d: 4;
    unsigned int cvg_21d: 4;

    unsigned int mask_1d: 1;
    unsigned int mask_2d: 1;
    unsigned int mask_3d: 1;
    unsigned int mask_4d: 1;
    unsigned int mask_5d: 1;
    unsigned int mask_6d: 1;
    unsigned int mask_7d: 1;
    unsigned int mask_8d: 1;
    unsigned int mask_9d: 1;
    unsigned int mask_10d: 1;
    unsigned int mask_11d: 1;
    unsigned int mask_12d: 1;
    unsigned int mask_13d: 1;
    unsigned int mask_14d: 1;
    unsigned int mask_15d: 1;
    unsigned int mask_16d: 1;
    unsigned int mask_17d: 1;
    unsigned int mask_18d: 1;
    unsigned int mask_19d: 1;
    unsigned int mask_20d: 1;
    unsigned int mask_21d: 1;
    unsigned int mask_22d: 1;
    unsigned int mask_23d: 1;
    unsigned int mask_24d: 1;

    unsigned int tc_load_1d: 1;

} ep_t;


/*
 *  Prototypes
 */

void ep(ep_t **pp0, ep_t **pp1);
void ep_init(ep_t *p0, ep_t *p1);


#endif /* EWPIPE_UNIT_INCLD */