generate statement

C

crazyrdx

In the generate statement, in the If- generation scheme,

generate-label : if (expression) generate

If I want to test more than one expression , how can I do this?

Thanks
 
H

Hubble

Why don't you use

if (expression1) and (expression2) and (expression3) generate

You can also use

if (expression1) and (not (expression2)) or (expression3) generate

Hubble
 
V

vizziee

generate-label : if (expression) generate

If I want to test more than one expression , how can I do this?
You can use AND or OR etc to combine expressions but the expression
should be a function of your index. Also you should write all the cases
exhaustively.
 
A

Andy Peters

crazyrdx said:
In the generate statement, in the If- generation scheme,

generate-label : if (expression) generate

If I want to test more than one expression , how can I do this?

Peter Ashenden's VHDL book has an excellent section on generates. You
might consider buying that book and reading it ...

-a
 

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

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top