diff --git a/lib/emac/src/emac_rx.vhd b/lib/emac/src/emac_rx.vhd index be8e689..1f5bdd0 100644 --- a/lib/emac/src/emac_rx.vhd +++ b/lib/emac/src/emac_rx.vhd @@ -16,6 +16,7 @@ ENTITY emac_rx IS ( clk : in STD_LOGIC; rst : in STD_LOGIC; + dout_vld : out STD_LOGIC; dout : out unsigned(31 downto 0); ctrl_in : in rx_ctrl_in_t; ctrl_out : out rx_ctrl_out_t; @@ -121,8 +122,9 @@ begin ctrl_out.rx_size <= cmd_fifo_dout(31 downto 16); ctrl_out.rx_vld <= not cmd_fifo_empty; ctrl_out.rx_er <= mii_rx_er; - + dout <= ram_dout_a; + mii_fifo_din <= "0000" & sipo_dout; mii_fifo_we <= sipo_dout_vld; @@ -209,7 +211,7 @@ fill_pointer: process(clk) begin if rising_edge(clk) then - ctrl_out.data_vld <= ctrl_in.data_read; + dout_vld <= ctrl_in.data_read; if fill_ptr_set = '1' then fill_ptr <= resize(cmd_fifo_dout(15 downto 0), word_ptr_t'length); elsif fill_ptr_adv = '1' then