The document presents an enhanced architecture for ternary content addressable memory (TCAM) designed for longest prefix matching (LPM) using random access memory on field programmable gate arrays (FPGAs). It introduces an update logic that facilitates adding and deleting TCAM words, along with parallel LPM logic that significantly improves throughput by 10 times while maintaining cost-effectiveness. The proposed architecture aims to address the challenges of conventional TCAMs in terms of latency and resource usage, particularly in networking applications requiring rapid content lookup.