Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

VHDL Configuring generics

Hi,

i have written a VHDL Model wich is configured by a set of generics in the top level entity. The Ports of the model are always the same. No i want to give a number to every set of generics, and choose the generic set by only changing the number in the code. What is the right VHDL keyword?

For example:

Set# 1:

Generic Map(

gen1 := 17

gen2 := 22

gen3 := 14

..

..

)

Set# 2:

Generic Map(

gen1 := 1

gen2 := 4

gen3 := 12

..

..

)

Now i only want to change the set# to select the generics.

Thanks in advance,

paddy

12 Replies