'label' => "Trigger Input Module Configuration $i"
});
}
- } else {
+ } elsif ($cprop->{'trb_compiletime'} < 1680610367) {
for(my $i = 0; $i < $header->{'len'}; $i++) {
my $key = "trg_input_config$i";
'label' => "Trigger Input Module Configuration $i"
});
}
+ } else {
+ for(my $i = 0; $i < $header->{'len'}; $i++) {
+ my $key = "trg_input_config$i";
+
+ $regs->{$key} = new TrbRegister($address + 1 + $i, $trb, {
+ 'delay' => {'lower' => 0, 'len' => 6},
+ 'spike_rej' => {'lower' => 8, 'len' => 4},
+ 'invert' => {'lower' => 12, 'len' => 1, 'type' => 'bool'},
+ 'override' => {'lower' => 13, 'len' => 2, 'type' => 'enum', 'enum' =>
+ {0 => 'off', 1 => 'to_low', 3 => 'to_high'}
+ },
+ 'downscale' => {'lower' => 16, 'len' => 4},
+ }, {
+ 'accessmode' => "rw",
+ 'export' => 1,
+ 'monitor' => '1',
+ 'label' => "Trigger Input Module Configuration $i"
+ });
+ }
}
for(my $i = 0; $i < $header->{'itc_len'}; $i++) {
<th class="delay">Delay</th>
<th class="spike"><abbr title="Noise reducing. High pulses shorter than this values are rejeted">Spike Rej.</abbr></th>
<th class="override">Override</th>
+ <th class="downscale"><abbr title="only every 2**N pulse is forwarded">Downscale</a></th>
</tr>
</table>
</div>
</body>
-</html>
\ No newline at end of file
+</html>
renderTriggerInputs: function() {
var source_from = this.defs.properties.trg_input_count - this.defs.properties.trg_inp_mux_count;
var to = this.defs.properties.trg_input_count;
-
+ var noavail = "";
+ if(this.defs.properties.trb_compiletime < 1680610367)
+ noavail = " noavail";
for(var i=0; i < to; i++) {
var reg = 'trg_input_config' + i;
var areg = 'trg_input_mux' + (i-source_from);
new Element('option', {'value': 'to_low', 'text': '-> 0'}),
new Element('option', {'value': 'to_high', 'text': '-> 1'}),
])
- )
+ ),
+ new Element('td', {'class': 'downscale'+noavail})
+ .adopt([
+ new Element('input', {'class': 'text autocommit autoupdate', 'slice': reg + '.downscale'})
+ ]),
])
);