From: Brad Griffis Date: Wed, 18 Oct 2017 19:43:10 +0000 (-0500) Subject: Add more complete EMIF register dump X-Git-Url: https://git.ti.com/gitweb?p=sitara-dss-files%2Fam335x-dss-files.git;a=commitdiff_plain;h=2bf1426d316999f8278487a9accca740fcc68fc9 Add more complete EMIF register dump --- diff --git a/am335x-ddr-analysis.dss b/am335x-ddr-analysis.dss index a195023..4fb2ac2 100644 --- a/am335x-ddr-analysis.dss +++ b/am335x-ddr-analysis.dss @@ -41,6 +41,11 @@ function printRegisterValue(ds, name, addr) return value; // return the register value for interrogation } +function getRegisterValue(debug, addr) +{ + return debug.memory.readWord(0,addr,false); +} + function interpret_cmd_phy_macro(value, index) { WD1 = (value >> (21+index)) & 1; @@ -174,7 +179,59 @@ if (original_CM_PER_L3_CLKSTCTRL & 1<<2) { if ( (reg_val & 0x300) == (1 << 8) ) {file.write("no termination (01b)\n");} if ( (reg_val & 0x300) == (2 << 8) ) {file.write("full thevenin termination\n");} if ( (reg_val & 0x300) == (3 << 8) ) {file.write("half thevenin termination\n");} - + + file.write("\n"); + file.write("*********************\n"); + file.write("*** Register Dump ***\n") + file.write("*********************\n\n"); + + var ddr_config_regs = [ + 0x4C000000, + 0x4C000004, + 0x4C000008, + 0x4C00000C, + 0x4C000010, + 0x4C000014, + 0x4C000018, + 0x4C00001C, + 0x4C000020, + 0x4C000024, + 0x4C000028, + 0x4C00002C, + 0x4C000038, + 0x4C00003C, + 0x4C000054, + 0x4C000058, + 0x4C00005C, + 0x4C000080, + 0x4C000084, + 0x4C000088, + 0x4C00008C, + 0x4C000090, + 0x4C000098, + 0x4C00009C, + 0x4C0000A4, + 0x4C0000AC, + 0x4C0000B4, + 0x4C0000BC, + 0x4C0000C8, + 0x4C0000D4, + 0x4C0000D8, + 0x4C0000DC, + 0x4C0000E4, + 0x4C0000E8, + 0x4C000100, + 0x4C000104, + 0x4C000108, + 0x4C000120]; + + for (i=0; i