From 640194a5c98a1e84b3740dda5add6976066c271c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 21 Feb 2019 23:32:45 +0100 Subject: [PATCH] examples: add nexys4ddr_config --- examples/nexys4ddr_config.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 examples/nexys4ddr_config.py diff --git a/examples/nexys4ddr_config.py b/examples/nexys4ddr_config.py new file mode 100644 index 0000000..efa597e --- /dev/null +++ b/examples/nexys4ddr_config.py @@ -0,0 +1,30 @@ +from litedram.modules import MT47H64M16 +from litedram.phy import A7DDRPHY + +core_config = { + # General ------------------------------------------------------------------ + "cpu": "vexriscv", # Type of CPU used for init/calib (vexriscv, lm32) + "speedgrade": -1, # FPGA speedgrade + "memtype": "DDR2", # DRAM type + + # PHY ---------------------------------------------------------------------- + "cmd_delay": 0, # Command additional delay (in taps) + "cmd_latency": 0, # Command additional latency + "sdram_module": MT47H64M16, # 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 + + # 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 + + # Core --------------------------------------------------------------------- + "cmd_buffer_depth": 16, # Depth of the command buffer + + # User Ports --------------------------------------------------------------- + "user_ports_nb": 2, # Number of user ports + "user_ports_type": "axi", # Type of ports (axi, native) + "user_ports_id_width": 32, # AXI identifier width +}