Commit 9e8fb6df authored by Peter Jansweijer's avatar Peter Jansweijer Committed by Grzegorz Daniluk

wr_endpoint: fix driven by multiple primitives synthesis error when g_with_dmtd is true

Precision synthesis complains "Error: Net is driven by multiple primitive gates
-- NET: regs_towb_dmcr_n_avg_i(11:0)"
This is due to the fact that when g_with_dmtd is true then
"regs_towb.dmcr_n_avg_i" was driven. This signal should be orred as the rest of
regs_towb assignment.
parent 28dc1d6d
......@@ -535,6 +535,7 @@ architecture syn of wr_endpoint is
signal regs_towb_tsu : t_ep_in_registers;
signal regs_towb_rpath : t_ep_in_registers;
signal regs_towb_tpath : t_ep_in_registers;
signal regs_towb_dmtd: t_ep_in_registers;
-------------------------------------------------------------------------------
-- flow control signals
......@@ -949,7 +950,7 @@ begin
wb_out.err <= '0';
wb_out.int <= '0';
regs_towb <= regs_towb_ep or regs_towb_tsu or regs_towb_rpath or regs_towb_tpath;
regs_towb <= regs_towb_ep or regs_towb_tsu or regs_towb_rpath or regs_towb_tpath or regs_towb_dmtd;
p_link_activity : process(clk_sys_i)
......@@ -993,8 +994,8 @@ begin
regs_towb.dmcr_en_i <= r_dmcr_en;
regs_towb.dmcr_n_avg_i <= r_dmcr_n_avg;
regs_towb_dmtd.dmcr_en_i <= r_dmcr_en;
regs_towb_dmtd.dmcr_n_avg_i <= r_dmcr_n_avg;
p_dmtd_update : process(clk_sys_i)
begin
......
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