lm32_include.v

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