Skip to content

Commit

Permalink
multiaddr_decode: Correct rule conversion formula
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Sep 5, 2023
1 parent dba493e commit edf8783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multiaddr_decode.sv
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module multiaddr_decode #(
/// When these properties are satisfied we can go from the [start, end) representation
/// to the {addr, mask} representation (and viceversa) using the following equations:
/// - mask = {'0, {log2(end - start){1'b1}}}
/// - addr = start / (end - start)
/// - addr = start
parameter type rule_t = logic
) (
/// Multi-address to decode.
Expand Down

0 comments on commit edf8783

Please sign in to comment.