barry
Advanced Member level 7
- Joined
- Mar 31, 2005
- Messages
- 6,578
- Helped
- 1,208
- Reputation
- 2,428
- Reaction score
- 1,438
- Trophy points
- 1,393
- Location
- California, USA
- Activity points
- 35,770
And then when you end up with 256 types of SPI modules you start generalizing again ?
It's been my experience that when you try and make something "generalized", you end up with an unwieldy piece of junk where 50% of it's functionality is never used at any one time. If you partition your design properly, again, using my "SPI Input" module example, you can reuse the input module, output module etc. with NO customization, and just customize the upper levels.
- - - Updated - - -
makes it extremely painful to deal with code that is hidden behind all those submodules
The whole point of having a component (sorry, I only speak VHDL) is that you don't have to worry about any of the lower-level stuff-it's already been vetted. I don't need to know anything about the piston rods in my car in order to drive it.