From 501b5b7391526ab9c88206adcaa000012005c535 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Mon, 12 Jun 2023 13:52:50 +0200 Subject: [PATCH] update CTS GUI --- web/CtsPlugins/CtsMod15.pm | 10 +++++++++- web/htdocs/cts/cts.htm | 8 ++++---- web/htdocs/scripts/cts.js | 4 ++-- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/web/CtsPlugins/CtsMod15.pm b/web/CtsPlugins/CtsMod15.pm index c9a5211..47d7778 100755 --- a/web/CtsPlugins/CtsMod15.pm +++ b/web/CtsPlugins/CtsMod15.pm @@ -54,12 +54,20 @@ sub init { $chanStart += 16; } + if ($cprop->{'trb_compiletime'} >= 1686567120) { + for(my $k=0; $k<4; $k++) { + for(my $l=0; $l<4; $l++) { + $regs->{$key}{'_defs'}{'input'}{'enum'}{$k*4+$l+$chanStart} = "fpga".$k."[$l]"; + } + } + $chanStart += 16; + } + if ($cprop->{'trb_compiletime'} >= 1416136409) { for(my $k=0; $k<16; $k++) { $regs->{$key}{'_defs'}{'input'}{'enum'}{$k+$chanStart} = "itc[$k]"; } } - } diff --git a/web/htdocs/cts/cts.htm b/web/htdocs/cts/cts.htm index e881752..faa20f4 100644 --- a/web/htdocs/cts/cts.htm +++ b/web/htdocs/cts/cts.htm @@ -182,10 +182,10 @@ - - - - + + + +
#from FPGA 1from FPGA 2from FPGA 3from FPGA 4from FPGA 1from FPGA 2from FPGA 3from FPGA 4
diff --git a/web/htdocs/scripts/cts.js b/web/htdocs/scripts/cts.js index 43a551b..47ca8ea 100644 --- a/web/htdocs/scripts/cts.js +++ b/web/htdocs/scripts/cts.js @@ -543,7 +543,7 @@ var CTS = new Class({ tab.adopt(header = new Element('tr', {'class': 'snd_header'})); header.adopt(new Element('td')); for(var f=0; f < 4; f++) { - for(var i=4; i>=0; i--) { + for(var i=4; i>0; i--) { header.adopt( new Element('td', {'class': 'slice' + i}).adopt( new Element('abbr', {'text': i-1, 'title': 'mapped to FPGA' + (f+1) + '_COMM(' + (i+6) + ')' + (i?'': ' - not accessible by most frontends')}) @@ -557,7 +557,7 @@ var CTS = new Class({ row.adopt(new Element('td', {'text': pt, 'class': 'num'})); for(var f=0; f<4; f++) { - for(var i=4; i>=0; i--) { + for(var i=4; i>0; i--) { var bit = (5*f + i); row.adopt(new Element('td', {'class': 'slice' + i}).adopt(new Element('input', { 'class': 'autoupdate autocommit', 'type': 'checkbox', -- 2.43.0