From 51c2b19bc6f88f6147d581ed85fa54840e53a97c Mon Sep 17 00:00:00 2001 From: Matt Ettus Date: Mon, 19 Jul 2010 17:58:26 -0700 Subject: insert protocol engine flags when requested --- usrp2/vrt/gen_context_pkt.v | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usrp2/vrt/gen_context_pkt.v b/usrp2/vrt/gen_context_pkt.v index f413fdd1d..780a027ba 100644 --- a/usrp2/vrt/gen_context_pkt.v +++ b/usrp2/vrt/gen_context_pkt.v @@ -33,8 +33,11 @@ module gen_context_pkt CTXT_IDLE : if(trigger) begin - ctxt_state <= CTXT_HEADER; err_time <= vita_time; + if(PROT_ENG_FLAGS) + ctxt_state <= CTXT_PROT_ENG; + else + ctxt_state <= CTXT_HEADER; end CTXT_DONE : @@ -50,7 +53,8 @@ module gen_context_pkt always @* case(ctxt_state) - CTXT_HEADER : data_int <= { 2'b01, 12'b010100001101, seqno, 16'd6 }; + CTXT_PROT_ENG : data_int <= { 2'b01, 16'd1, 16'd24 }; + CTXT_HEADER : data_int <= { 1'b0, (PROT_ENG_FLAGS ? 1'b0 : 1'b1), 12'b010100001101, seqno, 16'd6 }; CTXT_STREAMID : data_int <= { 2'b00, streamid }; CTXT_SECS : data_int <= { 2'b00, err_time[63:32] }; CTXT_TICS : data_int <= { 2'b00, 32'd0 }; -- cgit v1.2.3