summaryrefslogtreecommitdiffstats
path: root/usrp2
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2010-05-24 11:34:42 -0700
committerMatt Ettus <matt@ettus.com>2010-05-24 11:34:42 -0700
commit6f63773d7425dd952c5ca24da618c22c486ae294 (patch)
treef6142dd593624f8332464b82f30ab6ab48f60d8e /usrp2
parentd3e6f630945076cc9d5fb91e86e1caf0b554ac89 (diff)
downloaduhd-6f63773d7425dd952c5ca24da618c22c486ae294.tar.gz
uhd-6f63773d7425dd952c5ca24da618c22c486ae294.tar.bz2
uhd-6f63773d7425dd952c5ca24da618c22c486ae294.zip
test full width packets
Diffstat (limited to 'usrp2')
-rw-r--r--usrp2/control_lib/newfifo/packet32_tb.v27
1 files changed, 27 insertions, 0 deletions
diff --git a/usrp2/control_lib/newfifo/packet32_tb.v b/usrp2/control_lib/newfifo/packet32_tb.v
new file mode 100644
index 000000000..82bb09c29
--- /dev/null
+++ b/usrp2/control_lib/newfifo/packet32_tb.v
@@ -0,0 +1,27 @@
+
+
+module packet32_tb();
+
+ wire [35:0] data;
+ wire src_rdy, dst_rdy;
+
+ wire clear = 0;
+ reg clk = 0;
+ reg reset = 1;
+
+ always #10 clk <= ~clk;
+ initial #1000 reset <= 0;
+
+ initial $dumpfile("packet32_tb.vcd");
+ initial $dumpvars(0,packet32_tb);
+
+ wire [31:0] total, crc_err, seq_err, len_err;
+
+ packet_generator32 pkt_gen (.clk(clk), .reset(reset), .clear(clear),
+ .data_o(data), .src_rdy_o(src_rdy), .dst_rdy_i(dst_rdy));
+
+ packet_verifier32 pkt_ver (.clk(clk), .reset(reset), .clear(clear),
+ .data_i(data), .src_rdy_i(src_rdy), .dst_rdy_o(dst_rdy),
+ .total(total), .crc_err(crc_err), .seq_err(seq_err), .len_err(len_err));
+
+endmodule // packet32_tb