RCU instructions


Enumerations

enum  RCU_Code {
  RCU_JUMP, RCU_RS_STATUS, RCU_RS_TRCFG, RCU_RS_TRCNT,
  RCU_dummy4, RCU_dummy5, RCU_CHRDO, RCU_PMREAD,
  RCU_PMWRITE, RCU_END, RCU_WAIT, RCU_TRIGGER
}

Functions

u_int RCUC_RCU_encode (u_int instr)
u_int RCUC_LOOP_encode (u_int addr, u_int n)
u_int RCUC_JUMP_encode (u_int addr)
u_int RCUC_RCU_RS_STATUS_encode ()
u_int RCUC_RCU_RS_TRCFG_encode ()
u_int RCUC_RCU_RS_TRCNT_encode ()
u_int RCUC_RCU_CHRDO_encode ()
u_int RCUC_RCU_PMREAD_encode (u_int addr)
u_int RCUC_RCU_PMWRITE_encode (u_int addr, u_int broadcast)
u_int RCUC_END_encode ()
u_int RCUC_RCU_WAIT_encode (u_int delay)
u_int RCUC_RCU_TRIGGER_encode ()


Enumeration Type Documentation

enum RCU_Code
 

RCU_Code.

Enumeration values:
RCU_JUMP  0x0
RCU_RS_STATUS  0x1
RCU_RS_TRCFG  0x2
RCU_RS_TRCNT  0x3
RCU_dummy4  0x4
RCU_dummy5  0x5
RCU_CHRDO  0x6
RCU_PMREAD  0x7
RCU_PMWRITE  0x8
RCU_END  0x9
RCU_WAIT  0xa
RCU_TRIGGER  0xb


Function Documentation

u_int RCUC_END_encode  ) 
 

Encode a END instruction.

That is, the end of one instruction set. This is automatically added after each GROUP in a valid input file.

Returns:
The partially compiled instruction

u_int RCUC_JUMP_encode u_int  addr  ) 
 

Encode a JUMP instruction.

Parameters:
addr Absolute address to jump to
Returns:
The instruction

u_int RCUC_LOOP_encode u_int  addr,
u_int  n
 

Encode a loop instruction.

Parameters:
addr Aboslute address jump to
n Number of times to perform the loop
Returns:
The instruction

u_int RCUC_RCU_CHRDO_encode  ) 
 

Encode a CHRDO instruction.

That is, perform the read out of all active channels.

Returns:
The partially compiled instruction

u_int RCUC_RCU_encode u_int  instr  ) 
 

Encode an RCU instruction.

In essence, this function adds (1<<22) to instr

Parameters:
instr The instruction to encode as an RCU instruction.
Returns:
The RCU instruction, ready to be put into the compiled instruction set.

u_int RCUC_RCU_PMREAD_encode u_int  addr  ) 
 

Encode a PMREAD instruction.

Read pedestals from address addr into pattern memory off the RCU.

Parameters:
addr The channel to read from
Returns:
The partially compiled instruction

u_int RCUC_RCU_PMWRITE_encode u_int  addr,
u_int  broadcast
 

Encode a PMWRITE instruction.

Read the pattern memory into the pedestal memories of the ALTRO chips. The ALTRO channels that are written to is determined by addr. If the second argument is non-zero, then the pattern memory is broadcast over all the ALTRO channels

Parameters:
addr Address to write pattern memory to, or
broadcast if non-zero, broadcast to all ALTRO channels
Returns:
The partially compiled instruction

u_int RCUC_RCU_RS_STATUS_encode  ) 
 

Encode a RS_STATUS instruction.

That is, reset the status register of the RCU

Returns:
The partially compiled instruction

u_int RCUC_RCU_RS_TRCFG_encode  ) 
 

Encode a RS_TRCFG instruction.

That is, reset the trigger config register of the RCU

Returns:
The partially compiled instruction

u_int RCUC_RCU_RS_TRCNT_encode  ) 
 

Encode a RS_TRCNT instruction.

That is, reset the trigger counter register of the RCU

Returns:
The partially compiled instruction

u_int RCUC_RCU_TRIGGER_encode  ) 
 

Encode a TRIGGER instruction.

Make a hardware trigger (L1), which will be treated as an external trigger

Returns:
The partially compiled instruction

u_int RCUC_RCU_WAIT_encode u_int  delay  ) 
 

Encode a WAIT instruction.

Wait of delay number of clock cycles at the current instruction.

Parameters:
delay Number of clock cycles to wait for.
Returns:
The partially compiled instruction

Top of page Last update Fri Jul 21 19:48:34 2006
Copyright © 2004 Christian Holm Created by DoxyGen 1.3.5