From 07fedddad9def0028284d20c1ace758c0d9bf201 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 11 Nov 2020 13:25:55 +0100 Subject: [PATCH] libboard_zynq: doc ddr size limitation, correct target_redpitaya to 512MB --- libboard_zynq/src/ddr/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libboard_zynq/src/ddr/mod.rs b/libboard_zynq/src/ddr/mod.rs index 24abafe..8850d96 100644 --- a/libboard_zynq/src/ddr/mod.rs +++ b/libboard_zynq/src/ddr/mod.rs @@ -392,12 +392,14 @@ impl DdrRam { /// actually there's 1 MB more but starting at 0x0000_0000 /// overlaps with OCM. pub fn size(&self) -> usize { + // DDR range ends at 0x3FFF_FFFF in the default SCU address + // filtering address map #[cfg(feature = "target_zc706")] let megabytes = 1023; #[cfg(feature = "target_cora_z7_10")] let megabytes = 512; #[cfg(feature = "target_redpitaya")] - let megabytes = 511; + let megabytes = 512; megabytes * 1024 * 1024 }