GSI Forum - RDF feed
type: channel
description: GSI Helmholtzzentrum für Schwerionenforschung
items: UCESB multi-dimensional array
items: Re: UCESB multi-dimensional array

UCESB multi-dimensional array
type: item
description: 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
creator: MarcLabiche
date: 2016-05-24T15:39:14-00:00

Re: UCESB multi-dimensional array
type: item
description: 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?
creator: Hans Törnqvist
date: 2016-05-25T09:48:00-00:00

Re: UCESB multi-dimensional array
type: item
description: Hi Hans, ok, thanks. The mapping will be a bit "less clearer" but I'll try the proposed alternative. Cheers, Marc
creator: MarcLabiche
date: 2016-05-25T10:08:13-00:00