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

Reply

VHDL - comparing the array for generic parameters

 
Thread Tools Search this Thread
Old 06-29-2005, 09:45 AM   #1
Default comparing the array for generic parameters


hello
in my design i need a logic to compare the array (suppose width 16 bit
and
size of 0 to 15) with a vector of 16 bit in parallel and in one clk
cycle.
and need to generate address of array is matching.
AND I NEED THIS FOR GENERIC VARIABLES( FOR ALL 3 PARAMETERS)

thank you
bye




srinukasam
  Reply With Quote
Old 06-29-2005, 12:43 PM   #2
Me
 
Posts: n/a
Default Re: comparing the array for generic parameters


On Wed, 29 Jun 2005 04:45:47 -0400, srinukasam wrote:

> hello
> in my design i need a logic to compare the array (suppose width 16 bit
> and
> size of 0 to 15) with a vector of 16 bit in parallel and in one clk
> cycle.
> and need to generate address of array is matching.
> AND I NEED THIS FOR GENERIC VARIABLES( FOR ALL 3 PARAMETERS)
>
> thank you
> bye


Homework?
I hope VHDL teachers in India read this newsgroup.

A.



Me
  Reply With Quote
Old 06-29-2005, 03:23 PM   #3
Ralf Hildebrandt
 
Posts: n/a
Default Re: comparing the array for generic parameters
srinukasam wrote:

> in my design i need a logic to compare the array (suppose width 16 bit
> and
> size of 0 to 15) with a vector of 16 bit in parallel and in one clk
> cycle.
> and need to generate address of array is matching.


What part of my last explanation did you not understand?


> AND I NEED THIS FOR GENERIC VARIABLES( FOR ALL 3 PARAMETERS)


Which 3 parameters? Your description of the problem is not clear.

Comparing a vector element to a constant or generic parameter is not
different to comparing it to a signal.

Ralf


Ralf Hildebrandt
  Reply With Quote
Old 06-30-2005, 08:40 PM   #4
Andy Peters
 
Posts: n/a
Default Re: comparing the array for generic parameters
srinukasam wrote:
> hello
> in my design i need a logic to compare the array (suppose width 16 bit
> and
> size of 0 to 15) with a vector of 16 bit in parallel and in one clk
> cycle.
> and need to generate address of array is matching.
> AND I NEED THIS FOR GENERIC VARIABLES( FOR ALL 3 PARAMETERS)


Sounds like a job for a content-addressable memory (CAM).
Implementation details are left as an exercise for the reader.

-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
constants as of array of integers, for loops octavsly Hardware 0 04-25-2009 11:53 AM
Array Programme rits Software 2 03-04-2009 05:18 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