Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generic package in VHDL

Tags:

vhdl

Is it possible to have a generic package? This means that when I instantiate the entity I provide some generic and the package will depend on that.

I have a block which I want to use several times, each time with different package (I.e. different parameters)

I have to use package because I want to use array of arrays and I could do that only with packages.

like image 704
nir Avatar asked Nov 12 '22 18:11

nir


1 Answers

Yes, but that's a VHDL-2008 feature. So whether you will be able to use it depends on your tools.

This feature is really powerful.

Here is an example.

like image 68
wap26 Avatar answered Nov 15 '22 10:11

wap26