csclk.h 816 Bytes
/*
 *  csclk.h: header file for Comand Shuffle Unit that runs off of clk
 *   (non-gated clock).
 *
 * 
 */

#ifndef CSCLK_MODULE_INCLD
#define CSCLK_MODULE_INCLD

#include "ints.h"


/*
 *  Comand Shuffle Unit Registers
 */
typedef struct
{
  /* required by C-sim */
    char *label;
    char **argv;
    int argc;
    int clk_old;

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

    int   clk;
    int64 xbus_cs_data;		/* [63:0], input data bus */
    int   xbus_cs_valid;
    int   reset_l;
    int   pre_req_dma;

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

    int wr_adrs;		/* number of words in fifo */
    int cs_xbus_req;		/* request DMA signal */

} csclk_t;



/*
 *  Function Prototypes
 */
void csclk(csclk_t **pp0, csclk_t **pp1);
void csclk_init(csclk_t *p0, csclk_t *p1);

#endif /* CSCLK_MODULE_INCLD */