Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > question on generics, constants in vhdl

Reply
Thread Tools

question on generics, constants in vhdl

 
 
geoffrey wall
Guest
Posts: n/a
 
      10-01-2005

suppose I want calculate the log2(N)
were N is an integer valued generic parameter
in my design, now, lets say i would like to
use log2(N) as a parameter in a for ... generate
statement, is there a way to do this?
I dont want the log2(N) to be synthesized into my
hardware, i just want to use the result in a loop
--
Geoffrey Wall
Masters Student in Electrical/Computer Engineering
Florida State University, FAMU/FSU College of Engineering

Cell Phone:
850.339.4157

ECE Machine Intelligence Lab
http://www.eng.fsu.edu/mil
MIL Office Phone:
850.410.6145

Center for Applied Vision and Imaging Science
http://cavis.fsu.edu/
CAVIS Office Phone:
850.645.2257


 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      10-01-2005
geoffrey wall wrote:
> suppose I want calculate the log2(N)


http://groups.google.com/groups?q=vhdl+log2

-- Mike Treseler
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs, VHDL Mode - Upper Case Enum Values & Upper Case Constants (not working)? BlackHelicopter VHDL 0 01-31-2013 04:12 AM
VHDL - parameterised generic constants janeruth VHDL 1 07-29-2010 01:58 PM
VHDL standard question (VHDL 93 chapter 4.3.2.2) Kim Enkovaara VHDL 9 10-15-2008 11:04 PM
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
Shared C defines / VHDL constants Aaron.R.McFarland@gmail.com VHDL 5 02-24-2006 02:20 PM



Advertisments
 



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