![]() |
|
|
|
#1 |
|
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 Divyang M |
|
|
|
|
#2 |
|
Posts: n/a
|
Divyang M wrote:
> 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? What about a generic parameter and using the if-generate statement? If bufferA and bufferB have the same entity, you may also use one entity and two architectures, while a VHDL configuration specifies which one has to be chosen. Ralf Ralf Hildebrandt |
|
|
|
#3 |
|
Posts: n/a
|
Hi Ralf,
Using if-generate statements with generics did the job. Thanks, Divyang Divyang M |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error: Physical sythesis tool PALAC is not supported by Formal Verification tool Conf | bbiandov | Software | 0 | 12-22-2008 05:25 AM |
| Sewing, Embroidery & SignMaking Software.. | embsupply | Software | 0 | 10-02-2007 04:29 PM |
| Sewing, Embroidery & SignMaking Software.. | embsupply | Software | 0 | 08-14-2007 04:01 PM |
| network design help....... | bunty4u | The Lounge | 1 | 04-08-2007 04:39 AM |
| Re: Reference Material On Server Chassis Design? | AG | A+ Certification | 0 | 01-30-2004 06:12 PM |