litedram/examples/sim/sim_config.py

36 lines
1.6 KiB
Python
Raw Normal View History

2018-11-17 03:19:52 -05:00
from litedram.modules import MT41K128M16
from litedram.phy import A7DDRPHY
core_config = {
2019-03-15 15:16:42 -04:00
# General ------------------------------------------------------------------
"cpu": None, # Type of CPU used for init/calib (vexriscv, lm32)
"speedgrade": -1, # FPGA speedgrade
"memtype": "DDR3", # DRAM type
2018-11-17 03:19:52 -05:00
2019-03-15 15:16:42 -04:00
# PHY ----------------------------------------------------------------------
"cmd_delay": 0, # Command additional delay (in taps)
"cmd_latency": 0, # Command additional latency
"sdram_module": MT41K128M16, # SDRAM modules of the board or SO-DIMM
"sdram_module_nb": 2, # Number of byte groups
"sdram_rank_nb": 1, # Number of ranks
"sdram_phy": A7DDRPHY, # Type of FPGA PHY
2018-11-17 03:19:52 -05:00
2019-03-15 15:16:42 -04:00
# Electrical ---------------------------------------------------------------
"rtt_nom": "60ohm", # Nominal termination
"rtt_wr": "60ohm", # Write termination
"ron": "34ohm", # Output driver impedance
2018-11-17 03:19:52 -05:00
2019-03-15 15:16:42 -04:00
# Frequency ----------------------------------------------------------------
"input_clk_freq": 100e6, # Input clock frequency
"sys_clk_freq": 100e6, # System clock frequency (DDR_clk = 4 x sys_clk)
"iodelay_clk_freq": 200e6, # IODELAYs reference clock frequency
2018-11-17 03:19:52 -05:00
2019-03-15 15:16:42 -04:00
# Core ---------------------------------------------------------------------
"cmd_buffer_depth": 16, # Depth of the command buffer
2018-11-17 03:19:52 -05:00
2019-03-15 15:16:42 -04:00
# User Ports ---------------------------------------------------------------
"user_ports_nb": 2, # Number of user ports
"user_ports_type": "native", # Type of ports (axi, native)
2018-11-17 03:19:52 -05:00
}
2019-03-15 15:16:42 -04:00