Forum Discussion
Altera_Forum
Honored Contributor
10 years agoThanks for the Response.
My requirement is to have only one single .vhd file defining the entity/architecture, and here is the reason: I have 5 different sized and typed memory in this project, EEPROM and FLASH, interfacing with existing hardware. The generics work fine, however the data requires a function to generate information. If the creation of the data is in the entity/architecture file, the project would require 5 separate copies, each with a unique function. Since I'm still working on the SPI memory, one code change would have to update all 5 files, not the normal simulate, code change, re-compile pattern. I’m not particular if there is 1 or 5 .vhd package files or a different option I haven’t thought of yet, it’s just the functionality. I’m still using VHDL 1993, however I’m willing to upgrade if 2008 has benefits, but didn’t hear any good reports. In the end, when I use the same SPI memory in another project, the single .vhd entity/architecture file should be the one placed in the next project, and the generics and/or data function could be created separate. And sometimes I’m forced to use Block Diagram/Schematic version, which may make more difficult. The next project I am going to work on is a 31 band EQ, so I hope it works by then, updating 5 separate file is painful, updating 31 files is brutal. David K.