[source]

Entity cache_cpu

REPLACEMENT_POLICYCACHE_LINESASSOCIATIVITYCPU_DATA_BITSMEM_ADDR_BITSMEM_DATA_BITSclkstd_logicrststd_logiccpu_reqstd_logiccpu_writestd_logiccpu_addr[log2ceil ( MEM_DATA_BITS / CPU_DATA_BITS ) + MEM_ADDR_BITS - 1 downto 0]unsignedcpu_wdata[CPU_DATA_BITS - 1 downto 0]std_logic_vectorcpu_wmask[CPU_DATA_BITS / 8 - 1 downto 0]std_logic_vectormem_rdystd_logicmem_rstbstd_logicmem_rdata[MEM_DATA_BITS - 1 downto 0]std_logic_vectorcpu_gotstd_logiccpu_rdatastd_logic_vector[CPU_DATA_BITS - 1 downto 0]mem_reqstd_logicmem_writestd_logicmem_addrunsigned[MEM_ADDR_BITS - 1 downto 0]mem_wdatastd_logic_vector[MEM_DATA_BITS - 1 downto 0]mem_wmaskstd_logic_vector[MEM_DATA_BITS / 8 - 1 downto 0]

Block Diagram of cache_cpu

Generics

Name

Type

Default

Description

REPLACEMENT_POLICY

string

"LRU"

CACHE_LINES

positive

ASSOCIATIVITY

positive

CPU_DATA_BITS

positive

MEM_ADDR_BITS

positive

MEM_DATA_BITS

positive

Ports

Name

Type

Direction

Description

clk

std_logic

in

clock

rst

std_logic

in

reset

cpu_req

std_logic

in

"CPU" side

cpu_write

std_logic

in

cpu_addr

unsigned

in

cpu_wdata

std_logic_vector

in

cpu_wmask

std_logic_vector

in

cpu_got

std_logic

out

cpu_rdata

std_logic_vector

out

mem_req

std_logic

out

Memory side

mem_write

std_logic

out

mem_addr

unsigned

out

mem_wdata

std_logic_vector

out

mem_wmask

std_logic_vector

out

mem_rdy

std_logic

in

mem_rstb

std_logic

in

mem_rdata

std_logic_vector

in