wire / wire-format / cam-memory

CAM (Content-Addressable Memory)

CAM (Content-Addressable Memory) is a special memory that searches all entries in parallel for a match. Each cell is an SRAM cell with a comparison circuit (XNOR + match line). On a search, the search key is broadcast to all rows; matching rows pull their match line low. Priority encoder selects the highest-priority match. Used in TLBs, caches (tag lookup), and network routers (forwarding tables).

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: CAM (Content-Addressable Memory)

wire format

spec: CAM design

CAM (Content-Addressable Memory) is a special memory that searches all entries in parallel for a match. Each cell is an SRAM cell with a comparison circuit (XNOR + match line). On a search, the search key is broadcast to all rows; matching rows pull their match line low. Priority encoder selects the highest-priority match. Used in TLBs, caches (tag lookup), and network routers (forwarding tables).

fieldsizemeaning
CAM cell9-10 transistorsSRAM cell (6T) + comparison circuit (2-4 transistors: XNOR + pass transistor).
Search keyn bitsBroadcast to all rows in parallel.
Match line1 wire per rowPrecharged high; pulled low if any bit mismatches.
Priority encodern-to-log2(n)Selects the highest-priority matching row.
Valid bit1 bit per rowIndicates if the entry is valid (not empty).
Maskn bitsTernary CAM (TCAM): each bit can be 0, 1, or don't-care (X). Used for IP routing (subnet masks).

example:

00 00

CAM (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/cam-memory or /wire-format/cam-memory.json