OpenCores
URL https://opencores.org/ocsvn/async_sdm_noc/async_sdm_noc/trunk

Subversion Repositories async_sdm_noc

[/] [async_sdm_noc/] [branches/] [init/] [common/] [tb/] [pdu_def.h] - Diff between revs 30 and 32

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 30 Rev 32
Line 16... Line 16...
 04/08/2008  Add the check empty function. <wsong83@gmail.com>
 04/08/2008  Add the check empty function. <wsong83@gmail.com>
 22/09/2008  Override the copy and = operations.  <wsong83@gmail.com>
 22/09/2008  Override the copy and = operations.  <wsong83@gmail.com>
 21/09/2010  Support VC and use templates. <wsong83@gmail.com>
 21/09/2010  Support VC and use templates. <wsong83@gmail.com>
 19/11/2010  Fixed to support the minimal 8bit VC. <wsong83@gmail.com>
 19/11/2010  Fixed to support the minimal 8bit VC. <wsong83@gmail.com>
 27/05/2011  Clean up for opensource. <wsong83@gmail.com>
 27/05/2011  Clean up for opensource. <wsong83@gmail.com>
 
 30/05/2011  Clear the addresses field when clear a flit. <wsong83@gmail.com>
 
 
*/
*/
 
 
#ifndef PDU_DEF_H_
#ifndef PDU_DEF_H_
#define PDU_DEF_H_
#define PDU_DEF_H_
Line 97... Line 98...
 
 
    void clear(){                    // clear the flit
    void clear(){                    // clear the flit
      vcn = 0;
      vcn = 0;
      prio = 0;
      prio = 0;
      ftype = F_IDLE;
      ftype = F_IDLE;
 
      addrx = 0;
 
      addry = 0;
      for(unsigned int i=0; i<BW; i++) data[i] = 0;
      for(unsigned int i=0; i<BW; i++) data[i] = 0;
    }
    }
 
 
    unsigned char& operator[] (unsigned int index){         // read as a vector
    unsigned char& operator[] (unsigned int index){         // read as a vector
      return data[index];
      return data[index];

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.