Entity: otbn_tracer
- File: otbn_tracer.sv
Diagram
Description
Copyright lowRISC contributors. Licensed under the Apache License, Version 2.0, see LICENSE for details. SPDX-License-Identifier: Apache-2.0 *
Generics
Generic name | Type | Value | Description |
---|---|---|---|
InsnExecutePrefix | string | "E" | Prefixes used in trace lines. Formats are documented in hw/ip/otbn/dv/tracer/README.md |
InsnStallPrefix | string | "S" | |
RegReadPrefix | string | "<" | |
RegWritePrefix | string | ">" | |
MemWritePrefix | string | "W" | |
MemReadPrefix | string | "R" |
Ports
Port name | Direction | Type | Description |
---|---|---|---|
clk_i | input | ||
rst_ni | input | ||
otbn_trace | input | otbn_trace_if |
Signals
Name | Type | Description |
---|---|---|
trace_output_buffer | string | |
cycle_count | logic [31:0] | |
trace | string | |
int | string | |
cycle_count | unsigned |
Functions
- otbn_wlen_data_str (logic [WLEN-1:0]) return (string)
Description
Given a WLEN size word output a hex string with the data split into 32-bit chunks separated
with '_'. WLEN must be a multiple of 32.
- otbn_dmem_write_str (logic [31:0] add) return (string)
Description
Produce trace output string for dmem writes. For a 256-bit write, the address and full data is
output. For 32-bit writes (determined by looking at the mask) only the relevant 32-bit chunk is
output along with the address modified so it refers to that chunk.
- otbn_ispr_name_str (ispr_e) return (string)
Description
Determine name for an ISPR
- otbn_flags_str (flags_t) return (string)
Description
Format flag information into a string
- output_trace (string prefix,
string trace_line) return (void)
Description
Called by other trace functions to append their trace lines to the output buffer
- trace_base_rf () return (void)
- trace_bignum_rf () return (void)
- trace_bignum_mem () return (void)
- trace_ispr_accesses () return (void)
- trace_insn () return (void)
- do_trace () return (void)
Processes
- unnamed: ( @(posedge clk_i or negedge rst_ni) )
Type: always