c_model for tcam and sram