Skip to content
Snippets Groups Projects
Commit f42c9d11 authored by Norbert Herrmann's avatar Norbert Herrmann Committed by Florian Uhlig
Browse files

v14a addressing scheme

parent 66050b92
No related branches found
No related tags found
1 merge request!138Final merge
......@@ -23,8 +23,13 @@ const Int_t CbmTofAddress::fgkChannelSideOffset =
/** Offset in bits for Channel Id in the address field **/
const Int_t CbmTofAddress::fgkChannelIdOffset =
CbmTofAddress::fgkChannelSideBits + CbmTofAddress::fgkChannelSideOffset;
/** Offset in bits for Rpc Type in the address field **/
const Int_t CbmTofAddress::fgkRpcTypeOffset =
CbmTofAddress::fgkChannelIdBits + CbmTofAddress::fgkChannelIdOffset;
const Int_t CbmTofAddress::fgkiModFullIdMask =
(((1 << fgkSystemBits) - 1)) + (((1 << fgkSmIdBits) - 1) << fgkSmIdOffset)
(((1 << fgkSystemBits) - 1))
+ (((1 << fgkSmIdBits) - 1) << fgkSmIdOffset)
+ (((1 << fgkSmTypeBits) - 1) << fgkSmTypeOffset)
+ (((1 << fgkRpcIdBits) - 1) << fgkRpcIdOffset);
+ (((1 << fgkRpcIdBits) - 1) << fgkRpcIdOffset)
+ (((1 << fgkRpcTypeBits) - 1) << fgkRpcTypeOffset);
......@@ -171,17 +171,36 @@ private:
**/
/** Sub-fields sizes in bits **/
/** Number of bits for Super Module Id in the address field **/
// v14a
// Number of bits for Super Module Id in the address field
static const Int_t fgkSmIdBits = 8;
/** Number of bits for Super Module Type in the address field **/
// Number of bits for Super Module Type in the address field
static const Int_t fgkSmTypeBits = 4;
/** Number of bits for Rpc Id in the address field **/
// Number of bits for Rpc Id in the address field
static const Int_t fgkRpcIdBits = 7;
/** Number of bits for Channel Side in the address field **/
// Number of bits for Channel Side in the address field
static const Int_t fgkChannelSideBits = 1;
/** Number of bits for Channel Id in the address field **/
// Number of bits for Channel Id in the address field
static const Int_t fgkChannelIdBits = 8;
// Number of bits for Rpc Type in the address field
static const Int_t fgkRpcTypeBits = 0;
/*
// v20a
// Number of bits for Super Module Id in the address field
static const Int_t fgkSmIdBits = 7;
// Number of bits for Super Module Type in the address field
static const Int_t fgkSmTypeBits = 4;
// Number of bits for Rpc Id in the address field
static const Int_t fgkRpcIdBits = 6;
// Number of bits for Channel Side in the address field
static const Int_t fgkChannelSideBits = 1;
// Number of bits for Channel Id in the address field
static const Int_t fgkChannelIdBits = 4;
// Number of bits for Rpc Type in the address field
static const Int_t fgkRpcTypeBits = 4;
*/
/**
** To adapt the address sub-fields repartition in order,
** you just need to change the way the offset are calculated.
......@@ -198,6 +217,8 @@ private:
static const Int_t fgkRpcIdOffset;
/** Offset in bits for Channel Id in the address field **/
static const Int_t fgkChannelIdOffset;
/** Offset in bits for Channel Id in the address field **/
static const Int_t fgkRpcTypeOffset;
/**
** For the module Full Id determination
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment