I-Cache and D-Cache size can be configured to 0K, 1K, 2K, 4K, 8K, and 16K.The default configuration of the core is:
- 16KB I-Cache,
- 16KB D-Cache
- FPU present
The configurations are defined in
$PICOJAVAHOME/$PROJECT/design/rtl/defines.h
. To change the I-Cache size and D-Cache size you need to edit this file to:
- Comment out the lines which specify the default size and
- Uncomment the line which specifies the setting you prefer.
No I-Cache
If you wish to specify no I-Cache, you must:
- Edit
$PICOJAVAHOME/$PROJECT/design/rtl/defines.h
to comment out these lines:
`define ICU_MODULE icu
`define ITAG_MODULE itag_shell
`define ICRAM_MODULE icram_shell
- Uncomment all the defines under
0KB I-cache
.
No D-Cache
If you wish to specify no D-Cache, you must:
- Edit
$PICOJAVAHOME/$PROJECT/design/rtl/defines.h
to comment out these lines:
`define DCU_MODULE dcu
`define DTAG_MODULE dtag_shell
`define DCRAM_MODULE dcram_shell
- Uncomment all the defines under
0KB D-cache
.
Back to building the RTL modelThe steps to configure the core without the floating-point unit (FPU) are:
- Edit
$PICOJAVAHOME/$PROJECT/design/rtl/defines.h
to comment out the line:
`define FPU_MODULE fpu
- Uncomment the following lines:
`define FPU_MODULE fpu_dummy
`define NO_FPU