diff options
author | Josh Blum <josh@joshknows.com> | 2010-12-22 17:16:38 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-22 17:16:38 -0800 |
commit | 195c8f9a53b4737478ca4c46fe226bd1d8c6857f (patch) | |
tree | 8e8ca8716f4425047761265c5fdbe7f8a2100933 /usrp2/vrt/gen_context_pkt.v | |
parent | 73f7b2cde070ef3b6c5db513407ba0b90296ac7d (diff) | |
parent | 64293ea66b52ad00cfc6862d39d0b16f0a1a63b0 (diff) | |
download | uhd-195c8f9a53b4737478ca4c46fe226bd1d8c6857f.tar.gz uhd-195c8f9a53b4737478ca4c46fe226bd1d8c6857f.tar.bz2 uhd-195c8f9a53b4737478ca4c46fe226bd1d8c6857f.zip |
Merge branch 'udp_ports' into next
Diffstat (limited to 'usrp2/vrt/gen_context_pkt.v')
-rw-r--r-- | usrp2/vrt/gen_context_pkt.v | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usrp2/vrt/gen_context_pkt.v b/usrp2/vrt/gen_context_pkt.v index 44bb7b548..cc34cceed 100644 --- a/usrp2/vrt/gen_context_pkt.v +++ b/usrp2/vrt/gen_context_pkt.v @@ -1,7 +1,8 @@ module gen_context_pkt - #(parameter PROT_ENG_FLAGS=1) + #(parameter PROT_ENG_FLAGS=1, + parameter DSP_NUMBER=0) (input clk, input reset, input clear, input trigger, output sent, input [31:0] streamid, @@ -67,10 +68,10 @@ module gen_context_pkt endcase // case (ctxt_state) assign src_rdy_int = ~( (ctxt_state == CTXT_IDLE) | (ctxt_state == CTXT_DONE) ); - + always @* case(ctxt_state) - CTXT_PROT_ENG : data_int <= { 2'b01, 16'd1, 16'd28 }; + CTXT_PROT_ENG : data_int <= { 2'b01, 13'b0, DSP_NUMBER[0], 1'b1, 1'b1, 16'd28 }; // UDP port 1 or 3 CTXT_HEADER : data_int <= { 1'b0, (PROT_ENG_FLAGS ? 1'b0 : 1'b1), 12'b010100001101, seqno, 16'd7 }; CTXT_STREAMID : data_int <= { 2'b00, streamid }; CTXT_SECS : data_int <= { 2'b00, err_time[63:32] }; |