1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-03-01 01:29:09 +00:00
Files
antonblanchard.microwatt/params.vhdl
Anton Blanchard 53ccf89d26 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>
2021-03-23 11:37:50 +11:00

28 lines
778 B
VHDL

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;