Design Configuration

D

Divyang M

Guest
Hi,

I have created three buffers components (bufferA, bufferB, bufferC)of
varying lengths and instantiate bufferA inside MyEntity. Now, I want
to create another instance of MyEntity but use bufferB instead of
bufferA.

Is there a way that I can use some configuration script in the VHDL
file to let it know which buffer to instantiate? (FYI - I am using
ModelSim 5.7f for simulation and QuartusII for synthesis and P&R and
would like the configuration to be compatible with both these).

I know the easiest way is just to create three separate entities but
I'm trying to learn more here :)

Thanks,
Divyang M
 
Hi Ralf,

Using if-generate statements with generics did the job.

Thanks,
Divyang
 

Welcome to EDABoard.com

Sponsor

Back
Top