Chargement…
Chargement…
The entity cascadable_comparator has a generic g_width (default 4). Inputs: i_a, i_b (slv g_width-1 downto 0), i_gt_in, i_eq_in, i_lt_in (std_logic). Outputs: o_gt, o_eq, o_lt (std_logic).
If the local bits of i_a and i_b are equal, the cascade inputs (i_gt_in, i_eq_in, i_lt_in) propagate to the output. Otherwise, the local result (a>b or a<b) takes priority. This allows chaining comparators for wider word comparison.
i_ai_bi_gt_ini_eq_ini_lt_ino_gto_eqo_lt