-- . with g_align_at_sync=true the merge can be forced to restart at a snk_in.sync.
--
-- Issues:
-- . merged err should preferrably be the bit wise or of the merged input packet err field instead
-- of only the err field of the last.
--
-- Design steps:
-- A) No flow control
...
...
@@ -318,7 +316,7 @@ BEGIN
v.src_out.bsn:=r.src_out.bsn;
v.src_out.channel:=r.src_out.channel;
v.src_out.empty:=r.src_out.empty;
v.src_out.err:=r.src_out.errORsnk_in.err;-- OR the err fields of the packets to reflect combined error status.
v.src_out.err:=r.src_out.err;
v.src_out.sync:='0';
v.src_out.sop:='0';
v.src_out.eop:='0';
...
...
@@ -329,11 +327,16 @@ BEGIN
v.src_out.sync:=snk_in.sync;-- only preserve sync when sync interval and nof_pkt interval are aligned, else sync gets lost but could still be recovered from BSN
v.src_out.bsn:=snk_in.bsn;-- use BSN of first packet for merged packet
v.src_out.channel:=snk_in.channel;-- use channel of first packet for merged packet
v.src_out.err:=snk_in.err;
ENDIF;
ENDIF;
IFsnk_in.eop='1'THEN
IFr.pkt_cnt=0THEN
v.src_out.err:=snk_in.err;
ELSE
v.src_out.err:=r.src_out.errORsnk_in.err;-- OR the err fields of the packets to reflect combined error status.