forked from cores/microwatt
Use a record for cache parameters
The number of generics we pass down from the top level is getting a bit unwieldy. Paul suggests using records to group them. Signed-off-by: Anton Blanchard <anton@linux.ibm.com>cache-tlb-parameters-2
parent
2d21b95f87
commit
53ccf89d26
@ -0,0 +1,27 @@
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
|
||||
package params is
|
||||
type CACHE_PARAMS_T is record
|
||||
LINE_SIZE : natural;
|
||||
ICACHE_NUM_LINES : natural;
|
||||
ICACHE_NUM_WAYS : natural;
|
||||
ICACHE_TLB_SIZE : natural;
|
||||
DCACHE_NUM_LINES : natural;
|
||||
DCACHE_NUM_WAYS : natural;
|
||||
DCACHE_TLB_SET_SIZE : natural;
|
||||
DCACHE_TLB_NUM_WAYS : natural;
|
||||
end record;
|
||||
|
||||
constant CACHE_PARAMS_DEFAULT : CACHE_PARAMS_T := (
|
||||
LINE_SIZE => 64,
|
||||
ICACHE_NUM_LINES => 64,
|
||||
ICACHE_NUM_WAYS => 2,
|
||||
ICACHE_TLB_SIZE => 64,
|
||||
DCACHE_NUM_LINES => 64,
|
||||
DCACHE_NUM_WAYS => 2,
|
||||
DCACHE_TLB_SET_SIZE => 64,
|
||||
DCACHE_TLB_NUM_WAYS => 2
|
||||
);
|
||||
|
||||
end package;
|
Loading…
Reference in New Issue