Commit 6772d460 authored by Stefan Tauner's avatar Stefan Tauner
Browse files

Change default LFSR mask to FIU^th bit modulo mask width

parent cc1c1f88
......@@ -739,7 +739,9 @@ use constant DISPLAYGROUPS_FIU_KEY => 'fius';
# - phases_opt (optional) list of phases (subset of "setup", "instrument", "download")
# where no value must be present in input (e.g. ID is only necessary while downloading).
# - group (optional) specifies how to group this value in output. Value will not be displayed if undef
# - default (optional) default value if not given in file and not determinable otherwise
# - default (optional) default value if not given in file and not determinable otherwise.
# Can either be a scalar or a function pointer expecting following parameters:
# related FIJI settings hash, the tool phase, FIJI design settings, FIU number.
my %fiumap;
BEGIN {
......@@ -779,7 +781,12 @@ BEGIN {
},
FIU_LFSR_MASK => {
ini_name => "LFSR_MASK",
default => 0,
default => sub {
my ($consts_ref, $phase, $design_ref, $i) = @_;
$i = 0 if !defined($i);
my $mask_width = defined($design_ref) && defined($design_ref->{'LFSR_WIDTH'}) ? $design_ref->{'LFSR_WIDTH'} : 1;
return 1 << ($i % $mask_width);
},
type => 'hexadecimal',
help => "Selects the bits of the LFSR that are ANDed together to determine the value of a floating net.",
phases_opt => [qw(setup)],
......
Markdown is supported
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