Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - generate statement

 
Thread Tools Search this Thread
Old 09-01-2005, 06:32 PM   #1
Default generate statement


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



crazyrdx
  Reply With Quote
Old 09-02-2005, 10:53 AM   #2
Hubble
 
Posts: n/a
Default Re: generate statement
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



Hubble
  Reply With Quote
Old 09-04-2005, 09:57 AM   #3
vizziee@gmail.com
 
Posts: n/a
Default Re: generate statement

> 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.



vizziee@gmail.com
  Reply With Quote
Old 09-06-2005, 06:56 PM   #4
Andy Peters
 
Posts: n/a
Default Re: generate statement
crazyrdx wrote:
> 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



Andy Peters
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generate .aspx file and .cs file behind it jyoti.bannigidad@gmail.co Software 0 09-18-2008 07:54 AM
As growth slows, Hollywood faces a DVD standoff. Allan DVD Video 0 07-11-2005 02:10 PM




SEO by vBSEO 3.3.2 ©2009, 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