From: Maps Date: Mon, 14 Apr 2025 07:05:12 +0000 (+0200) Subject: added chipid to dac gui X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=dd4214895b82df136286c2e1ce281d61e60bc372;p=mimosis_chain.git added chipid to dac gui --- diff --git a/http/htdocs/getdac.pl b/http/htdocs/getdac.pl index fb448f1..a6a7b3e 100755 --- a/http/htdocs/getdac.pl +++ b/http/htdocs/getdac.pl @@ -17,6 +17,7 @@ my ($fpga,$reg,$value) = split('-',$ENV{'QUERY_STRING'}); $fpga = hex( $fpga ) if $fpga =~ /^0x/; Mimosis::set_fpga( $fpga ); +Mimosis::set_chipid(1); #single access mode as default Mimosis::set_singleAccess(1); my $val; diff --git a/http/htdocs/setreg.pl b/http/htdocs/setreg.pl index 798dda7..0a99b38 100755 --- a/http/htdocs/setreg.pl +++ b/http/htdocs/setreg.pl @@ -15,5 +15,5 @@ $register = sprintf("0x%X", $register); $value = sprintf("0x%X", $value); # system("cd ../scripts; ./mimosis_i2c_cmd.pl -f $fpga -r $register -d $value -s"); -system("mimosis -f $fpga -a reg $register $value"); +system("mimosis -f $fpga -a -c1 reg $register $value"); exit 1;