aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWade Fife <wade.fife@ettus.com>2022-01-26 15:19:41 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2022-04-01 14:36:35 -0500
commitf748b60d9033441e62531bf1f0790747e8f3d29c (patch)
treeff81b7e5e4f137b8a4dbad0ab4f88671f4ce739b
parentmpm: Fix units for DRAM BIST (diff)
downloaduhd-f748b60d9033441e62531bf1f0790747e8f3d29c.tar.xz
uhd-f748b60d9033441e62531bf1f0790747e8f3d29c.zip
mpm: Add x4xx DRAM BIST
-rw-r--r--mpm/python/x4xx_bist24
1 files changed, 23 insertions, 1 deletions
diff --git a/mpm/python/x4xx_bist b/mpm/python/x4xx_bist
index 0c6fb1155..60c1799c5 100644
--- a/mpm/python/x4xx_bist
+++ b/mpm/python/x4xx_bist
@@ -79,7 +79,7 @@ class X4XXBIST(bist.UsrpBIST):
# Default FPGA image type
DEFAULT_FPGA_TYPE = 'X4_200'
lv_compat_format = {
- 'ddr3': {
+ 'dram': {
'throughput': -1,
},
'gpsdo': {
@@ -211,6 +211,28 @@ class X4XXBIST(bist.UsrpBIST):
# BISTS
# All bist_* methods must return True/False success values!
#############################################################################
+ def bist_dram(self):
+ """
+ BIST for PL DDR4 DRAM
+ Description: Calls a test to examine the speed of the DRAM. To be
+ precise, it fires up a UHD session, which runs a DRAM BiST internally.
+ If that works, it'll return estimated throughput that was gathered
+ during the DRAM BiST.
+
+ External Equipment: None
+
+ Return dictionary:
+ - throughput: The estimated throughput in bytes/s
+
+ Return status:
+ True if the DRAM bist passed
+ """
+ assert 'dram' in self.tests_to_run
+ if self.args.dry_run:
+ return True, {'throughput': 1700e6}
+ result = bist.test_ddr3_with_usrp_probe()
+ return result.get('throughput', 0) > 1500e6, result
+
def bist_gpsdo(self):
"""
BIST for GPSDO