From: Cahit Ugur Date: Wed, 9 Jul 2014 11:41:11 +0000 (+0200) Subject: design information update for TDC designs X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=42aa13ec91f43c4d730dfea1345fdc196c8af72e;p=daqtools.git design information update for TDC designs --- diff --git a/web/htdocs/network/map.pl b/web/htdocs/network/map.pl index e4a740c..8afdd86 100755 --- a/web/htdocs/network/map.pl +++ b/web/htdocs/network/map.pl @@ -226,7 +226,9 @@ sub GetTDCInfo { my ($addr,$info,$inp) = @_; my $d = trb_register_read($addr,0xc100); my $feat = ""; + my $module = ($info>>16&0x3)+1; $feat .= " ".($d->{$addr}>>8&0xFF)." channels"; + $feat .= " read by ".$module." module(s)"; $feat .= ", version ".(($d->{$addr}&0x0e000000)>>25).".".(($d->{$addr}&0x1e00000)>>21).".".(($d->{$addr}&0x1e0000)>>17); if($inp) { for($info&0xFF) { @@ -242,6 +244,12 @@ sub GetTDCInfo { when (2) {$feat .=", dual edge in alternating channels";} when (3) {$feat .=", dual edge same channel + stretcher";} } + for($info>>12&0x7) { + when (0) {$feat .=", RingBuffer size: 12 words";} + when (1) {$feat .=", RingBuffer size: 44 words";} + when (2) {$feat .=", RingBuffer size: 76 words";} + when (3) {$feat .=", RingBuffer size: 108 words";} + } return $feat; }