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

Reply

VHDL - complex generate usage in multiplier

 
Thread Tools Search this Thread
Old 09-29-2003, 11:43 AM   #1
Default complex generate usage in multiplier


Hi all,

I am trying to build a multiply by constant multiplier (using
shifts & additions/subtractions). The multiplier is to be a generic
vector 1 to 15.

Basically I should enter "101Z00000000000", this should infer I need
one adder & one subtractor. The 'Z' means -1 in canonical form.

The for loop should parse that vector & for the the first 2 ones
generate an adder, & for the next Z generate a subtractor and so one.
I can manage the port mapping (hopefully), I just hope someone can
guide me with this form of 'generate'.

BTW, can I use variables with generate?? I want to keep track of
whether or not the current bit is one of the first 2 bits, but
couldn't

Any help is highly appreciated.


Ahmad
  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
DVD Verdict reviews: GHOST IN THE SHELL: STAND ALONE COMPLEX: 2ND GIG (VOLUME 3) and more! DVD Verdict DVD Video 0 03-09-2006 09:22 AM
DVD Verdict reviews: GHOST IN THE SHELL: STAND ALONE COMPLEX: 2ND GIG (VOLUME 2) and more! DVD Verdict DVD Video 0 01-19-2006 09:34 AM
DVD Verdict reviews: GHOST IN THE SHELL: STAND ALONE COMPLEX (VOLUME 4) and more! DVD Verdict DVD Video 0 04-21-2005 09:10 AM
DVD Verdict reviews: GHOST IN THE SHELL: STAND ALONE COMPLEX (VOLUME 3) and more! DVD Verdict DVD Video 0 01-20-2005 10:12 AM
DVD Verdict reviews: GHOST IN THE SHELL: STAND ALONE COMPLEX (VOLUME 1) and more! DVD Verdict DVD Video 0 08-05-2004 10:03 AM




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