Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing generic value

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
My query is regarding passing generic value to the instances. I know how it is done normally ( using
generic map while instantiating or while binding
component in configuration ). But my problem is a little
different. I want to know how to pass a generic value to an entity which is not instantiated anywhere ( its the top level entity ). This top level entity is the testbench entity which is not instantiated but has a generic. I want to pass the generic value in the configuration of this top level entity. When I want to change the generic value I will just change the configuration file.
Regards,
Sharan
 
If you want to pass a generic value to a top level entity, then have a package file where map this generic to a signal type defined in package(appropriate type). Just use work.package.all in the header portion of top level entity and compile that package before this entity.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top