Add debug output for group 0 write-back and group 1 compute
This commit is contained in:
@@ -184,8 +184,18 @@ int main(void)
|
|||||||
REG_WR(MATMUL_CTRL, CTRL_START);
|
REG_WR(MATMUL_CTRL, CTRL_START);
|
||||||
wait_done();
|
wait_done();
|
||||||
read_ip(MATMUL_C_BASE, c_buf, 48);
|
read_ip(MATMUL_C_BASE, c_buf, 48);
|
||||||
|
if (g == 1) {
|
||||||
|
printf("DBG A[0]=%08lx B[0]=%08lx C[0..2]=%08lx %08lx %08lx\n",
|
||||||
|
(unsigned long)a_buf[0], (unsigned long)b_buf[0],
|
||||||
|
(unsigned long)c_buf[0], (unsigned long)c_buf[1],
|
||||||
|
(unsigned long)c_buf[2]);
|
||||||
|
}
|
||||||
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) {
|
||||||
|
printf("DBG wrote C[0]=%08lx @ ExtRAM[%d]\n",
|
||||||
|
(unsigned long)extram[DST_BASE], DST_BASE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── CRC32 over result region ─────────────────────────────── */
|
/* ── CRC32 over result region ─────────────────────────────── */
|
||||||
|
|||||||
Reference in New Issue
Block a user