I have a question about writing scalable code in VHDL.
I have a structural VHDL project that contains a lot of components. I would like a method of changing the bit size of all components by just changing one value in my top level file.
For example I would like a integer constant called dataWidth that I can change in my top level file that will change the data size of all components used in this top level file.
I tried declaring the integer as a generic inside the entity of the top level file but it in the other components it doesn't compile saying the dataWidth hasn't been declared.
What is a simple method of doing this?
I can provide code if you need to see it.