print "<tr>";
- print <<EOF;
-<td onClick='toggleVis("$flistid",this)' class='regheader'> + </td>
-EOF
+ print qq%<td onClick='toggleVis("$flistid",this)' class='regheader'> + </td>%;
print "<td title=\"$registerDescr\">$registerName</td>";
#print "<td>$registerId</td>";
if ( $xmlfile eq $configFile ) { # we are printing the Specifications Tree
- print <<EOF;
-<td class='button_move' onclick='deleteSettings("$configFileName","$registerName","");$editorRefreshCommand'> X </td>
-EOF
+ print qq%<td class='button_move' onclick='deleteSettings("$configFileName","$registerName","");$editorRefreshCommand'> X </td>%;
}
if ( $xmlfile eq $specFile ) { # we are printing the Settings Tree
-
- print <<EOF;
-<td class='button_move' onclick='copyDefaultRegister("$configFileName","$registerName");$editorRefreshCommand'> → </td>
-EOF
+ print qq%<td class='button_move' onclick='copyDefaultRegister("$configFileName","$registerName");$editorRefreshCommand'> → </td>%;
}
print "</tr>";
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
sub print_fields {
my $configTree = getConfigTree();
my $specTree = getSpecTree();
- my $register = $_[1];
- my $xmlfile = $_[0];
+ my $register = $_[1]; # register might come from quickEditMaskTree
+ my $xmlfile = $_[0]; # xmlfile can be specFile or configFile but not quickEditMaskFile
my $registerName = $register->findvalue("./\@name");
my $xmltree;
my $field = $xmltree->findnodes("/MAPS/register[\@name='".
$registerName."']/field[\@name='".$fieldName."']")->shift();
- unless(defined($field)){
+ unless(defined($field)){ # is the field we want to print in the config/specTree?
# check if the mask field is defined in the config tree
# if not get the default value from the specification
# this feature should be only important for the testgui,
# not for the JTAG editor, because there
# the quickEditMaskTree == configTree
+
+ #
+
+
my $specField = $specTree->findnodes("/MAPS/register[\@name='".
$registerName."']/field[\@name='".$fieldName."']")->shift();
- $field=$register->addNewChild("","field");
+# $field=$register->addNewChild("","field"); # this is the place where the double fields are coming from
+ $field = $maskField;
$field->setAttribute("name",$fieldName);
$field->setAttribute("value",$specField->findvalue("./\@defaultValue"));
$field->setAttribute( "isHeritageFrom", $specFileName );