TCAM and RAM have the same amount of rows → make it as table
Method:
Draw TCAM and RAM with same amount of lines
Place prefixes in ascending order
Add same columns of indexes in TCAM and RAM
Add ports in RAM