|
entity CandidateCounterCounts the muon candidates and raises a flag if a maximal count is reached. |
The counter is used to limit the maximal number of muon candidates sent to LVL2. The counter is loaded with a 4-bit value stored previously in a register. The value of the register is available as an output in order to be able to read it back.
Ports:
| cnt_en | enables the counter. |
| reg_wr | writes the data input to the internal register. |
| data | is used to load the internal register. |
| reset_counter | prepares the counter for a new event and resets the zero-output. |
| zero | indicates that the maximal cancdate count has been reached. The output remains active until the next reset_counter or sclr. |