1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-03-03 18:06:14 +00:00

Reduce the core size

- 256B 2 way icache and dcache
- 2 entry 2 way dTLB
- 4 entry direct mapped iTLB
- 8 entry debug log
- disable FPU
This commit is contained in:
Anton Blanchard
2020-12-08 19:26:54 +11:00
committed by Anton Blanchard
parent ef2ee09d1f
commit e8e3e9bd17
4 changed files with 5 additions and 5 deletions

View File

@@ -171,7 +171,7 @@ OPENOCD_DEVICE_CONFIG=openocd/LFE5UM5G-85F.cfg
endif
GHDL_IMAGE_GENERICS=-gMEMORY_SIZE=$(MEMORY_SIZE) -gRAM_INIT_FILE=$(RAM_INIT_FILE) \
-gRESET_LOW=$(RESET_LOW) -gCLK_INPUT=$(CLK_INPUT) -gCLK_FREQUENCY=$(CLK_FREQUENCY)
-gRESET_LOW=$(RESET_LOW) -gCLK_INPUT=$(CLK_INPUT) -gCLK_FREQUENCY=$(CLK_FREQUENCY) -gLOG_LENGTH=8 -gHAS_FPU=false
clkgen=fpga/clk_gen_ecp5.vhd
toplevel=fpga/top-generic.vhdl

View File

@@ -209,7 +209,7 @@ begin
generic map(
SIM => SIM,
LINE_SIZE => 64,
NUM_LINES => 64,
NUM_LINES => 2,
NUM_WAYS => 2,
LOG_LENGTH => LOG_LENGTH
)
@@ -387,7 +387,7 @@ begin
dcache_0: entity work.dcache
generic map(
LINE_SIZE => 64,
NUM_LINES => 64,
NUM_LINES => 2,
NUM_WAYS => 2,
LOG_LENGTH => LOG_LENGTH
)

View File

@@ -27,7 +27,7 @@ entity dcache is
-- Number of ways
NUM_WAYS : positive := 4;
-- L1 DTLB entries per set
TLB_SET_SIZE : positive := 64;
TLB_SET_SIZE : positive := 2;
-- L1 DTLB number of sets
TLB_NUM_WAYS : positive := 2;
-- L1 DTLB log_2(page_size)

View File

@@ -43,7 +43,7 @@ entity icache is
-- Number of ways
NUM_WAYS : positive := 4;
-- L1 ITLB number of entries (direct mapped)
TLB_SIZE : positive := 64;
TLB_SIZE : positive := 4;
-- L1 ITLB log_2(page_size)
TLB_LG_PGSZ : positive := 12;
-- Number of real address bits that we store