Package: otbn_env_pkg
- File: otbn_loop_if.sv
Description
Copyright lowRISC contributors.
Licensed under the Apache License, Version 2.0, see LICENSE for details.
SPDX-License-Identifier: Apache-2.0
Bound into the otbn_loop_controller and used to help collect loop information for coverage.
Signal names from the otbn_loop_controller module (where we are bound)
Signals
Name | Type | Description |
---|---|---|
lengths | logic [31:0] | Loop length tracking. If we want to convert between the current "iteration count" as stored by the RTL (which counts down from the initial count to 1) and the iteration count as used in the ISS or spec, we need to know the total number of iterations for this loop. Of course, the RTL doesn't store that (since it doesn't need it), so we have to reconstruct it here. |
delete | always | |
else | end | |
pop_front | begin | |
loop_iterations_i | end | |
end | end | |
function | end | |
loop_iters_to_count | logic [31:0] | |
size | if | |
lengths | return | |
lengths | return | |
d0 | return | |
function | endfunction | |
loop_count_to_iters | logic [31:0] | |
size | if | |
lengths | return | |
lengths | return | |
d1 | return | |
endinterface | endfunction |