Skip to content

Commit

Permalink
[otbn,dv] Remove unused static set_rnd_data in otbn_model.cc
Browse files Browse the repository at this point in the history
This has been unused since 5480504 (which switched to passing 32 bits
at a time).

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
  • Loading branch information
rswarbrick committed Oct 13, 2021
1 parent b7b5572 commit 2428d66
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions hw/ip/otbn/dv/model/otbn_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,6 @@ static void write_vector_to_file(const std::string &path,
}
}

// Extract 256-bit RND EDN data from a 4 state logic value. RND data is placed
// into 8 element uint32_t array dst.
static void set_rnd_data(uint32_t dst[8], const svLogicVecVal src[8]) {
for (int i = 0; i < 8; ++i) {
// All bits should be known
assert(src[i].bval == 0);
dst[i] = src[i].aval;
}
}

static bool is_xz(svLogic l) { return l == sv_x || l == sv_z; }

template <typename T>
Expand Down

0 comments on commit 2428d66

Please sign in to comment.