Professional Documents
Culture Documents
Cache Basics
Cache Basics
Need to design something of this type or even this might work out for our project.
Cache Interface
Signal:
Dir:
Description:
clk
in
clock
rst_n
in
addr[13:0]
in
wr_data[63:0]
in
wdirty
in
we
in
re
in
Read enable
rd_data[63:0]
out
tag_out[7:0]
out
Tag bits for the cache line. Need this when evicting line
from cache
hit
out
Hit means the tag bits matched and the line was valid
dirty
out
toggle
in
Dir:
Description:
clk
in
Clock
rst_n
in
addr[13:0]
in
re
in
Read enable
we
in
Write enable
wdata[63:0]
in
rd_data[63:0]
out
rdy
out
Mem_hierachy.v will have the state machine that will implement the state machine.
In this state Machine we will try to access the cache.v and unified_memory.v.