Advanced ternary CAM circuits on 0.13 μm logic process technology