1.1 --- a/lm32_include.v Sun Apr 04 20:40:03 2010 +0100 1.2 +++ b/lm32_include.v Sun Apr 04 20:42:58 2010 +0100 1.3 @@ -33,8 +33,40 @@ 1.4 `else 1.5 `define LM32_INCLUDE_V 1.6 1.7 -// Configuration options 1.8 -`include "system_conf.v" 1.9 +// (config opts from http://www.reflextor.org/trac/a51/browser/fpga/main/cores/lm32/rtl/lm32_include.v?rev=20) 1.10 +// 1.11 +// Common configuration options 1.12 +// 1.13 + 1.14 +`define CFG_EBA_RESET 32'h0 1.15 +`define CFG_DEBA_RESET 32'h0 1.16 + 1.17 +`define CFG_PL_MULTIPLY_ENABLED 1.18 +`define CFG_PL_BARREL_SHIFT_ENABLED 1.19 +`define CFG_SIGN_EXTEND_ENABLED 1.20 +`define CFG_MC_DIVIDE_ENABLED 1.21 + 1.22 +// Bug in Mico32/Xst ? 1.23 +// CFG_ICACHE_ASSOCIATIVITY=2 => works fine 1.24 +// CFG_ICACHE_ASSOCIATIVITY=1 => disaster 1.25 +// TODO: try with the expensive synthesizers 1.26 +`define CFG_ICACHE_ENABLED 1.27 +`define CFG_ICACHE_ASSOCIATIVITY 2 1.28 +`define CFG_ICACHE_SETS 512 1.29 +`define CFG_ICACHE_BYTES_PER_LINE 16 1.30 +`define CFG_ICACHE_BASE_ADDRESS 32'h0 1.31 +`define CFG_ICACHE_LIMIT 32'h7fffffff 1.32 + 1.33 +`define CFG_DCACHE_ENABLED 1.34 +`define CFG_DCACHE_ASSOCIATIVITY 2 1.35 +`define CFG_DCACHE_SETS 512 1.36 +`define CFG_DCACHE_BYTES_PER_LINE 16 1.37 +`define CFG_DCACHE_BASE_ADDRESS 32'h0 1.38 +`define CFG_DCACHE_LIMIT 32'h7fffffff 1.39 + 1.40 +// 1.41 +// End of common configuration options 1.42 +// 1.43 1.44 `ifdef TRUE 1.45 `else