generics depending on generics

Joined
Feb 2, 2009
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top