From aa53a5a70f0c7225f0b0247de03ccb82bed25871 Mon Sep 17 00:00:00 2001 From: Blaise Tine Date: Thu, 1 Apr 2021 05:27:09 -0400 Subject: [PATCH] minor update --- hw/rtl/VX_platform.vh | 1 + hw/rtl/tex_unit/VX_tex_sampler.v | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/rtl/VX_platform.vh b/hw/rtl/VX_platform.vh index bcf1dafe..fc67d24a 100644 --- a/hw/rtl/VX_platform.vh +++ b/hw/rtl/VX_platform.vh @@ -92,6 +92,7 @@ `define PRINT_ARRAY2D(a, m, n) \ $write("{"); \ for (integer i = n-1; i >= 0; --i) begin \ + if (i != (n-1)) $write(", "); \ $write("{"); \ for (integer j = (m-1); j >= 0; --j) begin \ if (j != (m-1)) $write(", "); \ diff --git a/hw/rtl/tex_unit/VX_tex_sampler.v b/hw/rtl/tex_unit/VX_tex_sampler.v index abdc5265..328511d6 100644 --- a/hw/rtl/tex_unit/VX_tex_sampler.v +++ b/hw/rtl/tex_unit/VX_tex_sampler.v @@ -101,9 +101,9 @@ module VX_tex_sampler #( $write("%t: core%0d-tex-sampler-req: wid=%0d, PC=%0h, tmask=%b, filter=%0d, format=%0d, data=", $time, CORE_ID, req_wid, req_PC, req_tmask, req_filter, req_format); `PRINT_ARRAY2D(req_data, 4, `NUM_THREADS); - $write("u0="); + $write(", u0="); `PRINT_ARRAY1D(req_blend_u, `NUM_THREADS); - $write("v0="); + $write(", v0="); `PRINT_ARRAY1D(req_blend_v, `NUM_THREADS); $write("\n"); end