summaryrefslogtreecommitdiffstats
path: root/usrp2/vrt
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2010-07-19 17:58:26 -0700
committerMatt Ettus <matt@ettus.com>2010-07-28 10:00:44 -0700
commit51c2b19bc6f88f6147d581ed85fa54840e53a97c (patch)
treedd6a087d471f95d1e7b916467286aa95cd4c640d /usrp2/vrt
parent7934a2be42b417b06504f12232ba590b6e51efde (diff)
downloaduhd-51c2b19bc6f88f6147d581ed85fa54840e53a97c.tar.gz
uhd-51c2b19bc6f88f6147d581ed85fa54840e53a97c.tar.bz2
uhd-51c2b19bc6f88f6147d581ed85fa54840e53a97c.zip
insert protocol engine flags when requested
Diffstat (limited to 'usrp2/vrt')
-rw-r--r--usrp2/vrt/gen_context_pkt.v8
1 files 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 };