CTTE: An Open Dual-Protocol RISC-V Trace Encoder for N-Trace and E-Trace

📅 2026-08-17
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
为解决RISC-V处理器追踪格式N-Trace和E-Trace的编码问题,提出了一种名为CTTE的开源SystemVerilog编码器,支持两种后端并具有通用前端。
📝 Abstract
RISC-V standardizes two processor-trace formats, N-Trace and E-Trace, that share a hart-to-encoder instruction trace interface but differ in compression, messages, and framing. To the best of our knowledge, as of August 2026, no publicly available synthesizable N-Trace encoder and no published hardware encoder with both back ends behind a common front end have been reported. We present CTTE (CEDARtools.TraceEncoder), an open SystemVerilog encoder with a protocol-agnostic front end and selectable N-Trace/Nexus or E-Trace back ends. CTTE implements the N-Trace 1.0 program-trace message set in both instruction-trace modes, supports parameterized N-Trace address width, follows the RISC-V Trace Control Interface, and announces output-bandwidth loss before state re-convergence on the evaluated N-Trace path. CTTE has been integrated with six RISC-V cores from five suppliers. We evaluate 64-bit RISC-V systems booting Linux, including a two-hart SMP system, and demonstrate source-side process-context filtering that doubles observation depth for a target process in a fixed buffer. Verification combines instruction-exact round trips, RTL invariants, formal model checking, and machine-judged hardware campaigns with negative controls. With hardware and configuration held constant, workload choice changes trace cost from 0.21 to 4.90 bits per retired instruction. A common front end also enables controlled back-end comparisons while exposing synchronization and transport effects that must be separated from wire-format effects. RTL, register sources, tests, formal properties, decoder extensions, and build scripts are released under CERN-OHL-S-2.0; proprietary integration is available under an Accemic commercial license.
Problem

Research questions and friction points this paper is trying to address.

RISC-V
processor-trace
N-Trace
E-Trace
encoder
Innovation

Methods, ideas, or system contributions that make the work stand out.

Dual-Protocol
RISC-V Trace Encoder
N-Trace
E-Trace
Process-Context Filtering
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
Alexander Weiss
Alexander Weiss
Brown University
Computer Vision
A
Albert Schulz
Accemic Technologies GmbH, Kiefersfelden, Germany