From 611e3edf4f088de8537dc9f65acdfa708b1aed01 Mon Sep 17 00:00:00 2001 From: Manuel Penschuck Date: Tue, 28 Oct 2014 18:50:20 +0100 Subject: [PATCH] CBM-MBS Register Definition added --- web/htdocs/index.pl | 1 + web/htdocs/tools/cbmmbs.pl | 38 ++++++++++++++++++++++++++++ xml-db/database/CBMMBSRecv.xml | 46 ++++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100755 web/htdocs/tools/cbmmbs.pl create mode 100644 xml-db/database/CBMMBSRecv.xml diff --git a/web/htdocs/index.pl b/web/htdocs/index.pl index 120f846..bc803b3 100755 --- a/web/htdocs/index.pl +++ b/web/htdocs/index.pl @@ -94,6 +94,7 @@ The main documentation of the network can be found in these documents and locati
  • Everything else
  • Padiwa (xml-based, with thresholds)
  • Billboard +
  • CBM-MBS Receiver diff --git a/web/htdocs/tools/cbmmbs.pl b/web/htdocs/tools/cbmmbs.pl new file mode 100755 index 0000000..6356e20 --- /dev/null +++ b/web/htdocs/tools/cbmmbs.pl @@ -0,0 +1,38 @@ +#!/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} = "CBM MBS Receiver"; +$page->{link} = "../"; + +my @setup; +my $i = 0; + +$setup[$i]->{name} = "StatusAndControl"; +$setup[$i]->{cmd} = "CBMMBSRecv-0xffff-ControlAndStatus"; +$setup[$i]->{period} = -1; +$setup[$i]->{address} = 1; + + +xmlpage::initPage(\@setup,$page); + +1; + + diff --git a/xml-db/database/CBMMBSRecv.xml b/xml-db/database/CBMMBSRecv.xml new file mode 100644 index 0000000..f623b13 --- /dev/null +++ b/xml-db/database/CBMMBSRecv.xml @@ -0,0 +1,46 @@ + + + CBM-MBS Receiver Block with own Regio-Handler (unlike in the default CTS-ETM configuration) + + + + Main information of module + + Active high, instructs the module to write data into data-stream + + + Active high, inverts polarity of input signal + + + Active high, indicates that module was synthesised to include a timestamp in the readout stream + + + Active high, indicates error in last data word received (same as error-bit in readout stream) + + + Last data word received + + + + + Counts number of data words received via MBS link + + + + + Counts activity of MBS input, i.e. number of cycles the input changed, sampled at TrbNet clock + + + + + Counts number of TrbNet clock cycles the MBS line was high (< 90% indicates wrong polarity) + + + + + + \ No newline at end of file -- 2.43.0