#include <TDSPBlockFifo.h>
Inheritance diagram for TDSPBlockFifo:

Definition at line 32 of file TDSPBlockFifo.h.
Public Member Functions | |
| TDSPBlockFifo (char *name=NULL) | |
| ~TDSPBlockFifo () | |
| TComplex * | GetBlock (Int_t i=0) |
| void | SetDepth (Int_t depth) |
| void | SetSize (Int_t width, Int_t depth) |
| Int_t | GetWidth () |
| TDSPSignal * | Shift (TDSPSignal *input=NULL, TDSPSignal *output=NULL) |
| TDSPSignal * | Update (TDSPSignal *input) |
Protected Attributes | |
| Int_t | fWidth |
Friends | |
| class | TDSPFifoFilter |
|
|
|
|
|
|
|
|
Definition at line 45 of file TDSPBlockFifo.h. References TDSPFifo::fBlock, and fWidth.
|
|
|
Definition at line 49 of file TDSPBlockFifo.h. References fWidth.
00049 { return fWidth;};
|
|
|
Reimplemented from TDSPFifo. |
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 65 of file TDSPBlockFifo.h. References TDSPFifo::Fill(), TDSPFifo::fIndex, fWidth, TDSPFifo::GetBlock(), TDSPVector::GetLen(), TDSPVector::GetVec(), TDSPFifo::Next(), TDSPVector::SetVec(), and TDSPFifo::WasFull(). Referenced by Update().
00065 {
00066
00067 register Int_t i;
00068
00069 Int_t iLen = 0;
00070 TComplex *ivec = NULL;
00071
00072 if (input) {
00073 iLen = input->GetLen();
00074 ivec = input->GetVec();
00075
00076 // Use only fWidth values of the input Signal
00077 //
00078 if (iLen>fWidth) iLen = fWidth;
00079
00080 }
00081
00083 //
00084 // Copy
00085 //
00086 TComplex *ovec = GetBlock(fIndex);
00087
00088
00089 for(i=0; i<iLen; i++) ovec[i] = ivec[i];
00090 for( ;i<fWidth;i++) ovec[i] = 0;
00091
00092 // Increase the Index cyclic
00093 //
00094 Next();
00095
00096 // Update the Fill Status
00097 //
00098 Fill();
00099
00100 // Checking Fill Status of the Fifo
00101 //
00102 if (WasFull()) {
00103
00104 // Set the Output Signal (if given)
00105 //
00106 if (output) output->SetVec(GetBlock(fIndex),fWidth);
00107
00108 } else
00109 output = NULL;
00110
00111
00112 return output;
00113
00114 }
|
|
|
Reimplemented from TDSPOutput1. Definition at line 55 of file TDSPBlockFifo.h. References TDSPOperator::Emit(), TDSPOutput1::GetSignal(), and Shift().
00055 {
00056 TDSPSignal *output=Shift(input,GetSignal());
00057 Emit("Update(TDSPSignal*)",output);
00058 return output;
00059 }
|
|
|
Definition at line 34 of file TDSPBlockFifo.h. |
|
|
Definition at line 38 of file TDSPBlockFifo.h. Referenced by GetBlock(), GetWidth(), and Shift(). |
1.3.2