Commit 887f8351 authored by Stefan Tauner's avatar Stefan Tauner
Browse files

FIJISettingsCanvas: update LFSR vector only if LFSR_WIDTH seems (somewhat) legal

parent e60732eb
......@@ -457,7 +457,7 @@ sub update {
# FIUS
#---------------------------------------------------------------------------
$self->itemconfigure($fiu_elements->{'0'}->{'lfsrtxt'}, -text => "LFSR [" . ($design_ref->{'LFSR_WIDTH'} - 1) . ":0]");
$self->itemconfigure($fiu_elements->{'0'}->{'lfsrtxt'}, -text => "LFSR [" . ($design_ref->{'LFSR_WIDTH'} - 1) . ":0]") if ($design_ref->{'LFSR_WIDTH'} =~ /^[1-9][0-9]*$/);
# Make all FIU-related elements invisible
for my $i (keys(%{$fiu_elements})) {
......
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