- Joined
- Apr 12, 2010
- Messages
- 6
- Reaction score
- 0
I have been trying to write a function which could be synthesized that implements the additions of the elements of a varying sized array.
I am trying to add the elements in pairs instead of adding by cascaded adders. I also know the width of the input array at compile time, but I cant work out a way of automatically generating each adder result and using these results in the next level. Has anyone tried to do something similar, or am I just trying to do the impossible?
Thanks,
Jason
I am trying to add the elements in pairs instead of adding by cascaded adders. I also know the width of the input array at compile time, but I cant work out a way of automatically generating each adder result and using these results in the next level. Has anyone tried to do something similar, or am I just trying to do the impossible?
Thanks,
Jason