A Hardware/Software Cosynthesis System for Processors with Content Addressable Memory