Cycle accurate tracing of vector instructions
Abstract
Systems and methods are disclosed for cycle accurate tracing of vector instructions. For example, a system may include a vector unit in communication with a scalar core. The vector unit may include a vector instruction queue that receives vector instructions from the scalar core. The vector unit may also include a vector execution unit that executes vector instructions from the vector instruction queue. The system may also include checkpoints in the vector unit including a first checkpoint including circuitry that sets a first bit for a first clock cycle in which a first vector instruction exits the vector instruction queue, and a second checkpoint including circuitry that sets a second bit for a second clock cycle in which a second vector instruction exits the vector execution unit.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
An apparatus comprising: a scalar core; a vector unit in communication with the scalar core, the vector unit including a vector instruction queue that receives vector instructions from the scalar core, the vector unit further including a vector execution unit that executes vector instructions from the vector instruction queue; a plurality of checkpoints in the vector unit including a first checkpoint including first hardware circuitry that sets a first bit for a first clock cycle in which a first vector instruction exits the vector instruction queue, and a second checkpoint including second hardware circuitry that is separate from the first hardware circuitry and that sets a second bit for a second clock cycle in which a second vector instruction exits the vector execution unit; and a trace buffer that stores a plurality of bits, wherein at least one bit of the plurality of bits stored in the trace buffer is compressed.
- Claim 2Depends on #1
The apparatus of claim 1, further comprising a third checkpoint in the scalar core, wherein the third checkpoint includes circuitry that sets a third bit for a third clock cycle in which a third vector instruction dispatches to the vector unit.
- Claim 3Depends on #1
The apparatus of claim 1, further comprising checkpoints in the scalar core including a third checkpoint including circuitry that sets a third bit for a third clock cycle in which a third vector instruction dispatches to the vector unit, and a fourth checkpoint including circuitry that sets a fourth bit for the third clock cycle in which a fourth vector instruction dispatches to the vector unit.
- Claim 4Depends on #1
The apparatus of claim 1, wherein the first clock cycle and the second clock cycle correspond to a same clock cycle.
- Claim 5Depends on #1
The apparatus of claim 1, wherein the first vector instruction and the second vector instruction correspond to a same vector instruction.
- Claim 6Depends on #1
The apparatus of claim 1, wherein the plurality of bits corresponds to a clock cycle and includes the first bit captured at the first checkpoint and the second bit captured at the second checkpoint.
- Claim 7Depends on #6
The apparatus of claim 6, wherein the plurality of bits is compressed when stored in the trace buffer.
- Claim 8Depends on #1
The apparatus of claim 1, wherein the vector execution unit is a first vector execution unit that is a load unit, and further comprising a second vector execution unit that is a store unit, and wherein the second checkpoint includes circuitry that sets the second bit for the second clock cycle in which the second vector instruction exits the load unit or the store unit.
- Claim 9Depends on #8
The apparatus of claim 8, further comprising a third vector execution unit that is an arithmetic unit and a third checkpoint including circuitry that sets a third bit for a third clock cycle in which a third vector instruction exits the arithmetic unit.
- Claim 10Independent Claim
A method comprising: capturing a plurality of bits at checkpoints implemented in a vector unit in communication with a scalar core, the vector unit including a vector instruction queue that receives vector instructions from the scalar core, the vector unit further including a vector execution unit that executes vector instructions from the vector instruction queue, wherein the checkpoints include a first checkpoint including first hardware circuitry that sets a first bit for a first clock cycle in which a first vector instruction exits the vector instruction queue, and a second checkpoint including second hardware circuitry that is separate from the first hardware circuitry and that sets a second bit for a second clock cycle in which a second vector instruction exits the vector execution unit; and executing a trace encoder to associate a vector instruction obtained from the scalar core with a bit obtained from a checkpoint.
- Claim 11Depends on #10
The method of claim 10, wherein capturing the plurality of bits includes capturing a bit at a checkpoint implemented in the scalar core, wherein the checkpoints include a third checkpoint including circuitry that sets a third bit for a third clock cycle in which a third vector instruction dispatches to the vector unit.
- Claim 12Depends on #10
The method of claim 10, wherein capturing the plurality of bits includes capturing bits at checkpoints implemented in the scalar core, wherein the checkpoints include a third checkpoint including circuitry that sets a third bit for a third clock cycle in which a third vector instruction dispatches to the vector unit, and a fourth checkpoint including circuitry that sets a fourth bit for the third clock cycle in which a fourth vector instruction dispatches to the vector unit.
- Claim 13Depends on #10
The method of claim 10, further comprising storing the plurality of bits in a trace buffer, wherein the plurality of bits corresponds to a same clock cycle.
- Claim 14Depends on #13
The method of claim 13, further comprising compressing the plurality of bits stored in the trace buffer.
- Claim 15Depends on #10
The method of claim 10, further comprising outputting to a display a trace of the vector instruction, wherein the trace indicates a number of clock cycles between the first checkpoint and the second checkpoint.
- Claim 16Independent Claim
A non-transitory computer-readable storage medium that includes instructions that, when executed by a processor, causes the processor to: associate a vector instruction obtained from a scalar core with a bit obtained from a checkpoint of a plurality of checkpoints implemented in a vector unit in communication with the scalar core, wherein the vector unit includes a vector instruction queue that receives vector instructions from the scalar core, wherein the vector unit further includes a vector execution unit that executes vector instructions from the vector instruction queue, and wherein the plurality of checkpoints includes a first checkpoint including first hardware circuitry that sets a first bit for a first clock cycle in which a first vector instruction exits the vector instruction queue, and a second checkpoint including second hardware circuitry that is separate from the first hardware circuitry and that sets a second bit for a second clock cycle in which a second vector instruction exits the vector execution unit; and display a trace of the vector instruction, wherein the trace indicates a number of clock cycles between the first checkpoint and the second checkpoint.
- Claim 17Depends on #16
The non-transitory computer-readable storage medium of claim 16, further comprising instructions that, when executed by a processor, causes the processor to associate the vector instruction with a bit obtained from a checkpoint implemented in the scalar core, wherein the checkpoints include a third checkpoint including circuitry that sets a third bit for a third clock cycle in which a third vector instruction dispatches to the vector unit.
- Claim 18Depends on #16
The non-transitory computer-readable storage medium of claim 16, further comprising instructions that, when executed by a processor, causes the processor to compress the bit with a plurality of bits stored in a trace buffer.
- Claim 19Depends on #16
The non-transitory computer-readable storage medium of claim 16, wherein the plurality of checkpoints further includes a third checkpoint in the scalar core, wherein the third checkpoint includes circuitry that sets a third bit for a third clock cycle in which a third vector instruction dispatches to the vector unit.
- Claim 20Depends on #16
The non-transitory computer-readable storage medium of claim 16, wherein the plurality of checkpoints further includes a third checkpoint including circuitry that sets a third bit for a third clock cycle in which a third vector instruction dispatches to the vector unit, and a fourth checkpoint including circuitry that sets a fourth bit for the third clock cycle in which a fourth vector instruction dispatches to the vector unit.
Technical Overview & Description
CROSS-REFERENCES TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/US2022/051160, filed Nov. 29, 2022, which claims priority to U.S. Provisional Application No. 63/295,682, filed Dec. 31, 2021, the entire contents of which are incorporated herein by reference for all purposes. FIELD OF TECHNOLOGY This disclosure relates generally to integrated circuits, and more specifically, to cycle accurate tracing of vector instructions. BACKGROUND Instruction tracing is a technique used to analyze the history of instructions executed by a processor. Information associated with one or more instructions may be collected from a processor executing the instructions. The information collected may be analyzed to determine system performance and to help identify possible optimizations for improving the system. BRIEF DESCRIPTION OF THE DRAWINGS The disclosure is best understood from the following detailed description when read in conjunction with the accompanying drawings. It is emphasized that, according to common practice, the various features of the drawings are not to-scale. On the contrary, the dimensions of the various features are arbitrarily expanded or reduced for clarity. FIG. 1 is a block diagram of an example of a system for cycle accurate tracing of vector instructions. FIG. 2 is a block diagram of another example of a system for cycle accurate tracing of vector instructions. FIG. 3 is a block diagram of an example of a system for synchronizing vector instructions with cycle accurate trace circuitry. FIG. 4 is block diagram of an example of a system for facilitating tracing of vector instructions and/or generation of a circuit representation. FIG. 5 is an example of a list view associated with cycle accurate tracing of vector instructions. FIG. 6 is an example of a waveform view associated with cycle accurate tracing of vector instructions. FIG. 7 is a flow chart of an example of a process for associating vector instructions wi
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (6)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- He ,
- “
- Superscalar RISC-V Processor with SIMD Vector Extension
- ”
- , A Thesis Submitted to the College of Graduate and Postdoctoral Studies in Partial Fulfillment of the Requirements for the Degree of Master of Science in the Department of Electrical and Computer Engineering, Aug. 31, 2020, pp. 1-98.
- Panesar et al.,
- “
- Efficient Trace for RISC-V Version 1.1.3-Frozen
- ”
- , Available Online at: https://tools.cloudbear.ru/docs/riscv-trace-spec-1.1.3-20211102.pdf, Nov. 2, 2021, pp. 1-116.