Skip to content
Snippets Groups Projects
Commit 1574b0e1 authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

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

parent 270155b0
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