Design of an ultrafast optical processing chip