How to write continuous input data to FIR Accelerator in ADSP-SC584

I got sample code for FIRA and worked on it for sample data, but if i want to control it in real time so i need to fill the input buffer with my new input data samples continuously.

I dont know how to input my new input samples into the input buffer.
We get 8 samples block continuosly and need to feed to the FIR accelerator input buffer and get output of WindowSize = 8.
We thought of a couple of ways and have these questions:
1. Do we have an Index Register to write data in input buffer just like "Input Index Data Register" is for reading data from the circular input buffer?
2. How to control the Prefetch Buffer in Accelerator for Window Size >= 1 ?
Are there any alternate solutions for using FIRA in continuous pipelined manner for window size = 8?
Thank you.
  • 0
    •  Analog Employees 
    on Dec 6, 2019 8:52 AM

    Hello,

    Regarding, " Do we have an Index Register to write data in input buffer just like "Input Index Data Register" is for reading data from the circular input buffer?"
    >> We can input the data using input data base register. This is where the FIR data fetch will start. Index register will be updated every time after the window size is complete. Once total count expires, it will shift to next channel's base register. Please refer the Chain assignment section for the structure of the TCB chain and understand the input, co-efficient and output assignments to the FIRA.

    Regarding, "How to control the Prefetch Buffer in Accelerator for Window Size >= 1 ?"
    >> I don't think we can access Prefetch Buffers. This is an internal operation for pipe-lining.

    Regrading,"Are there any alternate solutions for using FIRA in continuous pipelined manner for window size = 8?"
    >>Since you wanted continuous circular manner, the last TCB channel can be circularly connected to 1st channel. This way all TCBs can be linked together. You can configure to do the process every time 8 sample data is arrived for the processing. Please look at the "Figure 51-5 : Single channel Filtering Flow" in the Hardware reference manual for your reference.

    Regards,
    Anand Selvaraj.