Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   VHDL (http://www.velocityreviews.com/forums/f18-vhdl.html)
-   -   generics depending on generics (http://www.velocityreviews.com/forums/t668380-generics-depending-on-generics.html)

Soul 02-02-2009 09:14 AM

generics depending on generics
 
Hi everyone

I have a question or maybe it's better to say: I got a problem.

I got a top-level entity with this generics:

length of bitstream, e.g. = 3
number of elements, e.g. = 4
data array , e.g. 000, 001, 110, 111

As you can see, the array's length and number of elements depend on the other generics. At top-level it is no problem, because you would write it down there. But I need to communicate this information to a lower entity... how can I do that ? I figured out, how to use an array type für the generic list, but this type now also depends on a generic.

Also at the lower-level entity I would need to write something like this :

signal <= '1' when inp = "000" or inp = "001" etc...

At this line I also have no clou how to write that with generics ;)

Thanks for any help

lg soul


All times are GMT. The time now is 11:00 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57