Afre*d, how about posting the code you want to fix? If you have a 30-
tap FIR filter that's written as 30 separate lines of code, I can tell
you right off you should change your coding style to use generates or
more effective parameterization. Doing this, you will introduce
opportunities for conciseness which will help you express your reset
better. On the other hand, if you have a rat's net of control logic,
all of which must be individually reset, you have a different
restructuring problem. You can also do some creative things with
record types and constructor functions to make your code both more
readable and easy to modify. But without seeing more specifics, it's
hard to give a useful response.
- Kenn
Thanks everybody for the feedback , I will try to be more clear this
time. I have an IIR SOS filter with 4 sections.
each section has 10 signals aproximately. The coefficients of the
multipliers are variable depending on the selected channel. What I am
trying to implement is a reset of all the signals of all the sections
so that when the new filter is selected , every signal of the filter
is clear. The first idea that comes in my mind to do these is a
process sensitive to a reset pin. -- The following is a quick
example , my code doesnt look like this--
process (reset)
begin
if ( reset'event and reset'last_value='0') then
signal_1<=(others => '0');
signal_2<=(others => '0');
signal_3<=(others => '0');
signal_4<=(others => '0');
signal_5<=(others => '0');
......etc etc until we reach the 40 signals.
end if;
end process;
So , any suggestions????
Thanks a lot