Commit 613b5640 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

board/common: add fabric mode LOOPBACK

parent deee26ae
......@@ -42,7 +42,7 @@ use work.streamers_pkg.all;
package wr_board_pkg is
type t_board_fabric_iface is (PLAIN, STREAMERS, ETHERBONE, always_last_invalid);
type t_board_fabric_iface is (PLAIN, STREAMERS, ETHERBONE, LOOPBACK, always_last_invalid);
-- TODO: using these default paths requires absolute path. If relative path is used,
-- they work only for reference designs by chance. Once we figure out how to
......
......@@ -566,6 +566,23 @@ begin -- architecture struct
end generate gen_etherbone;
gen_loopback : if (g_fabric_iface = LOOPBACK) generate
cmp_wrf_loopback : xwrf_loopback
generic map(
g_interface_mode => PIPELINED,
g_address_granularity => WORD)
port map(
clk_sys_i => clk_sys_i,
rst_n_i => rst_n_i,
wrf_snk_i => wrf_src_out,
wrf_snk_o => wrf_src_in,
wrf_src_o => wrf_snk_in,
wrf_src_i => wrf_snk_out,
wb_i => aux_master_out,
wb_o => aux_master_in);
end generate gen_loopback;
gen_wr_fabric : if (g_fabric_iface = PLAIN) generate
wrf_src_o <= wrf_src_out;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment