efuse_token_digest_comparator

Compare two 256-bit token digests with hard-cell differential equal and not-equal trees.

Equal path (match_p_o): per-bit XNOR then radix-4 NAND/NOR reduction. Not-equal path (match_n_o): per-bit XOR then radix-4 OR4 reduction. Hard cells prevent synthesis from merging or optimizing away the compare logic (~682 cells per instance).

Parameters

Table 1. Parameters
NameTypeDefaultDescription
TokenWidthint unsigned256Token digest width in bits.
L0Widthint unsignedTokenWidth / 4Width of reduction level L0, one bit per four digest bits.
L1Widthint unsignedL0Width / 4Width of reduction level L1.
L2Widthint unsignedL1Width / 4Width of reduction level L2, which feeds the final four-input gate.

Ports

Table 2. Ports
NameDirectionTypeDescription
token_digest_iinputlogic [TokenWidth-1:0]Computed 256-bit token digest.
token_expected_iinputlogic [TokenWidth-1:0]Expected 256-bit token digest.
match_p_ooutputlogic1 = equal.
match_n_ooutputlogic1 = not equal.