[Halld-online] Slot header word format

Elliott Wolin wolin at jlab.org
Wed Nov 7 17:36:57 EST 2012


Hi,

Someone asked about the slot header word format so here it is.  Note 
that the module type is stored using 4 bits.  Currently I use 16 bits to 
store the number of hit words to follow.  If needed some of these bits 
could be used to store something else:

              *iter3=0xe0000000;                    // 5 bits slot header
               (*iter3)|=(slot&0x1f)<<22;         // 5 bits slot number
               (*iter3)|=(type&0xf) <<18;         // 4 bits of module type
               (*iter3)|=nhitwords&0xffff;        // 16 bits hit count 
(could be smaller)

-- 

				Sincerely,
					Elliott


================================================================================


  Those raised in a morally relative or neutral environment will hold
		    no truths to be self-evident.
				

Elliott Wolin
Staff Physicist, Jefferson Lab
12000 Jefferson Ave
Suite 8 MS 12A1
Newport News, VA 23606
757-269-7365

================================================================================



More information about the Halld-online mailing list