diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a0bf25e85..c319bddd7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,6 +71,10 @@ follows the version pins recorded in [VERSION](VERSION) (`VORTEX_VERSION`, negation are summed in parallel instead of a negate after the sum. Results stay bit-identical to `sw/common/tfu.cpp` and the pipeline stays 7 stages. Beacon: the `tfu` DUT drops from 24 to 13 logic levels, and a 16-warp, 8-thread core with the TFU from 23 to 15 (the TFU no longer sets its depth); the ASIC estimate of `tfu` rises from 913 to 1239 MHz with 7% fewer cells. +- **FPU tags ride the pipeline.** Each FPU block carries the instruction header through its backend's pipeline registers in place + of the 2-entry tag store, so an FMA block keeps up to its pipeline depth in flight instead of two operations. + `VX_CFG_FPU_QUEUE_SIZE` is removed. The commit arbiter grants round-robin instead of FPU first, which the tag limit no + longer justifies and which would now starve the ALU and LSU. - **FDIV/FSQRT run on the TFU.** The FPU's divide/square-root units are gone: VX_uop_fdiv expands FDIV and FSQRT (.S and .D) into TFU reciprocal/rsqrt micro-ops plus FMUL, FSUB, FSGNJX and F2F, writing only rd. Results are within 3 ulp, not correctly rounded, and raise only the flags of the FPU micro-ops (no DZ). The TFU is now part of every F build (`VX_CFG_EXT_TFU_ENABLE` follows diff --git a/VX_config.toml b/VX_config.toml index 3f7cd71ebc..9df622cd59 100644 --- a/VX_config.toml +++ b/VX_config.toml @@ -156,7 +156,6 @@ VX_CFG_FPU_TYPE = "expr: ('STD' if $ASIC else 'DSP') if $SYNTHESIS else ('DPI' i VX_CFG_NUM_FPU_LANES = "expr: $VX_CFG_SIMD_WIDTH" VX_CFG_NUM_FPU_BLOCKS = "expr: $VX_CFG_ISSUE_WIDTH" -VX_CFG_FPU_QUEUE_SIZE = "expr: 2 * ($VX_CFG_SIMD_WIDTH // $VX_CFG_NUM_FPU_LANES)" # Map the soft FPU (STD) mantissa multipliers onto DSP48: on for FPGA synth, off # for ASIC/sim (mirrors VX_CFG_TCU_USE_DSP). Single source of truth. VX_CFG_FPU_USE_DSP = "expr: 1 if ($SYNTHESIS and not $ASIC) else 0" diff --git a/ci/baselines/perf/core.json b/ci/baselines/perf/core.json index 0bf907e5dd..eb50566936 100644 --- a/ci/baselines/perf/core.json +++ b/ci/baselines/perf/core.json @@ -1,188 +1,188 @@ { "core:raycast-nt16:rtlsim": { "32": { - "cycles": 7575004, + "cycles": 7564717, "instrs": 2258191 }, "app": "raycast", "args": "", - "config_hash": "57363097e97b43e0", + "config_hash": "f4c76a1e2f5dc47e", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "core:raycast-nt4:rtlsim": { "32": { - "cycles": 18552450, + "cycles": 18539985, "instrs": 5698339 }, "app": "raycast", "args": "", - "config_hash": "9245d48e06c98ced", + "config_hash": "318b6ce9d5e1f486", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "core:sgemm-mc-nt16:rtlsim": { "32": { - "cycles": 474193, + "cycles": 471288, "instrs": 621632 }, "app": "sgemm", "args": "-n128", - "config_hash": "36f8a3823290652c", + "config_hash": "cbecdcbbaed20e68", "configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=16 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, "core:sgemm-mc-nt4:rtlsim": { "32": { - "cycles": 1680553, + "cycles": 1647491, "instrs": 2486336 }, "app": "sgemm", "args": "-n128", - "config_hash": "984b01e8101cfc47", + "config_hash": "bf6fa85ceb50412c", "configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, "core:sgemm-nt16:rtlsim": { "32": { - "cycles": 1556536, + "cycles": 1574058, "instrs": 621584 }, "app": "sgemm", "args": "-n128", - "config_hash": "cde9952ab2b97bd9", + "config_hash": "22fcfc593afe269c", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "core:sgemm-nt4:rtlsim": { "32": { - "cycles": 5869813, + "cycles": 5841715, "instrs": 2486288 }, "app": "sgemm", "args": "-n128", - "config_hash": "322a72e62381f276", + "config_hash": "65689af0d18b22ce", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "core:sgemm2-wide:rtlsim": { "32": { - "cycles": 328310, + "cycles": 326276, "instrs": 111376 }, "app": "sgemm2", "args": "-n64 -t4", - "config_hash": "ff8c45e67d6cc15b", + "config_hash": "d5ed2469dec6faf8", "configs": "-DVX_CFG_EXT_LDST_WIDE_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "core:sgemmx-nt16:rtlsim": { "32": { - "cycles": 1023778, + "cycles": 989001, "instrs": 266832 }, "app": "sgemmx", "args": "-n128", - "config_hash": "161b4f819b26531a", + "config_hash": "64f2803e69ec5ddb", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "core:sgemmx-nt4:rtlsim": { "32": { - "cycles": 3987094, + "cycles": 3699717, "instrs": 1067280 }, "app": "sgemmx", "args": "-n128", - "config_hash": "202a63f8eb007416", + "config_hash": "1ad6e7738078f9f8", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "core:sgemv-nt16:rtlsim": { "32": { - "cycles": 285869, + "cycles": 287646, "instrs": 66704 }, "app": "sgemv", "args": "-m512 -n512", - "config_hash": "51a66e6894500a43", + "config_hash": "b0da0a19d68d3df3", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "core:sgemv-nt4:rtlsim": { "32": { - "cycles": 746326, + "cycles": 743623, "instrs": 266768 }, "app": "sgemv", "args": "-m512 -n512", - "config_hash": "ff5fd64440c02266", + "config_hash": "66e91137ff2dce6b", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "core:softmax-nt16:rtlsim": { "32": { - "cycles": 1274253, + "cycles": 1274776, "instrs": 463065 }, "app": "softmax", "args": "-n64", - "config_hash": "147969a83745f11a", + "config_hash": "82f30781ddc8767a", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "core:softmax-nt4:rtlsim": { "32": { - "cycles": 4859055, + "cycles": 4859770, "instrs": 1785701 }, "app": "softmax", "args": "-n64", - "config_hash": "4107408b3546b287", + "config_hash": "72b80c104d72b3c6", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "core:stencil3d-nt16:rtlsim": { "32": { - "cycles": 2137750, + "cycles": 2128244, "instrs": 897040 }, "app": "stencil3d", "args": "-n32", - "config_hash": "56c620b8af62d61f", + "config_hash": "53ea9544c66daf39", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "core:stencil3d-nt4:rtlsim": { "32": { - "cycles": 4210252, + "cycles": 4201897, "instrs": 1794064 }, "app": "stencil3d", "args": "-n32", - "config_hash": "5cb0f49ff28434f8", + "config_hash": "d41cc5bbe6abe70d", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "core:vecadd-nt16:rtlsim": { "32": { - "cycles": 91021, + "cycles": 91487, "instrs": 27664 }, "app": "vecadd", "args": "-n16384", - "config_hash": "6c8e84402d768f8c", + "config_hash": "27644211377f5795", "configs": "-DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "core:vecadd-nt4:rtlsim": { "32": { - "cycles": 348467, + "cycles": 348462, "instrs": 110608 }, "app": "vecadd", "args": "-n16384", - "config_hash": "c7cdda870b2f2369", + "config_hash": "cae46082a9e258a5", "configs": "-DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" } diff --git a/ci/baselines/perf/dxa.json b/ci/baselines/perf/dxa.json index e959d6d108..53be98fea9 100644 --- a/ci/baselines/perf/dxa.json +++ b/ci/baselines/perf/dxa.json @@ -1,23 +1,23 @@ { "dxa:perf_gate-copy-mcast:rtlsim": { "32": { - "cycles": 3445, + "cycles": 3449, "instrs": 955 }, "app": "dxa_copy_mcast", "args": "", - "config_hash": "7256353ed29b8be3", + "config_hash": "6cb28dab8a233a33", "configs": "-DVX_CFG_EXT_DXA_ENABLE", "driver": "rtlsim" }, "dxa:perf_gate-copy-nt16:rtlsim": { "32": { - "cycles": 1896, + "cycles": 1897, "instrs": 560 }, "app": "dxa_copy", "args": "-d1", - "config_hash": "fb1f2e9ec30fda50", + "config_hash": "fd7d321f858e3d83", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, @@ -28,95 +28,95 @@ }, "app": "dxa_copy", "args": "-d1", - "config_hash": "7f9fbf8169361c7d", + "config_hash": "7b8fc1ae336220a3", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "dxa:perf_gate-sgemm2-dxa-mcast-nt16:rtlsim": { "32": { - "cycles": 10012679, + "cycles": 9951265, "instrs": 3829776 }, "app": "sgemm2_dxa_mcast", "args": "-n128", - "config_hash": "9936082f7f64c31c", + "config_hash": "1efdef9956961885", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "dxa:perf_gate-sgemm2-dxa-mcast-nt4:rtlsim": { "32": { - "cycles": 10043665, + "cycles": 9982161, "instrs": 3829776 }, "app": "sgemm2_dxa_mcast", "args": "-n128", - "config_hash": "42207bd5a2540914", + "config_hash": "c6f5492c89413ef4", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "dxa:perf_gate-sgemm2-dxa-nt16:rtlsim": { "32": { - "cycles": 2275856, + "cycles": 2275789, "instrs": 835600 }, "app": "sgemm2_dxa", "args": "-n128 -t4 -m1", - "config_hash": "182e784c92df69ec", + "config_hash": "c1f268439f2fd299", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "dxa:perf_gate-sgemm2-dxa-nt4:rtlsim": { "32": { - "cycles": 8962589, + "cycles": 9023340, "instrs": 3302416 }, "app": "sgemm2_dxa", "args": "-n128 -t4 -m1", - "config_hash": "502dd7dc09e817df", + "config_hash": "98038dc180cb3ae0", "configs": "-DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "dxa:perf_gate-wgmma-dxa-mcast-nt16:rtlsim": { "32": { - "cycles": 81041, + "cycles": 80564, "instrs": 26560 }, "app": "sgemm_tcu_wg_dxa_mcast", "args": "-m 128 -n 128 -k 64", - "config_hash": "6e9bafbc4d311719", + "config_hash": "dabb9faa77c61dbd", "configs": "-DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "dxa:perf_gate-wgmma-dxa-mcast-nt4:rtlsim": { "32": { - "cycles": 378836, + "cycles": 353714, "instrs": 170560 }, "app": "sgemm_tcu_wg_dxa_mcast", "args": "-m 128 -n 128 -k 64", - "config_hash": "d65701a0bff5e490", + "config_hash": "23ca99c4e82c0cf6", "configs": "-DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "dxa:perf_gate-wgmma-dxa:rtlsim": { "32": { - "cycles": 28114, + "cycles": 28649, "instrs": 8872 }, "app": "sgemm_tcu_wg_dxa", "args": "-m 128 -n 128 -k 64", - "config_hash": "95baccf7110a4641", + "config_hash": "c1a80608550d9402", "configs": "-DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DWGMMA_NRC=16 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_THREADS=32", "driver": "rtlsim" }, "dxa:perf_gate-wgmma-sp-dxa:rtlsim": { "32": { - "cycles": 47433, + "cycles": 47326, "instrs": 9344 }, "app": "sgemm_tcu_wg_sp_dxa", "args": "-m 128 -n 128 -k 128", - "config_hash": "f9b2facc7c7a1318", + "config_hash": "785aae0b786d4fb1", "configs": "-DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_TCU_SPARSE_ENABLE -DVX_CFG_EXT_DXA_ENABLE -DWGMMA_NRC=32 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_NUM_THREADS=32", "driver": "rtlsim" } diff --git a/ci/baselines/perf/graphics.json b/ci/baselines/perf/graphics.json index b7f4de98bd..56e0220ab6 100644 --- a/ci/baselines/perf/graphics.json +++ b/ci/baselines/perf/graphics.json @@ -1,100 +1,100 @@ { "graphics:perf_gate-draw3d-mc:rtlsim": { "32": { - "cycles": 521658, + "cycles": 521395, "instrs": 203152 }, "app": "gfx_draw3d", "args": "-w 128 -h 128 -t box.cgltrace -r box_ref_128.png", - "config_hash": "09492f6735fbac27", + "config_hash": "deba93a3fa3654ae", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, "graphics:perf_gate-draw3d-nt16:rtlsim": { "32": { - "cycles": 140681, + "cycles": 140799, "instrs": 51676 }, "app": "gfx_draw3d", "args": "-w 128 -h 128 -t box.cgltrace -r box_ref_128.png", - "config_hash": "8f0382a0b7056f3d", + "config_hash": "27a677c9e5bd84f2", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "graphics:perf_gate-draw3d-nt4:rtlsim": { "32": { - "cycles": 524338, + "cycles": 524021, "instrs": 203152 }, "app": "gfx_draw3d", "args": "-w 128 -h 128 -t box.cgltrace -r box_ref_128.png", - "config_hash": "1785c8f909e10fbb", + "config_hash": "0e62967783b42ce1", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "graphics:perf_gate-om-nt16:rtlsim": { "32": { - "cycles": 173686, + "cycles": 175489, "instrs": 63504 }, "app": "gfx_om", "args": "-w 128 -h 128 -r whitebox_128.png", - "config_hash": "10290b564f67a369", + "config_hash": "f32406156b2c5314", "configs": "-DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "graphics:perf_gate-om-nt4:rtlsim": { "32": { - "cycles": 693076, + "cycles": 699645, "instrs": 253968 }, "app": "gfx_om", "args": "-w 128 -h 128 -r whitebox_128.png", - "config_hash": "5b725c6d9b52b618", + "config_hash": "a6f0edfedd27affc", "configs": "-DVX_CFG_EXT_OM_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "graphics:perf_gate-raster-nt16:rtlsim": { "32": { - "cycles": 12912, + "cycles": 12918, "instrs": 4028 }, "app": "gfx_raster", "args": "-w 128 -h 128 -t triangle.cgltrace -r triangle_ref_128.png", - "config_hash": "164a3e5b1bef237f", + "config_hash": "4dafbc4155489171", "configs": "-DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "graphics:perf_gate-raster-nt4:rtlsim": { "32": { - "cycles": 49808, + "cycles": 49829, "instrs": 15920 }, "app": "gfx_raster", "args": "-w 128 -h 128 -t triangle.cgltrace -r triangle_ref_128.png", - "config_hash": "ede979980ccc1b41", + "config_hash": "e6a5619a95ba0ebc", "configs": "-DVX_CFG_EXT_RASTER_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" }, "graphics:perf_gate-tex-nt16:rtlsim": { "32": { - "cycles": 33351, + "cycles": 33428, "instrs": 11536 }, "app": "gfx_tex", "args": "-i toad.png -r toad_ref_f0.png -f 0 -g 0", - "config_hash": "41b6b3b3aa31211c", + "config_hash": "1e22bfa9b896320a", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "graphics:perf_gate-tex-nt4:rtlsim": { "32": { - "cycles": 129832, + "cycles": 130190, "instrs": 46096 }, "app": "gfx_tex", "args": "-i toad.png -r toad_ref_f0.png -f 0 -g 0", - "config_hash": "95eb26e3419bb63c", + "config_hash": "b75d8ff24635b0cc", "configs": "-DVX_CFG_EXT_TEX_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" } diff --git a/ci/baselines/perf/raytracing.json b/ci/baselines/perf/raytracing.json index 97db01663d..75f640bbec 100644 --- a/ci/baselines/perf/raytracing.json +++ b/ci/baselines/perf/raytracing.json @@ -1,34 +1,34 @@ { "raytracing:perf_gate-rt_raycast-mc:rtlsim": { "32": { - "cycles": 76398, + "cycles": 75902, "instrs": 40823 }, "app": "rt_raycast", "args": "", - "config_hash": "5890229c4cfb0f70", + "config_hash": "c1316110e7960098", "configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, "raytracing:perf_gate-rt_raycast-nt16:rtlsim": { "32": { - "cycles": 51640, + "cycles": 51487, "instrs": 11815 }, "app": "rt_raycast", "args": "", - "config_hash": "8e711be399e5a018", + "config_hash": "6cdc58cfcc94440a", "configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_THREADS=16", "driver": "rtlsim" }, "raytracing:perf_gate-rt_raycast-nt4:rtlsim": { "32": { - "cycles": 150258, + "cycles": 149916, "instrs": 40807 }, "app": "rt_raycast", "args": "", - "config_hash": "6699102628f13e70", + "config_hash": "e05fe1c60ea734e3", "configs": "-DVX_CFG_EXT_RTU_ENABLE -DVX_CFG_NUM_THREADS=4", "driver": "rtlsim" } diff --git a/ci/baselines/perf/tensor.json b/ci/baselines/perf/tensor.json index 950e9722a3..cc65463ddc 100644 --- a/ci/baselines/perf/tensor.json +++ b/ci/baselines/perf/tensor.json @@ -1,67 +1,67 @@ { "tensor:perf_gate-fp16-isw4:rtlsim": { "32": { - "cycles": 156748, + "cycles": 156089, "instrs": 129824 }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "314617be97a05a39", + "config_hash": "2b24ce63f189a416", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1", "driver": "rtlsim" }, "tensor:perf_gate-fp16-mc-nt16:rtlsim": { "32": { - "cycles": 35638, + "cycles": 41492, "instrs": 46912 }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "c0c3a1313a958feb", + "config_hash": "63df9fd3d6a2c04d", "configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=16 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, "tensor:perf_gate-fp16-mc-nt4:rtlsim": { "32": { - "cycles": 218111, + "cycles": 191955, "instrs": 334912 }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "fad5f60932d21beb", + "config_hash": "c814f42727c00f5b", "configs": "-DVX_CFG_NUM_WARPS=8 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_NUM_CORES=2 -DVX_CFG_NUM_THREADS=4 -DVX_CFG_L2_ENABLE", "driver": "rtlsim" }, "tensor:perf_gate-fp16:rtlsim": { "32": { - "cycles": 246051, + "cycles": 228191, "instrs": 129808 }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "ebdab55848e286a9", + "config_hash": "8526f6a4c02fa1f0", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32", "driver": "rtlsim" }, "tensor:perf_gate-sgemm2-fp16:rtlsim": { "32": { - "cycles": 548256, + "cycles": 548159, "instrs": 373536 }, "app": "sgemm2_tcu", "args": "-m 128 -n 128 -k 64", - "config_hash": "0c44c36fec7dc56d", + "config_hash": "5912ab09f9b37c43", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1", "driver": "rtlsim" }, "tensor:perf_gate-sgemm_tcu-ldm:rtlsim": { "32": { - "cycles": 245496, + "cycles": 195745, "instrs": 127760 }, "app": "sgemm_tcu", "args": "-m 128 -n 128 -k 128", - "config_hash": "571171e137abb418", + "config_hash": "b0d3bdd64f6f4225", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_EXT_TCU_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DVX_CFG_EXT_LDST_MATRIX_ENABLE", "driver": "rtlsim" } diff --git a/ci/baselines/perf/tensor_mx.json b/ci/baselines/perf/tensor_mx.json index d23208d0f1..92868d46bd 100644 --- a/ci/baselines/perf/tensor_mx.json +++ b/ci/baselines/perf/tensor_mx.json @@ -1,12 +1,12 @@ { "tensor_mx:perf_gate-mxfp8:rtlsim": { "32": { - "cycles": 76260, + "cycles": 71950, "instrs": 36112 }, "app": "sgemm_tcu_mx", "args": "-m 128 -n 128 -k32", - "config_hash": "5614ebd44a8b65a7", + "config_hash": "beb5a25c336e84ba", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_MX_ENABLE -DVX_CFG_TCU_FP8_ENABLE -DITYPE=mxfp8 -DOTYPE=fp32 -DVX_CFG_TCU_TYPE_DPI", "driver": "rtlsim" } diff --git a/ci/baselines/perf/tensor_sp.json b/ci/baselines/perf/tensor_sp.json index d751033cdb..d47af0508b 100644 --- a/ci/baselines/perf/tensor_sp.json +++ b/ci/baselines/perf/tensor_sp.json @@ -1,12 +1,12 @@ { "tensor_sp:perf_gate-sparse-fp16:rtlsim": { "32": { - "cycles": 179178, + "cycles": 177057, "instrs": 100112 }, "app": "sgemm_tcu_sp", "args": "-m 128 -n 128 -k 128", - "config_hash": "69f9bc91c2215b0b", + "config_hash": "a046c9ee62421a64", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_SPARSE_ENABLE", "driver": "rtlsim" } diff --git a/ci/baselines/perf/tensor_wg.json b/ci/baselines/perf/tensor_wg.json index 0db2111d06..65bbcabb07 100644 --- a/ci/baselines/perf/tensor_wg.json +++ b/ci/baselines/perf/tensor_wg.json @@ -1,34 +1,34 @@ { "tensor_wg:perf_gate-wgmma-fedp2k-rs:rtlsim": { "32": { - "cycles": 136008, + "cycles": 136055, "instrs": 99360 }, "app": "sgemm_tcu_wg", "args": "-m64 -n64 -k64", - "config_hash": "dbb50d1304fd1913", + "config_hash": "2adbad00a546215d", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1 -DVX_CFG_TCU_FEDP2K -DITYPE=fp16 -DOTYPE=fp32 -DWGMMA_NRC=8 -DWGMMA_RS", "driver": "rtlsim" }, "tensor_wg:perf_gate-wgmma-fp16-ss:rtlsim": { "32": { - "cycles": 644905, + "cycles": 646201, "instrs": 525344 }, "app": "sgemm_tcu_wg", "args": "-m 128 -n 128 -k 128", - "config_hash": "0a292df097c70763", + "config_hash": "b9c991cce3a95080", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DITYPE=fp16 -DOTYPE=fp32 -DWGMMA_NRC=32 -DWGMMA_SS -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1", "driver": "rtlsim" }, "tensor_wg:perf_gate-wgmma-sparse:rtlsim": { "32": { - "cycles": 375241, + "cycles": 373926, "instrs": 258912 }, "app": "sgemm_tcu_wg_sp", "args": "-m 128 -n 128 -k 128", - "config_hash": "623d902ce52c341d", + "config_hash": "009b8e7a24531e75", "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8 -DVX_CFG_ISSUE_WIDTH=4 -DVX_CFG_EXT_TCU_ENABLE -DVX_CFG_TCU_WGMMA_ENABLE -DVX_CFG_TCU_SPARSE_ENABLE -DWGMMA_NRC=32 -DVX_CFG_NUM_ALU_BLOCKS=1 -DVX_CFG_NUM_LSU_BLOCKS=1 -DVX_CFG_NUM_FPU_BLOCKS=1", "driver": "rtlsim" } diff --git a/ci/baselines/synthesis/beacon/core.json b/ci/baselines/synthesis/beacon/core.json index 15108d7ccc..9c5ea0e0dd 100644 --- a/ci/baselines/synthesis/beacon/core.json +++ b/ci/baselines/synthesis/beacon/core.json @@ -71,7 +71,7 @@ "dut": "core", "result": { "bram": 39.0, - "build_time_s": 105, + "build_time_s": 100, "deep_endpoints": 1610, "deepest_paths": [ "15 core/g_compute_slices.g_slices_0.compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks_0.buf_out/g_eb2.stream_buffer/g_buffer.data_out_r[1551] -> core/g_compute_slices.g_slices_0.compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.g_out_reg.data_out_r.d[822]", @@ -86,14 +86,14 @@ "15 core/g_compute_slices.g_slices_0.compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks_0.buf_out/g_eb2.stream_buffer/g_buffer.data_out_r[1551] -> core/g_compute_slices.g_slices_0.compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.g_out_reg.data_out_r.d[831]" ], "dsp": 107, - "endpoints": 91216, + "endpoints": 91995, "env": { "beacon": "beacon 134d03b9e", "circt": "CIRCT 90c5fd313", "device": "xcu55c-fsvh2892-2L-e", "xlen": 32 }, - "ff": 103820, + "ff": 105829, "fix_levels": 12, "interfaces": { "core.dcache_bus_if_0_rsp_ready": 1, @@ -103,11 +103,11 @@ "core.icache_bus_if_0_rsp_ready": 1, "core.kmu_bus_if_ready": 1 }, - "lut": 116403, - "lutram": 6860, + "lut": 117064, + "lutram": 6818, "max_levels": 15, "pred_fmax_mhz": 284.3, - "risk_endpoints": 5, + "risk_endpoints": 6, "tied_bits": 2, "tied_ports": [ { @@ -125,7 +125,7 @@ "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/alu_int/rsp_buf/g_eb1_pipe_buffer/g_register_g_pipe_regs_*_pipe_register": 13, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/muldiv_unit/g_multiplier_*_multiplier/pipe_reg": 8, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/muldiv_unit/serial_div/g_lanes_*_div_lane": 8, - "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/pe_switch/rsp_arb/g_input_select_g_arbiter_g_out_buf_*_out_buf/g_eb2_stream_buffer": 8, + "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/pe_switch/rsp_arb/g_input_select_g_arbiter_g_out_buf_*_out_buf/g_eb2_stream_buffer": 9, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt_g_units_*_fcvt_unit/pipe_reg2": 8, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt_g_units_*_fcvt_unit/pipe_reg4": 10, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt_g_units_*_fcvt_unit/pipe_reg5": 10, @@ -167,7 +167,7 @@ "core/scheduler/warp_shared_unit/bar_unit": 8 }, "uram": 0, - "watch_endpoints": 9292, + "watch_endpoints": 9420, "watch_levels": 8 } }, @@ -193,14 +193,14 @@ "15 core/g_compute_slices.g_slices_0.compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks_0.buf_out/g_eb2.stream_buffer/g_buffer.data_out_r[1551] -> core/g_compute_slices.g_slices_0.compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.g_out_reg.data_out_r.d[831]" ], "dsp": 107, - "endpoints": 91248, + "endpoints": 92027, "env": { "beacon": "beacon 134d03b9e", "circt": "CIRCT 90c5fd313", "device": "xcu55c-fsvh2892-2L-e", "xlen": 32 }, - "ff": 103836, + "ff": 105845, "fix_levels": 12, "interfaces": { "core.dcache_bus_if_0_rsp_ready": 1, @@ -210,11 +210,11 @@ "core.icache_bus_if_0_rsp_ready": 1, "core.kmu_bus_if_ready": 1 }, - "lut": 116782, - "lutram": 6860, + "lut": 117443, + "lutram": 6818, "max_levels": 15, "pred_fmax_mhz": 284.3, - "risk_endpoints": 5, + "risk_endpoints": 6, "tied_bits": 2, "tied_ports": [ { @@ -232,7 +232,7 @@ "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/alu_int/rsp_buf/g_eb1_pipe_buffer/g_register_g_pipe_regs_*_pipe_register": 13, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/muldiv_unit/g_multiplier_*_multiplier/pipe_reg": 8, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/muldiv_unit/serial_div/g_lanes_*_div_lane": 8, - "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/pe_switch/rsp_arb/g_input_select_g_arbiter_g_out_buf_*_out_buf/g_eb2_stream_buffer": 8, + "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/pe_switch/rsp_arb/g_input_select_g_arbiter_g_out_buf_*_out_buf/g_eb2_stream_buffer": 9, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt_g_units_*_fcvt_unit/pipe_reg2": 8, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt_g_units_*_fcvt_unit/pipe_reg4": 10, "core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt_g_units_*_fcvt_unit/pipe_reg5": 10, @@ -274,7 +274,7 @@ "core/scheduler/warp_shared_unit/bar_unit": 8 }, "uram": 0, - "watch_endpoints": 9532, + "watch_endpoints": 9660, "watch_levels": 8 } }, @@ -353,14 +353,14 @@ "15 g_clusters_0.cluster/g_sockets_0.socket/g_cores_0.core/mem_unit/g_dcache_bus_if_0.g_flush_lane.dcr_flush/dcache_flush_arb/req_arb/g_input_select.g_arbiter.g_out_buf_0.out_buf/g_eb2.stream_buffer/g_buffer.data_out_r[120] -> g_clusters_0.cluster/g_sockets_0.socket/dmmu/tlb/cam/mru_r.d[9]" ], "dsp": 60, - "endpoints": 126360, + "endpoints": 127174, "env": { "beacon": "beacon 134d03b9e", "circt": "CIRCT 90c5fd313", "device": "xcu55c-fsvh2892-2L-e", "xlen": 32 }, - "ff": 125254, + "ff": 128320, "fix_levels": 12, "interfaces": { "g_clusters_*_cluster.busy": 1, @@ -376,11 +376,11 @@ "g_clusters_*_cluster/g_sockets_*_socket/g_cores_*_core.icache_bus_if_0_rsp_ready": 1, "g_clusters_*_cluster/g_sockets_*_socket/g_cores_*_core.kmu_bus_if_ready": 1 }, - "lut": 126185, - "lutram": 10110, + "lut": 127195, + "lutram": 10046, "max_levels": 15, "pred_fmax_mhz": 286.6, - "risk_endpoints": 126, + "risk_endpoints": 122, "tied_bits": 2, "tied_ports": [ { @@ -417,6 +417,7 @@ "g_clusters_*_cluster/g_sockets_*_socket/g_cores_*_core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/alu_int/rsp_buf/g_eb1_pipe_buffer/g_register_g_pipe_regs_*_pipe_register": 11, "g_clusters_*_cluster/g_sockets_*_socket/g_cores_*_core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/muldiv_unit/g_multiplier_*_multiplier/pipe_reg": 8, "g_clusters_*_cluster/g_sockets_*_socket/g_cores_*_core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/muldiv_unit/serial_div/g_lanes_*_div_lane": 8, + "g_clusters_*_cluster/g_sockets_*_socket/g_cores_*_core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/alu_block/pe_switch/rsp_arb/g_input_select_g_arbiter_g_out_buf_*_out_buf/g_eb2_stream_buffer": 8, "g_clusters_*_cluster/g_sockets_*_socket/g_cores_*_core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt_g_units_*_fcvt_unit/pipe_reg2": 8, "g_clusters_*_cluster/g_sockets_*_socket/g_cores_*_core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt_g_units_*_fcvt_unit/pipe_reg4": 10, "g_clusters_*_cluster/g_sockets_*_socket/g_cores_*_core/g_compute_slices_g_slices_*_compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt_g_units_*_fcvt_unit/pipe_reg5": 10, @@ -471,7 +472,7 @@ "kmu": 9 }, "uram": 0, - "watch_endpoints": 9587, + "watch_endpoints": 9651, "watch_levels": 8 } } diff --git a/ci/baselines/synthesis/beacon_asic/core.json b/ci/baselines/synthesis/beacon_asic/core.json index d6d1eb17d1..87c866a2e1 100644 --- a/ci/baselines/synthesis/beacon_asic/core.json +++ b/ci/baselines/synthesis/beacon_asic/core.json @@ -31,16 +31,16 @@ "configs": "-DVX_CFG_NUM_THREADS=8 -DVX_CFG_NUM_WARPS=8", "dut": "core", "result": { - "build_time_s": 65, - "cells": 429305, - "endpoints": 50584, + "build_time_s": 150, + "cells": 430592, + "endpoints": 50938, "env": { "beacon": "beacon 134d03b9e", "circt": "CIRCT 90c5fd313", "pdk": "asap7", "xlen": 32 }, - "ff": 76744, + "ff": 77851, "fmax_mhz": 1107.4, "macros": 13, "max_stages": 28, @@ -100,16 +100,16 @@ "configs": "-DVX_CFG_NUM_THREADS=4 -DVX_CFG_NUM_WARPS=4", "dut": "top", "result": { - "build_time_s": 130, - "cells": 1039532, - "endpoints": 155971, + "build_time_s": 140, + "cells": 1041812, + "endpoints": 156497, "env": { "beacon": "beacon 134d03b9e", "circt": "CIRCT 90c5fd313", "pdk": "asap7", "xlen": 32 }, - "ff": 225836, + "ff": 227798, "fmax_mhz": 777.0, "macros": 88, "max_stages": 44, diff --git a/ci/baselines/synthesis/xilinx/core.json b/ci/baselines/synthesis/xilinx/core.json index 1a4efc9e74..baa665b702 100644 --- a/ci/baselines/synthesis/xilinx/core.json +++ b/ci/baselines/synthesis/xilinx/core.json @@ -183,106 +183,106 @@ "dut": "core", "result": { "bram": 43, - "build_time_s": 4605, + "build_time_s": 3946, "critical_paths": [ { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_1148_1161/RAME_D1/I", - "group": "core_clock", - "levels": 7, - "logic_ns": 0.86, - "route_ns": 2.521, - "route_pct": 74.566, - "slack_ns": -0.15, - "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1551]_rep_replica/C" - }, - { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_1204_1217/RAMF_D1/I", + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/frontend_slice/fetch/decompressor/state_reg[6][0]/CE", "group": "core_clock", "levels": 9, - "logic_ns": 0.929, - "route_ns": 2.447, - "route_pct": 72.484, - "slack_ns": -0.147, - "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1565]/C" + "logic_ns": 0.935, + "route_ns": 2.282, + "route_pct": 70.935, + "slack_ns": 0.012, + "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/frontend_slice/fetch/decompressor/buf_pc_reg[5][2]/C" }, { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_1204_1217/RAMF_D1/I", + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/frontend_slice/fetch/decompressor/state_reg[6][0]/CE", "group": "core_clock", "levels": 9, - "logic_ns": 0.987, - "route_ns": 2.386, - "route_pct": 70.737, - "slack_ns": -0.143, - "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1565]/C" + "logic_ns": 0.948, + "route_ns": 2.247, + "route_pct": 70.329, + "slack_ns": 0.033, + "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/frontend_slice/warp_sched/sched_buf/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[5]/C" }, { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_784_797/RAMA_D1/I", + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/scoreboard/g_scoreboard[8].inuse_table/operands_ready_r_reg/D", "group": "core_clock", - "levels": 9, - "logic_ns": 1.127, - "route_ns": 2.246, - "route_pct": 66.589, - "slack_ns": -0.142, - "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1565]/C" + "levels": 6, + "logic_ns": 0.562, + "route_ns": 2.719, + "route_pct": 82.871, + "slack_ns": 0.033, + "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/ibuffer/g_bufs[8].instr_buf/g_ebN.fifo_queue/g_depth_n.g_out_reg.data_out_r_reg[11]/C" }, { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_882_895/RAMA_D1/I", + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/alu_block/alu_int/rsp_buf/g_eb1.pipe_buffer/g_register.g_pipe_regs[0].pipe_register/g_pipe.g_partial_reset.pipe_free_reg[0][330]/D", "group": "core_clock", "levels": 10, - "logic_ns": 0.927, - "route_ns": 2.445, - "route_pct": 72.51, - "slack_ns": -0.141, - "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1565]/C" + "logic_ns": 0.921, + "route_ns": 2.355, + "route_pct": 71.89, + "slack_ns": 0.036, + "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/dispatcher/g_buffers[0].buffer/g_ebN.fifo_queue/g_depth_n.g_out_reg.data_out_r_reg[1559]/C" }, { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_784_797/RAMA_D1/I", + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_1092_1105/RAMF_D1/I", "group": "core_clock", - "levels": 9, - "logic_ns": 1.07, - "route_ns": 2.301, - "route_pct": 68.26, - "slack_ns": -0.14, - "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1565]/C" + "levels": 10, + "logic_ns": 1.128, + "route_ns": 2.06, + "route_pct": 64.615, + "slack_ns": 0.042, + "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1566]/C" }, { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_882_895/RAMB/I", + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/rsp_arb/g_input_select.g_arbiter.g_out_buf[0].out_buf/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[335]/D", "group": "core_clock", - "levels": 10, - "logic_ns": 0.863, - "route_ns": 2.528, - "route_pct": 74.552, - "slack_ns": -0.137, - "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1565]/C" + "levels": 1, + "logic_ns": 0.227, + "route_ns": 3.04, + "route_pct": 93.052, + "slack_ns": 0.048, + "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/rsp_buf/g_eb2.stream_buffer/g_buffer.valid_in_r_reg_replica_7/C" }, { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_882_895/RAMG/I", + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_1008_1021/RAMA/I", "group": "core_clock", "levels": 10, - "logic_ns": 0.863, - "route_ns": 2.525, - "route_pct": 74.531, - "slack_ns": -0.134, - "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1565]/C" + "logic_ns": 1.067, + "route_ns": 2.14, + "route_pct": 66.728, + "slack_ns": 0.048, + "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1566]/C" }, { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_1190_1203/RAMC/I", + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.g_out_reg.data_out_r_reg[1102]/D", "group": "core_clock", "levels": 11, - "logic_ns": 1.017, - "route_ns": 2.371, - "route_pct": 69.983, - "slack_ns": -0.133, - "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1565]/C" + "logic_ns": 1.141, + "route_ns": 2.122, + "route_pct": 65.034, + "slack_ns": 0.05, + "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1566]/C" }, { - "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_882_895/RAMA_D1/I", + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/frontend_slice/fetch/decompressor/state_reg[6][1]/CE", "group": "core_clock", "levels": 9, - "logic_ns": 0.957, - "route_ns": 2.408, - "route_pct": 71.558, - "slack_ns": -0.133, + "logic_ns": 0.935, + "route_ns": 2.243, + "route_pct": 70.579, + "slack_ns": 0.051, + "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/frontend_slice/fetch/decompressor/buf_pc_reg[5][2]/C" + }, + { + "endpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/lsu_scheduler/mem_scheduler/g_req_queue_rw.req_queue/g_ebN.fifo_queue/g_depth_n.dp_ram/g_no_asic.g_sync.g_auto.g_write_first.g_no_wren.ram_reg_0_3_1092_1105/RAMF_D1/I", + "group": "core_clock", + "levels": 10, + "logic_ns": 1.122, + "route_ns": 2.057, + "route_pct": 64.703, + "slack_ns": 0.051, "startpoint": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_dispatch/g_blocks[0].buf_out/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[1565]/C" } ], @@ -293,12 +293,12 @@ "vivado": "2024.2", "xlen": 32 }, - "ff": 86336, - "fmax_mhz": 287.1, + "ff": 86189, + "fmax_mhz": 301.1, "high_fanout_nets": [ { "driver": "PORT", - "fanout": 6598, + "fanout": 6595, "net": "reset" }, { @@ -318,23 +318,23 @@ }, { "driver": "FDRE", - "fanout": 1864, + "fanout": 1861, "net": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/dispatcher/g_buffers[3].buffer/g_ebN.fifo_queue/g_depth_n.wr_ptr_r_reg[0]_0[0]" }, { "driver": "FDRE", - "fanout": 1863, + "fanout": 1860, "net": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/dispatcher/g_buffers[3].buffer/g_ebN.fifo_queue/g_depth_n.wr_ptr_r[1]" }, { "driver": "LUT4", - "fanout": 1860, + "fanout": 1858, "net": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/operands/g_collectors[0].opc_unit/out_buf/g_eb2.stream_buffer/g_ebN.push_1" }, { "driver": "LUT6", - "fanout": 1798, - "net": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/operands/g_collectors[0].opc_unit/out_buf/g_eb2.stream_buffer/g_size_gt1.g_single_step.g_size_gt2.empty_r_reg_rep" + "fanout": 1793, + "net": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/operands/g_collectors[0].opc_unit/out_buf/g_eb2.stream_buffer/g_size_gt1.g_single_step.g_size_gt2.empty_r_reg" }, { "driver": "LUT2", @@ -342,15 +342,15 @@ "net": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/dispatcher/g_buffers[2].buffer/g_ebN.fifo_queue/pending_size/E[0]" }, { - "driver": "LUT6", - "fanout": 1617, - "net": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/dispatcher/g_buffers[3].buffer/g_ebN.fifo_queue/pending_size/g_size_gt1.g_single_step.g_size_gt2.empty_r_reg_1" + "driver": "LUT5", + "fanout": 1626, + "net": "core/g_compute_slices.g_slices[0].compute_slice/backend_slice/issue_slice/dispatcher/g_buffers[0].buffer/g_ebN.fifo_queue/pending_size/g_size_gt1.g_single_step.g_size_gt2.empty_r_reg_rep__8_0" } ], - "lut": 123981, - "lutram": 7439, + "lut": 123775, + "lutram": 7455, "uram": 0, - "wns_ns": -0.15 + "wns_ns": 0.012 } }, "lmem": { @@ -537,107 +537,107 @@ "dut": "top", "result": { "bram": 85, - "build_time_s": 5491, + "build_time_s": 4996, "critical_paths": [ { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dcache/g_cache_wrap[0].cache_wrap/g_cache.cache/g_banks[1].bank/g_amo.amo/g_commit.wbq_data_reg[3][48]/D", + "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/alu_block/pe_switch/rsp_arb/g_input_select.g_arbiter.g_out_buf[0].out_buf/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[132]/D", "group": "core_clock", - "levels": 8, - "logic_ns": 0.79, - "route_ns": 3.146, - "route_pct": 79.928, - "slack_ns": 0.044, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dcache/g_cache_wrap[0].cache_wrap/g_cache.cache/g_banks[1].bank/g_amo.amo/g_commit.cmp_rhs_reg[17]/C" + "levels": 1, + "logic_ns": 0.113, + "route_ns": 3.793, + "route_pct": 97.107, + "slack_ns": 0.073, + "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/alu_block/pe_switch/rsp_arb/g_input_select.g_arbiter.g_out_buf[0].out_buf/g_eb2.stream_buffer/g_buffer.valid_in_r_reg/C" }, { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[0].socket/dmmu/g_pipe[1].out_pipe/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[104]/D", + "endpoint": "g_multi_port.vortex/l3cache/g_bypass.cache_bypass/core_bus_nc_switch/rsp_arb/g_passthru.g_out_buf[2].out_buf/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[520]/D", "group": "core_clock", - "levels": 10, - "logic_ns": 1.108, - "route_ns": 2.817, - "route_pct": 71.768, - "slack_ns": 0.055, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[0].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_block/mem_path/dcache_adapter/stream_unpack/g_unpack.g_outbuf[1].out_buf/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[111]/C" + "levels": 1, + "logic_ns": 0.198, + "route_ns": 3.68, + "route_pct": 94.894, + "slack_ns": 0.102, + "startpoint": "g_multi_port.vortex/l3cache/g_bypass.cache_bypass/core_bus_nc_switch/rsp_arb/g_passthru.g_out_buf[2].out_buf/g_eb2.stream_buffer/g_buffer.valid_in_r_reg/C" }, { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dcache/g_cache_wrap[0].cache_wrap/g_cache.cache/g_banks[1].bank/g_amo.amo/g_commit.wbq_data_reg[3][48]/D", + "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[0].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/fpu_block/fpu_dsp/g_cvt.pe_ser/g_enable_r.enable_r_reg/S", "group": "core_clock", - "levels": 9, - "logic_ns": 0.855, - "route_ns": 3.069, - "route_pct": 78.211, - "slack_ns": 0.058, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dcache/g_cache_wrap[0].cache_wrap/g_cache.cache/g_banks[1].bank/g_amo.amo/g_commit.cmp_rhs_reg[4]/C" + "levels": 0, + "logic_ns": 0.079, + "route_ns": 3.701, + "route_pct": 97.91, + "slack_ns": 0.102, + "startpoint": "vx_reset_shift_r_reg[7]/C" }, { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[0].socket/dmmu/g_pipe[1].out_pipe/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[104]/D", + "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/alu_block/pe_switch/rsp_arb/g_input_select.g_arbiter.g_out_buf[0].out_buf/g_eb2.stream_buffer/g_buffer.g_out_reg.buffer_r_reg[138]/CE", "group": "core_clock", - "levels": 10, - "logic_ns": 1.124, - "route_ns": 2.795, - "route_pct": 71.32, - "slack_ns": 0.061, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[0].socket/dmmu/g_lane_bus[1].req_skid/g_buffer.buffer_reg[112]/C" + "levels": 0, + "logic_ns": 0.078, + "route_ns": 3.707, + "route_pct": 97.939, + "slack_ns": 0.11, + "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/alu_block/pe_switch/rsp_arb/g_input_select.g_arbiter.g_out_buf[0].out_buf/g_eb2.stream_buffer/g_buffer.valid_in_r_reg/C" }, { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_gather/g_out_bufs[0].out_buf/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[129]/D", + "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dmmu/g_pipe[0].out_pipe/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[108]/D", "group": "core_clock", - "levels": 1, - "logic_ns": 0.178, - "route_ns": 3.737, - "route_pct": 95.453, - "slack_ns": 0.066, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_gather/g_out_bufs[0].out_buf/g_eb2.stream_buffer/g_buffer.valid_in_r_reg/C" + "levels": 9, + "logic_ns": 1.027, + "route_ns": 2.841, + "route_pct": 73.449, + "slack_ns": 0.115, + "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dmmu/g_lane_bus[0].req_skid/g_buffer.has_data_reg_inv/C" }, { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_gather/g_out_bufs[0].out_buf/g_eb2.stream_buffer/g_buffer.g_out_reg.buffer_r_reg[140]/CE", + "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dmmu/g_pipe[0].out_pipe/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[108]/D", "group": "core_clock", - "levels": 0, - "logic_ns": 0.081, - "route_ns": 3.749, - "route_pct": 97.885, - "slack_ns": 0.067, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/g_cores[0].core/g_compute_slices.g_slices[0].compute_slice/backend_slice/execute_slice/lsu_gather/g_out_bufs[0].out_buf/g_eb2.stream_buffer/g_buffer.valid_in_r_reg/C" + "levels": 9, + "logic_ns": 1.102, + "route_ns": 2.765, + "route_pct": 71.504, + "slack_ns": 0.115, + "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dmmu/g_lane_bus[0].req_skid/g_buffer.has_data_reg_inv/C" }, { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[0].socket/dmmu/g_pipe[1].out_pipe/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[104]/D", + "endpoint": "cp_core/u_regfile/axil_s\\\\.rdata_reg[3]/R", "group": "core_clock", - "levels": 10, - "logic_ns": 1.171, - "route_ns": 2.739, - "route_pct": 70.05, - "slack_ns": 0.07, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[0].socket/dmmu/g_lane_bus[1].req_skid/g_buffer.has_data_reg_inv/C" + "levels": 1, + "logic_ns": 0.145, + "route_ns": 3.621, + "route_pct": 96.15, + "slack_ns": 0.116, + "startpoint": "vx_reset_shift_r_reg[7]/C" }, { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dcache/g_cache_wrap[0].cache_wrap/g_cache.cache/g_banks[1].bank/g_amo.amo/g_commit.wbq_data_reg[3][48]/D", + "endpoint": "cp_core/u_regfile/axil_s\\\\.rdata_reg[7]/R", "group": "core_clock", - "levels": 9, - "logic_ns": 0.853, - "route_ns": 3.052, - "route_pct": 78.156, - "slack_ns": 0.076, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dcache/g_cache_wrap[0].cache_wrap/g_cache.cache/g_banks[1].bank/g_amo.amo/g_commit.cmp_rhs_reg[1]/C" + "levels": 1, + "logic_ns": 0.145, + "route_ns": 3.621, + "route_pct": 96.15, + "slack_ns": 0.116, + "startpoint": "vx_reset_shift_r_reg[7]/C" }, { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dcache/g_cache_wrap[0].cache_wrap/g_cache.cache/g_banks[1].bank/g_amo.amo/g_commit.wbq_data_reg[3][48]/D", + "endpoint": "cp_core/u_regfile/r_ring_size_log2_reg[0][5]/R", "group": "core_clock", - "levels": 8, - "logic_ns": 0.903, - "route_ns": 2.998, - "route_pct": 76.852, - "slack_ns": 0.079, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[1].socket/dcache/g_cache_wrap[0].cache_wrap/g_cache.cache/g_banks[1].bank/g_amo.amo/g_commit.cmp_rhs_reg[17]/C" + "levels": 1, + "logic_ns": 0.145, + "route_ns": 3.621, + "route_pct": 96.15, + "slack_ns": 0.116, + "startpoint": "vx_reset_shift_r_reg[7]/C" }, { - "endpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[0].socket/dmmu/g_pipe[0].out_pipe/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[110]/D", + "endpoint": "cp_core/u_regfile/r_ring_size_log2_reg[0][6]/R", "group": "core_clock", - "levels": 9, - "logic_ns": 0.857, - "route_ns": 3.043, - "route_pct": 78.028, - "slack_ns": 0.08, - "startpoint": "g_multi_port.vortex/g_clusters[0].cluster/g_sockets[0].socket/dmmu/g_lane_bus[0].req_skid/g_buffer.has_data_reg_inv/C" + "levels": 1, + "logic_ns": 0.145, + "route_ns": 3.621, + "route_pct": 96.15, + "slack_ns": 0.116, + "startpoint": "vx_reset_shift_r_reg[7]/C" } ], "dsp": 54, @@ -647,14 +647,9 @@ "vivado": "2024.2", "xlen": 32 }, - "ff": 136068, - "fmax_mhz": 252.8, + "ff": 136121, + "fmax_mhz": 254.6, "high_fanout_nets": [ - { - "driver": "LUT2", - "fanout": 2558, - "net": "cp_core/u_dma/chunk_buf/reset_0" - }, { "driver": "LUT4", "fanout": 1851, @@ -696,15 +691,20 @@ "net": "g_multi_port.vortex/g_clusters[0].cluster/l2tlb/mshr/g_buffer.g_no_out_reg.data_out_r_reg[33]" }, { - "driver": "LUT6", - "fanout": 1234, - "net": "g_multi_port.g_vx_mem_adapter[1].mem_data_adapter/req_out_buf/g_eb2.stream_buffer/g_buffer.g_out_reg.data_out_r_reg[524]_2[0]" + "driver": "LUT2", + "fanout": 1389, + "net": "cp_core/u_dma/chunk_buf/reset_0_bufg_place" + }, + { + "driver": "FDSE", + "fanout": 1238, + "net": "g_multi_port.vortex/l3cache/g_bypass.cache_bypass/mem_bus_out_arb/req_arb/g_passthru.g_out_buf[0].out_buf/g_eb2.stream_buffer/g_buffer.valid_in_r_reg_0" } ], - "lut": 132571, - "lutram": 8326, + "lut": 132839, + "lutram": 8358, "uram": 0, - "wns_ns": 0.044 + "wns_ns": 0.073 } } } diff --git a/ci/baselines/synthesis/yosys/core.json b/ci/baselines/synthesis/yosys/core.json index e1e76f81d9..5e03419fe3 100644 --- a/ci/baselines/synthesis/yosys/core.json +++ b/ci/baselines/synthesis/yosys/core.json @@ -31,8 +31,8 @@ "dut": "core", "result": { "build_time_s": 575, - "cell_area_um2": 54699.801, - "cell_count": 523300, + "cell_area_um2": 54993.281, + "cell_count": 525941, "env": { "corner": "tt", "pdk": "asap7", @@ -41,12 +41,12 @@ "xlen": 32, "yosys": "Yosys 0.69" }, - "fmax_mhz": 1045.697, - "power_mw": 906.0, - "seq_area_um2": 19442.43, + "fmax_mhz": 1038.314, + "power_mw": 898.0, + "seq_area_um2": 19604.268, "sram_area_um2": 27770.4, "tns_ns": 0.0, - "wns_ns": 0.044 + "wns_ns": 0.037 } }, "lmem": { @@ -80,9 +80,9 @@ "configs": "-DVX_CFG_NUM_THREADS=4 -DVX_CFG_NUM_WARPS=4", "dut": "top", "result": { - "build_time_s": 1020, - "cell_area_um2": 124052.516, - "cell_count": 1144564, + "build_time_s": 1010, + "cell_area_um2": 124467.55, + "cell_count": 1147758, "env": { "corner": "tt", "pdk": "asap7", @@ -91,12 +91,12 @@ "xlen": 32, "yosys": "Yosys 0.69" }, - "fmax_mhz": 1039.501, - "power_mw": 224.0, - "seq_area_um2": 52577.813, + "fmax_mhz": 1036.807, + "power_mw": 225.0, + "seq_area_um2": 52809.343, "sram_area_um2": 101472.0, "tns_ns": 0.0, - "wns_ns": 0.038 + "wns_ns": 0.035 } } } diff --git a/docs/designs/floating_point_unit.md b/docs/designs/floating_point_unit.md index 3f97c472a7..b90de9b895 100644 --- a/docs/designs/floating_point_unit.md +++ b/docs/designs/floating_point_unit.md @@ -22,8 +22,8 @@ The FPU is a **fixed set of three per-operation cores** behind a shared front end: 1. [`VX_fpu_unit`](../../hw/rtl/fpu/VX_fpu_unit.sv) takes dispatched - instructions, parks each instruction's header in a tag store, resolves the - rounding mode, and submits the operands to the backend. + instructions, resolves the rounding mode, and submits the operands to the + backend with the instruction's header as the tag that rides its pipeline. 2. The **backend** steers the request to one of three cores by operation class — fused multiply-add, conversion, and non-computational. 3. Each core **serializes** the request's lanes over its processing elements @@ -60,12 +60,12 @@ wide (the SIMD width). | element | role | |---|---| | `VX_lane_dispatch` | maps issue slots onto FPU blocks and SIMD lanes onto FPU lanes; an instruction wider than the lane count is split into packets | -| tag store (`VX_index_buffer`, `VX_CFG_FPU_QUEUE_SIZE`) | holds the instruction header while the operands are in the backend; bounds the operations in flight | +| tag | the instruction header rides the backend's pipeline registers as its tag, so the pipelines, not a tag store, bound the operations in flight | | rounding-mode resolve | a request with `frm = DYN` takes the issuing warp's rounding mode from `fcsr`; `MISC` operations reuse the `frm` field as a sub-operation and are left alone | | flag write | each packet's flags are OR-ed into the warp's `fcsr` as the packet returns, through a registered `VX_fpu_csr_if`; packets of different instructions can complete interleaved, so a per-block accumulator would hand one warp's flags to another | | `VX_lane_gather` | reassembles the blocks onto the commit interface | -The header carries the decoded writeback bit through the tag store rather +The header carries the decoded writeback bit through the pipeline rather than forcing it on the way out: a compare may target integer `x0`, which decode does not reserve, and a forced writeback would trip the invalid writeback assertion. @@ -233,8 +233,7 @@ counted from the last batch: Every core ends in a zero-latency skid register (`VX_bypass_buffer`; the serializer's `OUT_BUF` bypass code, `` `OUT_BUF_BYPASS ``). A result passes it in the cycle the core produces -it, so the register costs no latency; with the default tag store of two -entries (§10) every cycle of latency is a cycle of FPU throughput. It stays +it, so the register costs no latency. It stays because its ready is registered, and that ready drives the core's clock enable, a net that reaches every unit of the core: the vendor operators' clock enables and every pipeline register. Without it the enable starts at @@ -456,7 +455,6 @@ cores and is conformant. | `VX_CFG_FPU_USE_DSP` | 1 on FPGA synthesis | soft multipliers target DSP blocks | | `VX_CFG_NUM_FPU_BLOCKS` | issue width | request paths | | `VX_CFG_NUM_FPU_LANES` | SIMD width | lanes per request | -| `VX_CFG_FPU_QUEUE_SIZE` | `2 × SIMD_WIDTH / NUM_FPU_LANES` | tag-store depth | | `VX_CFG_F{MA,CVT,NCP}_PE_RATIO` | 1 | lanes per processing element | | `VX_CFG_FMA64_PE_RATIO` | 1 | lanes per F64 FMA processing element (§5.2) | | `VX_CFG_FNCP_LATENCY` | 2 | | @@ -494,25 +492,23 @@ serialization (§5.1) — the F64 FMA rate for an F64 FMA-class operation — an enters the pipeline with its last batch, so every class's ratio costs what it costs the RTL, including the requests of other classes queued behind it. -Its response port has one slot per tag (`VX_CFG_FPU_QUEUE_SIZE`). As in the -RTL, an operation holds its tag from acceptance until its result is taken off -that port, so the tags, not the pipeline depth, bound the operations in -flight, and a result waiting on the commit arbiter keeps its tag: +As in the RTL, the header travels with the operation, so the pipelines bound +the operations in flight: a class admits an operation unless its pipeline is +stalled, which holds at most its latency plus the skid register, and a result +waiting on the commit arbiter stalls only its own class: - At full bandwidth (`NUM_FPU_BLOCKS == ISSUE_WIDTH` and `NUM_FPU_LANES == SIMD_WIDTH`) the commit arbiter reads the response port - directly and frees the tag when it grants the result. The result passes + directly. The result passes its core's skid register and crosses the response arbiter's register - (§5.3), and the commit arbiter grants the FPU ahead of every other unit, - so an FMA commits `VX_CFG_FMA_LATENCY + 1` cycles after it enters. -- At partial bandwidth the lane-gather stage takes the result off the port and - frees the tag. - -The commit arbiter's fixed priority puts the FPU first, then the ALU, LSU, -SFU and TCU. A result that waited behind ALU or LSU results would hold its tag -for the whole wait, and with two tags the FPU's issue stalls behind the most -plentiful results in the core. Ranking the FPU first costs the other units -little: the tags bound the FPU's results to two per round trip. + (§5.3), so an uncontended FMA commits `VX_CFG_FMA_LATENCY + 1` cycles after + it enters. +- At partial bandwidth the lane-gather stage takes the result off the port. + +The commit arbiter grants the units round-robin. A result that waits behind +other units' results stalls its class's pipeline for the wait; with no tag +limit the FPU can produce a result every cycle, and a fixed FPU-first priority +would starve the ALU and LSU instead. --- diff --git a/docs/designs/microarchitecture.md b/docs/designs/microarchitecture.md index cf525f1e9c..d747d6df2b 100644 --- a/docs/designs/microarchitecture.md +++ b/docs/designs/microarchitecture.md @@ -80,9 +80,8 @@ Vortex has a 6-stage pipeline: it. A unit may therefore keep one open instruction per block. - **Commit** - Write result back to the register file and update the Scoreboard. - - One writeback beat per issue slice per cycle, granted by fixed priority: - FPU, ALU, LSU, SFU, TCU. The FPU goes first because each of its results - holds one of its few tags until it commits. + - One writeback beat per issue slice per cycle, granted round-robin over + the ALU, LSU, SFU, FPU and TCU. - A unit with fewer lanes than a SIMD slice (`NUM_*_LANES` < `SIMD_WIDTH`) runs each slice of an instruction in several passes; its lane gather holds the earlier passes and commits the slice in one writeback beat, with the diff --git a/hw/rtl/core/VX_commit_slice.sv b/hw/rtl/core/VX_commit_slice.sv index abc32d068c..7bd3951f2a 100644 --- a/hw/rtl/core/VX_commit_slice.sv +++ b/hw/rtl/core/VX_commit_slice.sv @@ -38,28 +38,20 @@ module VX_commit_slice import VX_gpu_pkg::*; #( wire [NUM_EX_UNITS-1:0][PER_ISSUE_WARPS+OUT_DATAW-1:0] data_in; wire [NUM_EX_UNITS-1:0] ready_in; - // Fixed priority: the FPU first, then the other units in EX order (ALU, - // LSU, SFU, TCU). Without a lane gather an FPU result keeps its tag until - // granted, and the FPU has few, so a wait behind ALU or LSU results would - // stall its issue. The same tags bound the beats the FPU can take. - // - // Decoded ahead of the output register so each warp's release reads - // its own flop. + // Round-robin over the units in EX order. Decoded ahead of the output + // register so each warp's release reads its own flop. for (genvar j = 0; j < NUM_EX_UNITS; ++j) begin : g_data_in - localparam HAS_FPU = (`VX_CFG_EXT_F_ENABLED != 0); - localparam ARB_IDX = (HAS_FPU && j == EX_FPU) ? 0 : - ((HAS_FPU && j < EX_FPU) ? (j + 1) : j); wire [PER_ISSUE_WARPS-1:0] eop_wis = PER_ISSUE_WARPS'(commit_if[j].data.eop) << wid_to_wis(commit_if[j].data.wid); - assign valid_in[ARB_IDX] = commit_if[j].valid; - assign data_in[ARB_IDX] = {eop_wis, commit_if[j].data}; - assign commit_if[j].ready = ready_in[ARB_IDX]; + assign valid_in[j] = commit_if[j].valid; + assign data_in[j] = {eop_wis, commit_if[j].data}; + assign commit_if[j].ready = ready_in[j]; end VX_stream_arb #( .NUM_INPUTS (NUM_EX_UNITS), .DATAW (PER_ISSUE_WARPS + OUT_DATAW), - .ARBITER ("P"), + .ARBITER ("R"), .OUT_BUF (1) ) commit_arb ( .clk (clk), diff --git a/hw/rtl/fpu/VX_fpu_block.sv b/hw/rtl/fpu/VX_fpu_block.sv index a13a78fb38..ffc10975c7 100644 --- a/hw/rtl/fpu/VX_fpu_block.sv +++ b/hw/rtl/fpu/VX_fpu_block.sv @@ -13,7 +13,9 @@ `include "VX_fpu_define.vh" -// One FPU block: the FP datapath with its tag store and fflags writes. +// One FPU block: the FP datapath and its fflags writes. The instruction header +// rides the datapath's pipeline registers as its tag, so the block holds as +// many operations in flight as its pipelines have stages. module VX_fpu_block import VX_gpu_pkg::*, VX_fpu_pkg::*; #( parameter `STRING INSTANCE_ID = "", parameter NUM_LANES = 1, @@ -32,7 +34,7 @@ module VX_fpu_block import VX_gpu_pkg::*, VX_fpu_pkg::*; #( typedef result_if.header_t header_t; `UNUSED_SPARAM (INSTANCE_ID) - localparam TAG_WIDTH = `LOG2UP(`VX_CFG_FPU_QUEUE_SIZE); + localparam TAG_WIDTH = $bits(header_t); wire fpu_req_valid, fpu_req_ready; wire fpu_rsp_valid, fpu_rsp_ready; @@ -40,47 +42,18 @@ module VX_fpu_block import VX_gpu_pkg::*, VX_fpu_pkg::*; #( fflags_t fpu_rsp_fflags; wire fpu_rsp_has_fflags; - header_t fpu_hdr, fpu_hdr_wb, fpu_hdr_store; - - // Carry the decoded wb through the tag store: FPU compares may target - // integer x0 (e.g. feq.s x0, ...), which decode does not reserve in the - // scoreboard, so forcing wb=1 on readback would trip the invalid - // writeback assertion. - always_comb begin - fpu_hdr_store = execute_if.data.header; - end - - always_comb begin - fpu_hdr_wb = fpu_hdr; - end - - wire [TAG_WIDTH-1:0] fpu_req_tag, fpu_rsp_tag; - wire mdata_full; + wire [TAG_WIDTH-1:0] fpu_req_tag = execute_if.data.header; + wire [TAG_WIDTH-1:0] fpu_rsp_tag; + header_t fpu_hdr; + assign fpu_hdr = fpu_rsp_tag; wire [INST_FMT_BITS-1:0] fpu_dst_fmt = execute_if.data.op_args.fpu.dst_fmt; wire [INST_FMT_BITS-1:0] fpu_src_fmt = execute_if.data.op_args.fpu.src_fmt; wire fpu_op_mod = execute_if.data.op_args.fpu.op_mod; wire [INST_FRM_BITS-1:0] fpu_frm = execute_if.data.op_args.fpu.frm; - wire execute_fire = execute_if.valid && execute_if.ready; wire fpu_rsp_fire = fpu_rsp_valid && fpu_rsp_ready; - VX_index_buffer #( - .DATAW ($bits(header_t)), - .SIZE (`VX_CFG_FPU_QUEUE_SIZE) - ) tag_store ( - .clk (clk), - .reset (reset), - .acquire_en (execute_fire), - .write_addr (fpu_req_tag), - .write_data (fpu_hdr_store), - .read_data (fpu_hdr), - .read_addr (fpu_rsp_tag), - .release_en (fpu_rsp_fire), - .full (mdata_full), - `UNUSED_PIN (empty) - ); - // resolve dynamic FRM from CSR wire [INST_FRM_BITS-1:0] fpu_req_frm; assign fpu_csr_if.read_wid = blocked_wid(execute_if.data.header.wid, NW_WIDTH'(block_idx), `VX_CFG_NUM_FPU_BLOCKS); @@ -92,8 +65,8 @@ module VX_fpu_block import VX_gpu_pkg::*, VX_fpu_pkg::*; #( // submit FPU request - assign fpu_req_valid = execute_if.valid && ~mdata_full; - assign execute_if.ready = fpu_req_ready && ~mdata_full; + assign fpu_req_valid = execute_if.valid; + assign execute_if.ready = fpu_req_ready; `ifdef VX_CFG_FPU_TYPE_DPI @@ -250,7 +223,7 @@ module VX_fpu_block import VX_gpu_pkg::*, VX_fpu_pkg::*; #( .reset (reset), .valid_in (fpu_rsp_valid), .ready_in (fpu_rsp_ready), - .data_in ({fpu_hdr_wb, fpu_rsp_result}), + .data_in ({fpu_hdr, fpu_rsp_result}), .data_out (result_if.data), .valid_out (result_if.valid), .ready_out (result_if.ready) diff --git a/sim/simx/core.cpp b/sim/simx/core.cpp index 095de0ee40..0aa34b585a 100644 --- a/sim/simx/core.cpp +++ b/sim/simx/core.cpp @@ -493,6 +493,7 @@ class Core::Impl { } #endif gather_holds_.resize(VX_CFG_ISSUE_WIDTH, std::vector((uint32_t)FUType::Count)); + commit_rr_.resize(VX_CFG_ISSUE_WIDTH); if (PcProf::enabled()) { pc_prof_ = std::make_unique(VX_CFG_NUM_WARPS); @@ -528,6 +529,7 @@ class Core::Impl { for (auto& holds : gather_holds_) { std::fill(holds.begin(), holds.end(), GatherHold()); } + std::fill(commit_rr_.begin(), commit_rr_.end(), kNumCommitIns - 1); std::fill(ibuf_inflight_.begin(), ibuf_inflight_.end(), 0); std::fill(ibuf_full_r_.begin(), ibuf_full_r_.end(), false); @@ -1216,27 +1218,22 @@ class Core::Impl { } // process completed instructions: one beat per issue slice per cycle, - // granted fixed-priority: the FPU first, then ALU, LSU, SFU and TCU. - // Without a lane gather an FPU result keeps its tag until granted, and the - // FPU has few, so waiting behind ALU or LSU results would stall its issue. - // The same tags bound the beats the FPU can take. + // granted round-robin over the units in EX order (ALU, LSU, SFU, FPU, + // TCU), starting after the last unit granted. // // A narrow unit's lane gather holds the passes of one SIMD slice of an // instruction and commits them in the beat of the pass that completes the // slice. Taking a pass into the hold costs no beat; a hold that the next // result does not continue leaves in a beat of its own, ahead of that // result. - static constexpr FUType kCommitPrio[] = { - FUType::FPU, FUType::ALU, FUType::LSU, FUType::SFU, - #ifdef VX_CFG_EXT_TCU_ENABLE - FUType::TCU, - #endif - }; for (uint32_t iw = 0; iw < VX_CFG_ISSUE_WIDTH; ++iw) { auto& holds = gather_holds_.at(iw); SimPortIn* granted = nullptr; FUType granted_fu = FUType::ALU; - for (auto fu : kCommitPrio) { + uint32_t granted_in = 0; + for (uint32_t k = 1; k <= kNumCommitIns; ++k) { + uint32_t in = (commit_rr_.at(iw) + k) % kNumCommitIns; + auto fu = kCommitIns[in]; // Without a lane-gather stage the FPU response port, one block per // issue slot, feeds the arbiter: a result holds its FPU tag until // granted. @@ -1262,10 +1259,12 @@ class Core::Impl { if (!granted) { granted = &queue; granted_fu = fu; + granted_in = in; } } if (!granted) continue; + commit_rr_.at(iw) = granted_in; auto trace = granted->peek(); if (granted_fu == FUType::FPU && !FpuUnit::kGather && trace->eop && trace->resume_warp) { @@ -1628,6 +1627,19 @@ class Core::Impl { }; std::vector> gather_holds_; // [iw][fu] + // the commit arbiter's inputs, in EX order + static constexpr FUType kCommitIns[] = { + FUType::ALU, + FUType::LSU, + FUType::SFU, + FUType::FPU, +#ifdef VX_CFG_EXT_TCU_ENABLE + FUType::TCU, +#endif + }; + static constexpr uint32_t kNumCommitIns = sizeof(kCommitIns) / sizeof(kCommitIns[0]); + std::vector commit_rr_; // [iw] the input granted last + std::vector ibuffer_arbs_; static constexpr uint32_t kLockOpen = ~0u; diff --git a/sim/simx/fpu_unit.cpp b/sim/simx/fpu_unit.cpp index b6eae5dab7..ef6a5af7d8 100644 --- a/sim/simx/fpu_unit.cpp +++ b/sim/simx/fpu_unit.cpp @@ -42,13 +42,16 @@ inline uint16_t check_boxing16(uint64_t a) { } } +namespace { +constexpr uint32_t kRspSlots = 2; +} + FpuUnit::FpuUnit(const SimContext &ctx, const char *name, Core *core) - // One output slot per tag: an operation holds its slot from acceptance - // until its result is taken off the response port, however deep the - // pipelines are. + // The header rides the pipelines as the tag, so the response port is only + // the arbiter's output register. // No buffer between the dispatch queue and the unit (!kGather): the input // holds only the queue's head. - : FuncUnit(ctx, name, core, core, kGather ? 2 : 1, VX_CFG_FPU_QUEUE_SIZE) + : FuncUnit(ctx, name, core, core, kGather ? 2 : 1, kRspSlots) , ReleaseOut(this) , fflags_out(this) {} @@ -482,11 +485,11 @@ void FpuUnit::on_tick() { this->respond(b); auto& input = Inputs.at(b); if (!input.empty()) { - auto& output = Outputs.at(b); - // A full response port (every tag in use) stalls admission even though - // the arithmetic pipelines are deeper. - if (!output.full() && output.size() + num_results_.at(b) < output.capacity()) { - auto trace = input.peek(); + auto trace = input.peek(); + // A class's pipeline stalls once its last stage holds a result the + // arbiter has not taken and its skid register is full: it holds at most + // its latency plus one. + if (results_.at(b).at(this->pipe_of(trace)).size() < this->latency_of(trace) + 1) { // The operation holds the block's input, whatever its class, until its // last batch of lanes enters the pipeline. if (batch_idx_.at(b) + 1 < this->batches_of(trace)) {