The embodiment of the invention discloses a shared cache device and method of a
chip, and the device comprises a data distribution module which is used for receiving data in a
data stream sent by a data
bus and sending an instruction for outputting an effective pointer to a pointer
processing module, and a shared cache write operation module which is used for receiving the effective pointer output by the pointer
processing module and sending the effective pointer to the pointer
processing module. The
data processing module is used for receiving the data sent by the data distribution module, writing the valid data into the RAM based on the bit number of the valid data in the data and the
write bit width of a cache memory in the RAM, determining a cache pointer corresponding to the valid data, and sending the cache pointer to the pointer processing module; the pointer processing module is used for reading a pointer from a pointer
pool set in a cache module corresponding to the RAM, and is also used for receiving a read request for reading effective data in the RAM, reading the effective data in the RAM according to a cache pointer corresponding to the read request, and inputting the cache pointer after reading the effective data as a pointer to be recycled into the pointer
pool for sharing the RAM by a plurality of data streams; the
utilization rate of the shared cache space is improved.