aboutsummaryrefslogtreecommitdiffstats
path: root/usrp2/udp/prot_eng_tx.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2011-03-13 18:15:19 -0700
committerMatt Ettus <matt@ettus.com>2011-03-16 12:26:38 -0700
commitac0f0796db6eae6e67c86b35a714803e22a50abf (patch)
tree79c10d900501eed94bddac60c30fb220a90c930d /usrp2/udp/prot_eng_tx.v
parent4eba6ddc4f07ea6f81b005a6f15663adc5eeedd9 (diff)
downloaduhd-ac0f0796db6eae6e67c86b35a714803e22a50abf.tar.gz
uhd-ac0f0796db6eae6e67c86b35a714803e22a50abf.tar.bz2
uhd-ac0f0796db6eae6e67c86b35a714803e22a50abf.zip
udp: new 32 bit wide udp state machine seems to work
Diffstat (limited to 'usrp2/udp/prot_eng_tx.v')
-rw-r--r--usrp2/udp/prot_eng_tx.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/usrp2/udp/prot_eng_tx.v b/usrp2/udp/prot_eng_tx.v
index 6fd585d36..9abce057c 100644
--- a/usrp2/udp/prot_eng_tx.v
+++ b/usrp2/udp/prot_eng_tx.v
@@ -67,7 +67,7 @@ module prot_eng_tx
(.A(header_word[15:0]),.B(ip_length),.SUM(ip_checksum));
always @*
- case(state[2:0])
+ case(state)
1 : dataout_int <= header_word; // ETH, top half ignored
2 : dataout_int <= header_word; // ETH
3 : dataout_int <= header_word; // ETH
@@ -79,8 +79,8 @@ module prot_eng_tx
9 : dataout_int <= header_word; // IP
10: dataout_int <= header_word; // UDP
11: dataout_int <= { udp_length, header_word[15:0]}; // UDP
- default : dataout_int <= datain;
- endcase // case (state[2:0])
+ default : dataout_int <= datain[31:0];
+ endcase // case (state)
assign dataout = { datain[35:33] & {3{state[3]}}, sof_o, dataout_int };
assign dst_rdy_o = dst_rdy_i & ((state == 0) | (state == 12));