Fake Data Generator
The AMC13 can generate fake AMC data for testing. This works even if the
AMC13 is not in the normal slot (it can be in any MicroTCA crate slot).
Enable this feature using the f option to the enable command, e.g.
> en 1-12 f t
The size of each fake event may be set with:
> wv CONF.AMC.FAKE_DATA_SIZE
where the value is the number of 64-bit words in the body of the event.
Here is an example for a small event (size set to 3):
> wv CONF.AMC.FAKE_DATA_SIZE 3
> en 1 f t
> lt
> re all
+--------------+------------------+
| FED ID | 0x000 |
| Channel | SFP0 |
| Orbit # | 96318876 |
| Bunch X-ing | 500 |
| Event # | 4 |
| Event Size | 11 |
+--------------+------------------+
| 0 | 510000041f400008 | CMS header
| 1 | 101000b05bdb59c0 | AMC13 header (nAMC=1)
| 2 | 0f00000600010000 | AMC13 block header for AMC1 with size=6
| 3 | 010000041f400006 | AMC1 first header EvN=4 Data_length=6
| 4 | 00070006b59c0000 | AMC1 second header, user words "00070006" are fake data
| 5 | 000b000a00090008 | body word 1 with counter data
| 6 | 000f000e000d000c | body word 2 with counter data
| 7 | 0013001200110010 | body word 3 with counter data
| 8 | b83a5dd204000006 | AMC1 trailer length=6 and CRC
| 9 | d3bd9968000041f4 | AMC13 block trailer with CRC (BcN=0x1f4)
| 10 | a000000bff7e0000 | CMS trailer
+--------------+------------------+
Note that all the "user" data is filled with 16-bit counter data,
which starts at 0000 with the first word of the first AMC header,
but values 0000-0005 are replaced by fixed values, so the first visible
counter value is 0006. |