From: Jan Michel Date: Mon, 23 Nov 2015 13:27:36 +0000 (+0100) Subject: Updating xml: Adding main MDC-OEP registers, template for GBE X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=768b67c09963dac2d1e11f18874727dbc1f4241a;p=daqtools.git Updating xml: Adding main MDC-OEP registers, template for GBE --- diff --git a/web/htdocs/addons/mdc.pl b/web/htdocs/addons/mdc.pl new file mode 100755 index 0000000..d4552b5 --- /dev/null +++ b/web/htdocs/addons/mdc.pl @@ -0,0 +1,50 @@ +#!/usr/bin/perl +if ($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i) { + print "HTTP/1.0 200 OK\n"; + print "Content-type: text/html\r\n\r\n"; + } +else { + use lib '..'; + use if (!($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i)), apacheEnv; + print "Content-type: text/html\n\n"; + } + +use CGI ':standard'; +use XML::LibXML; +use POSIX; +use CGI::Carp qw(fatalsToBrowser); + +use lib qw|../commands htdocs/commands|; +use xmlpage; + +my $page; + +$page->{title} = "MDCOEP"; +$page->{link} = "../"; + +my @setup; + +push(@setup,({name => "Status", + cmd => "MDC-0xfffd-Status", + period => 1000, + address => 1})); + +push(@setup,({name => "Counters", + cmd => "MDC-0xfffd-Counters", + period => 1000, + address => 1})); + +push(@setup,({name => "Voltages", + cmd => "MDC-0xfffd-Voltages", + period => 1000, + address => 1})); + + +xmlpage::initPage(\@setup,$page); + + + + +1; + + diff --git a/web/htdocs/index.pl b/web/htdocs/index.pl index 69782ad..3f62763 100755 --- a/web/htdocs/index.pl +++ b/web/htdocs/index.pl @@ -75,6 +75,7 @@ The main documentation of the network can be found in these documents and locati diff --git a/xml-db/database/GBE.xml b/xml-db/database/GBE.xml new file mode 100644 index 0000000..c28652e --- /dev/null +++ b/xml-db/database/GBE.xml @@ -0,0 +1,17 @@ + + + Registers for the Gigabit Ethernet Interface + + + + + + Number of clock cycles with trigger asserted + + + + diff --git a/xml-db/database/MDC.xml b/xml-db/database/MDC.xml index 7013d91..8193f8e 100644 --- a/xml-db/database/MDC.xml +++ b/xml-db/database/MDC.xml @@ -44,5 +44,230 @@ const char voltages[8][8]={"5V in ","5V ","3.5V in","3.3V ","1.6V in","1. - + + + + Many status registers for each of the entities controlling MBO and Readout + + Token Ring Controller Status + + Token is back from TDC chain + + + Token is lost in TDC chain + + + Common Stop Signal is active + + + + Status of trigger handler state machine + + Idle + Begin Run + Timing Trigger + Calibration Trigger + Do Readout + Wait for data + Release LVL1 + Do Reinit + Do Reinit 2 + + + + Status of data handler state machine + + Idle + Send data + Send long data + Send dummy + Finish + Write Debug + Status Address + Status Wait + Status Calc + Status Write + Status Finished + + + + + + + + + + + + + Status of TDC readout handler state machine + + Idle + Save L + Send Token + Wait 1 + Wait 2 + Save L next + Wait AOD + Wait 3 + Wait 4 + Save H next + + + + + + + + + + Status of Control Line handler state machine + + + + + + + + + + + + Status of the begin-run trigger handler state machine + + + + + + + + + + + + Status of Mode Line handler state machine + + + + + + + + + + + + Status of TDC setup loader state machine + + + + + + + + Status of send token state machine + + + + + + Counters for data words and errors + + Board Information + + Internal trigger number + + + + + + + Number of missing tokens + + + + Number of physics triggers + + + + Number of calibration triggers + + + + Number of discarded Hit 1 words from TDC + + + + Number of discarded Hit 0 words from TDC + + + + Number of discarded words + + + + Number of truncated events due to limit of words per event + + + + Number of single, double or triple hit 1 words + + + + Number of single, double or triple hit 0 words + + + + Number of retransmit requests + + + + + Number of words given to data handler + + + + Number of invalid triggers received + + + + Number of multiple triggers received + + + + Number of spikes on CMS received + + + + Number of spurious triggers received + + + + Time the OEP was idle + + + + Time the OEP was busy initializing the MBO + + + + Time the OEP was busy doing calibration + + + + Time the OEP needed to read data from TDCs + + + + Time the OEP was waiting + + + + Number of spikes on CMS, detected asynchronously + + + + + +