Commit 73c79d5a authored by Stefan Tauner's avatar Stefan Tauner
Browse files

fiji_ee: use FIU names in manual mode

Related to vecs/fiji#60
parent 00b9a4a2
......@@ -345,15 +345,18 @@ sub _get_test_from_stdin {
my ($self) = @_;
my $fiji_design_consts = $self->{'fiji_settings'}->{'design'};
my $fius = $self->{'fiji_settings'}->{'fius'};
my $test = {};
my $cfg_mask = 2**$fiji_design_consts->{'FIU_CFG_BITS'} - 1;
my $default_cfg = $cfg_mask;
for (my $i = 0 ; $i < $fiji_design_consts->{'FIU_NUM'} ; $i++) {
my $fiu_name = @{$fius}[$i]->{'FIU_NAME'};
my $fiu_name_str = (defined($fiu_name) and length($fiu_name) > 0) ? "(\"$fiu_name\") " : "";
for (my $t = 1 ; $t <= $fiji_design_consts->{'CFGS_PER_MSG'} ; $t++) {
my $phase = ($t < $fiji_design_consts->{'CFGS_PER_MSG'}) ? "in t".($t+1) : "after t$t";
printf("Enter configuration for FIU #%d %s (default: 0x%x): ", $i, $phase, $default_cfg);
printf("Enter configuration for FIU #%d %s%s (default: 0x%x): ", $i, $fiu_name_str, $phase, $default_cfg);
my $cfg_str = <STDIN>;
goto PREMATURE_EOF unless defined $cfg_str;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment