CAM, TCAM in Stratix

Hi, I am working on a 10 Gb Ethernet project (deep packet inspection) and nee to implement CAM in my FPGA. I am using a Stratix GX and I don't think can use CAM (internal or external) in the stratix GX Dev Board.

Let me know your thoughts about that.

Thanks a lot.

Reply to
freechip
Loading thread data ...

Freechip,

formatting link

I am not suggesting you switch to Xilinx, but we do have answers.

Aust> Hi,

Reply to
Austin Lesea

How big a (Ternary?)CAM do you need?

Reply to
John_H

need

I

Hi, I don't yet. Do you think it is possible with Altera products? Have a good day.

Reply to
freechip

Hi freechip,

yes I think it is possible to build a CAM around Altera RAM blocks.

How big is the CAM ? After how many clock cycles do you need a hit ?

Rgds Andr=E9

Reply to
ALuPin

Hi Andr, Actually, I am in the research phase and I really don't know how big i the cam. I just wanted to know, to compare to Xilinx Family, if it wa poosible to use cam with Altera product. For my project (deep packe inspection), the use of the cam is necessary. If you can tell me how can a build a cam around Altera RAM block (and th max. of the cam without my answers to your questions), I will be ver pleased.

Thanks.

Reply to
freechip

freechip wrote:

It's possible to build teeny, tiny CAMs. The information Austin pointed out gives you an idea of what you can accomplish with FPGA resources that can apply to all FPGAs, not just Xilinx.

If you need a few entries, you might be okay. If you need small entries, you may be able to do many more.

Read that documentation and you'll get a feel for the limits you're faced with.

Personally, I'd love a 4kx20 CAM but I know there's no way to do it in an FPGA>

Reply to
John_H

However, if you plan decode 32 bit or 128 bit IP addresses, an FPGA solution will likely cost just as much and not work quite as well as a real CAM.

-- Mike Treseler

Reply to
Mike Treseler

But if each 128-bit IP address only needs 4 slices and the number of IP addresses is rather limited, the cost can be much better than a real CAM.

Reply to
John_H

Thanks a lot for your answers. Actually, I can not tell you more about the size of the CAM. You are talking about the size but did you implement cam in Alter (Stratix?) because I didn't see it was possible to put cam in Stratix i Altera's website. Have a nice day.

Freechip

Reply to
freechip

Right, right. My apologies. I'm just so used to having embedded LUT-style memories available that I have trouble making the mindset switch to Altera. In Altera, CAMs suck (except maybe for way back in the 20K days).

You can still use the embedded memories to build up a CAM in segments for a small number of entries. Using the 4k memories arranged as

256x16, you could build 16 CAMs in 8-bit segments. 16 CAM entries of 128 bits would take 16 4k RAM blocks and qty 16, 16-wide cascades to indicate a byte match for all 16 memories for one CAM entry.

So it can be done but with significantly more resources than the 64 slices needed in an SRL or single-port LUT-RAM device.

Reply to
John_H

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.