What does "exclude from export files" do?
Hi All,
I have an interesting problem to solve:
my design consists of 32 identical channels of processing on an ADAU1467 processor. I have a number of SigmaDSP designs done and I have a process where I "export the system files", run a simple program over them which slightly massages and compresses the data into tables that are then included into the program space of my Host CPU (a PIC32MX795F512L) but with this design the tables come out too big for the existing program space.
Because the 32 channels are all identical, with identical initialisation parameters, I could save a _LOT_ of space by only including the params of channel 1 and then copying them to all the other channels so I was looking for a way to do this automatically. I can see that the DM0 data table consists of repeating blocks of identical data (all the EQs, all the volume controls etc.) so this should work.
I found that SigmaStudio has an option you can set "Exclude from Export Files" so I tried it but it doesn't seem to have achieved anything as my DM0 data table is still the same size!
Could anyone explain to me what the "Exclude..." feature is supposed to do, and does it work in this current version of SigmaStudio (V4.7)
Thanks for any ideas
PhilipJ
Audio Signal Processors
software
4.7
sigmaStudio 4.7
adau1467
sigmastudio
SigmaDSP Audio Processors
Show More
Hello Philip,
Are you expecting that rest of the channel's audio processing parameters (volume, filters, etc.) will not be reflected in the DM0 memory?
All parameters those were included in the schematic have an address that the core will access every sample period to run the audio program. So, all the 32 channel's audio processing parameters will be stored in the memory for the core to access. Do you expect only one channel's parameters must be stored in DM0 and rest shouldn't be? Could you please explain a bit?
That exclude option will be reflected in params.h file in your exported files. These files are mainly used for microcontroller integration. If your DSP program has a filter and volume control and your uC only wants to control the volume module in run time and it's not intended to change anything in the filter module (example, If the filter has a fixed parameter like cutoff freq of 1000 (from calculated co-effs)). Now you don't need the parameter addresses and values of the filter module since you don't intend to touch the filter. So, it (a bunch of macros related to filter parameter) can be excluded from the params.h file. This is what that exclude option does.
I hope you have gone through the below FAQ.
FAQ: Excluding Cells from the Exported System Files - Documents - SigmaDSP Processors & SigmaStudio Dev. Tool - EngineerZone (analog.com)
Is something different you are trying to do than this? Can you please clarify a bit?
Regards,
Harish
Hi Harish, thanks for replying.
As you suggest, I am using a uC to program and control theSigmaDSP and I was hoping for a way to reduce the size of the initialisation tables that must be loaded into the SigmaDSP memory. As mentioned, the design is 32 identical channels to the DM0 initialisation table consists of 32 identical blocks of data and rather than store this in my host CPUs flash memory I want to store just one block and loop on it 32 times. _BUT_ I wanted to try and get an automated method to achieve this rather than hand edit the table as this could become a pain if I have to do it every time I alter the DSP design a bit.
When I saw "exclude from export files" I thought this might be what I wanted, I tried it but to be fair I only looked at the size of the ".dat" file to see if it had done what I wanted, I didn't at the point examine the "params.h" file...
I hadn't found the FAQ you mention so thanks for the link to that - I think it pretty well answers my question in that it omits the algorithm parameters from the 'params.h' file but not from the data table. This seems fair as I can't expect SigmaStudio to know the niceties of my individual design and adapt accordingly. I will have to write an app myself to strip out the "copy" channels and then add to my Host CPU initialisation routine to do the copy/paste stuff before releasing the SigmaDSP from RESET.
Thanks for your interest
Kind regards
PhilipJ
Hello PhillipJ,
I will add to Harish's answer. This is to exclude an object from the system files outputs if you never want to control it from your micro-controller. This is indeed what you are trying to do to make the files smaller.
I have always felt this feature is backwards. I feel that ALL objects should be excluded and you add object you want included into the report. Because, most applications will only control a few objects not everything in a project. It is a lot of work to go through a project and exclude everything to make the output files smaller. Another way would be to have a window pop up or a list. Anyway, Yes, this is how you reduce the file size.
Dave T
Please log in to reply.