diff options
author | Matt Ettus <matt@ettus.com> | 2010-05-12 18:51:33 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-05-12 18:51:33 -0700 |
commit | b04a1beaab300000ce2d8a5814bd2e37af48286c (patch) | |
tree | 980333c397bcd16a5f99278c2cbf3b5be101abe8 /usrp2/control_lib/newfifo/packet_verifier.v | |
parent | ed48630974fb8cbdc3b863b13d4e7d7e8fe31434 (diff) | |
download | uhd-b04a1beaab300000ce2d8a5814bd2e37af48286c.tar.gz uhd-b04a1beaab300000ce2d8a5814bd2e37af48286c.tar.bz2 uhd-b04a1beaab300000ce2d8a5814bd2e37af48286c.zip |
moved fifos into gpmc_async, reorganized top level a bit, added in crc packet gen and test
Diffstat (limited to 'usrp2/control_lib/newfifo/packet_verifier.v')
-rw-r--r-- | usrp2/control_lib/newfifo/packet_verifier.v | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usrp2/control_lib/newfifo/packet_verifier.v b/usrp2/control_lib/newfifo/packet_verifier.v index 22c924198..b49ad1bbb 100644 --- a/usrp2/control_lib/newfifo/packet_verifier.v +++ b/usrp2/control_lib/newfifo/packet_verifier.v @@ -7,28 +7,26 @@ module packet_verifier (input clk, input reset, input clear, - input [7:0] data_i, input sof_i, output eof_i, input src_rdy_i, output dst_rdy_o, + input [7:0] data_i, input sof_i, input eof_i, input src_rdy_i, output dst_rdy_o, output reg [31:0] total, output reg [31:0] crc_err, output reg [31:0] seq_err, output reg [31:0] len_err); - assign dst_rdy_o = ~last_byte_d1; - reg [31:0] seq_num; reg [31:0] length; + wire first_byte, last_byte; + reg second_byte, last_byte_d1; wire calc_crc = src_rdy_i & dst_rdy_o; crc crc(.clk(clk), .reset(reset), .clear(last_byte_d1), .data(data_i), .calc(calc_crc), .crc_out(), .match(match_crc)); - wire first_byte, last_byte; - reg second_byte, last_byte_d1; - assign first_byte = src_rdy_i & dst_rdy_o & sof_i; assign last_byte = src_rdy_i & dst_rdy_o & eof_i; + assign dst_rdy_o = ~last_byte_d1; // stubs for now wire match_seq = 1; |