From f16a4c09962285d18e742ec47a9f924a05a0ac42 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Tue, 15 Nov 2022 20:26:27 -0600 Subject: [PATCH] fpga: lib: Fix inferred latch in ep_autonegotiation Original-commit: 4a011e8c905d8ae7164ac2671177093a2e215842 --- .../wr_cores_v4_2/modules/wr_endpoint/ep_autonegotiation.vhd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/white_rabbit/wr_cores_v4_2/modules/wr_endpoint/ep_autonegotiation.vhd b/lib/white_rabbit/wr_cores_v4_2/modules/wr_endpoint/ep_autonegotiation.vhd index 69dbe4c..ae8b78c 100644 --- a/lib/white_rabbit/wr_cores_v4_2/modules/wr_endpoint/ep_autonegotiation.vhd +++ b/lib/white_rabbit/wr_cores_v4_2/modules/wr_endpoint/ep_autonegotiation.vhd @@ -158,7 +158,8 @@ begin -- syn -- make the code more readable ability_match <= an_rx_valid_i; acknowledge_match <= an_rx_valid_i and an_rx_val_i(14); - consistency_match <= '1' when (an_rx_valid_i = '1' and rx_config_reg (15) = an_rx_val_i(15) and rx_config_reg(13 downto 0) = an_rx_val_i(13 downto 0)); + consistency_match <= '1' when (an_rx_valid_i = '1' and rx_config_reg (15) = an_rx_val_i(15) and rx_config_reg(13 downto 0) = an_rx_val_i(13 downto 0)) + else '0'; -- process: main auto-negotiation state machine. More or less compatible with