A CAM Emulator Using Look-Up Table Cascades