Definitive write test: write 0xDEADBEEF then read back

This commit is contained in:
2026-06-24 23:29:00 +08:00
parent 16c0d7b639
commit 93361733f6

View File

@@ -194,9 +194,11 @@ int main(void)
for (i = 0; i < 48; i++) for (i = 0; i < 48; i++)
extram[DST_BASE + g * 48 + i] = c_buf[i]; extram[DST_BASE + g * 48 + i] = c_buf[i];
if (g == 0) { if (g == 0) {
printf("DBG CRCtest=0x%08lx g=0 rdback=%08lx\n", extram[DST_BASE + 1] = 0xDEADBEEF; // write known bad value
printf("DBG CRCtest=0x%08lx g=0 rdback=%08lx BEEF=%08lx\n",
(unsigned long)tcrc, (unsigned long)tcrc,
(unsigned long)extram[DST_BASE]); (unsigned long)extram[DST_BASE],
(unsigned long)extram[DST_BASE + 1]);
} }
if (g <= 3 || g >= (MATMUL_GROUP_NUM-2)) { if (g <= 3 || g >= (MATMUL_GROUP_NUM-2)) {
printf("DBG g=%d A0=%08lx B0=%08lx C0=%08lx\n", printf("DBG g=%d A0=%08lx B0=%08lx C0=%08lx\n",