lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
TPGen::Branch Class Reference

Jump to another instruction, unconditionally or, per the constructor comment, while a counter is less than a test value. More...

#include <user_sequence.hh>

Inherits TPGen::Instruction.

Public Member Functions

 Branch (unsigned address)
 Unconditional jump to address (counter ctrA, test 0).
 
 Branch (unsigned address, CCnt counter, unsigned test)
 Conditional jump: per the code comments, jump to address while counter (which is tested and incremented) is less than test.
 
 ~Branch ()
 Does nothing; empty body.
 
Instruction::Type instr () const
 Return Instruction::Branch.
 
- Public Member Functions inherited from TPGen::Instruction
virtual ~Instruction ()
 Does nothing; empty virtual destructor.
 

Public Attributes

unsigned address
 Target address; XpmSequenceEngine treats it as an instruction index within the sequence.
 
CCnt counter
 Counter tested by a conditional branch.
 
unsigned test
 Test value; 0 means an unconditional branch to XpmSequenceEngine.
 

Additional Inherited Members

- Public Types inherited from TPGen::Instruction
enum  Type {
  Fixed , AC , Branch , Check ,
  Request
}
 Instruction type returned by instr(). More...
 

Detailed Description

Jump to another instruction, unconditionally or, per the constructor comment, while a counter is less than a test value.

Constructor & Destructor Documentation

◆ Branch() [1/2]

TPGen::Branch::Branch ( unsigned  address)

Unconditional jump to address (counter ctrA, test 0).

◆ Branch() [2/2]

TPGen::Branch::Branch ( unsigned  address,
CCnt  counter,
unsigned  test 
)

Conditional jump: per the code comments, jump to address while counter (which is tested and incremented) is less than test.

◆ ~Branch()

TPGen::Branch::~Branch ( )

Does nothing; empty body.

Member Function Documentation

◆ instr()

Instruction::Type TPGen::Branch::instr ( ) const
virtual

Member Data Documentation

◆ address

unsigned TPGen::Branch::address

Target address; XpmSequenceEngine treats it as an instruction index within the sequence.

◆ counter

CCnt TPGen::Branch::counter

Counter tested by a conditional branch.

◆ test

unsigned TPGen::Branch::test

Test value; 0 means an unconditional branch to XpmSequenceEngine.


The documentation for this class was generated from the following file: