From da7e329939d12e853acbd7636701350babf5e3f4 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 22 Jun 2024 11:19:02 +0200 Subject: [PATCH] des: Fix compatibility with Yosys --- trashernet/trashernet_phy.vhd | 1 + trashernet/trashernet_phy_cdc.vhd | 2 ++ 2 files changed, 3 insertions(+) diff --git a/trashernet/trashernet_phy.vhd b/trashernet/trashernet_phy.vhd index de00ed1..9c164e3 100644 --- a/trashernet/trashernet_phy.vhd +++ b/trashernet/trashernet_phy.vhd @@ -253,6 +253,7 @@ begin begin if rst then phy_out.rx_data_valid <= '0'; + phy_out.rx_data <= (others => '0'); -- Needed for yosys to compile elsif rising_edge(clk) then phy_out.rx_data_valid <= '0'; diff --git a/trashernet/trashernet_phy_cdc.vhd b/trashernet/trashernet_phy_cdc.vhd index 8d331e5..5fd89d7 100644 --- a/trashernet/trashernet_phy_cdc.vhd +++ b/trashernet/trashernet_phy_cdc.vhd @@ -105,6 +105,8 @@ begin begin if rst then phy_out.rx_data_valid <= '0'; + phy_out.rx_data <= (others => '0'); -- Needed for yosys to compile + elsif rising_edge(clk) then phy_out.rx_data_valid <= rx_data_valid_i; phy_out.rx_data <= phy_phy_out.rx_data; -- Data should be stable after the time it takes the _valid signal to go through the synchronizer