145if(data_in_we='1')then -- reset pulsed-clock-en data
146headerDelayOne<='0';
147endif;
148
149
150 --====================
151 --====================
152 -- primaray path
153if(reset='1')then --reset can still happen even if data_in_we is low.
154busy<='0';
155analysisRunning<='0';
156elsif(data_in_end='1')then -- Indicates end of header/payload data. So send external footer!
157data_out_we<='1';
158data_out<=footer_in; --we need one clock to figure out if we need to veto. The header signals coming from anything else in the firmware application can be sent at this time.
159
160sendFooter<='1'; --send internal footer next clock
161
162 --Check if we will veto the signal and take approperate action