Error in data size using CIC filter in Simulink R2020b: The number of input rows must be a multiple of the decimation factor
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying a simple Simulink model of an NCO generating a sin and cos which I then use in their own respective CIC decimator to generate quad and real output signals.
In the two product blocks (X) I get an error "The number of input rows must be a multiple of the decimation factor". I tried adding the convert blocks and specifying output type fixdt(1,20,18), but that didn't help. The NCO is generating the proper sin and cos with amplitude +/-1 and frequency 13.5MHz with a 256Mhz sample rate.
What is the trick to getting the CIC to work? I looked at a similar Matlab Example for a GSM dds and it worked, but there was nothing special done (that I could see) to make the CIC input data types correct. Please help, I've spent a day chasing this problem :(

0 Kommentare
Antworten (1)
Walter Roberson
am 26 Mai 2023
Bearbeitet: Walter Roberson
am 26 Mai 2023
You appear to be passing a 1 x 1 signal into decimation. Decimation works on a non-scalar.
You probably need to buffer the signals and decimate the result.
1 Kommentar
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!