hi...
i ve written certain modules in vhdl;
Now i ve to SELECT THE MODULES(components) for operations BASED ON SOME CODITIONS.
1. But i learnt port mapping cant be done for conditions... (port mapping cant be done inside process)
2. are there any concurrent conditional' port mapping statements'
3. OR ANY WAY ROUND.
Think about what you're asking. Imagine an entity is like a chip on a circuit board. You cant just conditionally add a chip while the circuit is running.
You have to use control signals to control the dataflow, not instantitate as and when its needed.
So the answers are:
1. No for runtime, but you can use generics and generate statements that conditionally create logic at compile time.
2. Not for runtime
3. No
As Tricky said, port map, configurations, generate, generic all these in VHDL help user design a piece of code which can comply for many needs. For example, a user may design a small VHDL design with 32-bit interface, and the other user may want to use 64-bit. If your code uses these types for all definitions, your code can very easily be upgraded for 64-bit with ease. If not, you need to work out more.
On field, these will not account into. For example, you cannot pass generic values in real time, the same for configurations too....These are so handy in simulation and compilations only
---------- Post added at 15:35 ---------- Previous post was at 15:25 ----------
Well, it would be no.
Either you can use gated clocks to enable\disable clocks to certain parts of logic, as you like (for Power save\interference), but not with these generate\configurations dude.