I had a RISC-V CPU with L1 Instruction Cache and L1 Data Cache, and I want to connect these two L1 Caches to unified L2 Cache. I have the following questions:
- Does the unified L2 Cache have dual port (one for L1I another for L2D) or single port?
- If the unified L2 Cache is single port, are there any specific protocols (e.g. AMBA AXI4) for the cache connection?
- How state-of-the-art processors solve this problem?
My current solution is using single port L2 Cache, and connect both L1 Cache to a buffer queue input with cross-bar interconnect. Finally, the buffer queue output connect to L2 Cache.