Chargement…
Chargement…
The entity comparateur_cascadable 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.
| Signal | Direction | Width | Description |
|---|---|---|---|
i_a | Input | N bits | Input A |
i_b | Input | N bits | Input B |
i_gt_in | Input | 1 bit | Input Gt in |
i_eq_in | Input | 1 bit | Input Eq in |
i_lt_in | Input | 1 bit | Input Lt in |
o_gt | Output | 1 bit | Greater than (A > B) |
o_eq | Output | 1 bit | Equal (A = B) |
o_lt | Output | 1 bit | Less than (A < B) |