Skip to content
Snippets Groups Projects
Commit 1bd0c011 authored by Erik von Reis's avatar Erik von Reis
Browse files

Merge branch 'branch-4.2-fir-rate-error' into 'branch-4.2'

Adding check to verify model rate when a FIR filter is being generated

See merge request !385
parents 270155b0 1574b0e1
No related branches found
No related tags found
4 merge requests!439RCG 5.0 release fro deb 10,!395Next dev build,!393RCG: correct dac duotone amplitude,!385Adding check to verify model rate when a FIR filter is being generated
......@@ -80,6 +80,13 @@ sub frontEndCode {
my ($i) = @_;
my $calcExp = "// FILTER MODULE";
if ($::ppFIR[$i] == 1) {
if ( $::modelrate ne 2 and $::modelrate ne 4 )
{
die ("Error - The model has a FIR filter in it but has a rate of " . $::modelrate .
"K, only 2K and 4K models support FIR filters.");
}
$calcExp .= " (PolyPhase FIR)";
}
$calcExp .= ": $::xpartName[$i]\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment