GSI Helmholtzzentrum für Schwerionenforschung
Hi, When I try to define an array of dimension higher than 2 in the file STaRTrack.spec that I'm trying to produce for the Si tracker, for example: MEMBER(DATA12 adc[18][2][16][128] ZERO_SUPPRESS); the compilation crashes with the message: STaRTrack.spec:16: syntax error, unexpected '[', expecting ')' It seems that only arrays of 1 and 2 dimensions can be defined. Would it be possible to extend to 4-D array or could you please suggest an alternative ? Cheers, Marc
Hello Marc, The spec file parser is coded in a way that going beyond 2 dimensions would require a lot of work, and I don't know the rationale behind this. For now, you can combine the first dimensions by e.g. adc[18 * 2 * 16][128]. Is it not possible to split this array into smaller module specs?
Hi Hans, ok, thanks. The mapping will be a bit "less clearer" but I'll try the proposed alternative. Cheers, Marc