matmul_test: rewrite for ExtRAM flow, add IP error debug

- Rewrite main.c to read from ExtRAM (0x1c400000), compute
  via matmul IP, write results back. Matches testbench
  expectation of 10 groups.
- Add  in matmul_axi_slave to trace error writes
This commit is contained in:
2026-06-24 01:49:02 +08:00
parent fe8eff0aa0
commit ff6e572996
2 changed files with 83 additions and 178 deletions

View File

@@ -251,6 +251,7 @@ always @(posedge clk) begin
if (wdata_hold[1]) done <= 1'b0;
if (wdata_hold[2]) error <= 1'b0;
end else if ((write_offset != ADDR_CTRL) && (write_offset < ADDR_C_BASE)) begin
$display("[MATMUL_SLAVE] ERROR: write to unmapped offset=%03x wdata=%08x", write_offset, wdata_hold);
error <= 1'b1;
end
end