Hi,
When I have some complex operation to perform on a number of input data I often use a loop to avoid duplicating code of course - for instance:
Sometimes, when the number of input data is small (like 2 or 3 elements maybe), I skip building the loop output into an array just to index it out again outside the loop. Instead I do something like this (mis)using a shift register:
As a simpler alternative I suggest output shift registers be expandable just as input shift registers are:
For a small N-count this could generally be used instead of indexing an output auto-tunnel.
Cheers,
Steen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.