aboutsummaryrefslogtreecommitdiffstats
path: root/usrp2/vrt/vita_rx_tb.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2010-07-19 15:26:28 -0700
committerMatt Ettus <matt@ettus.com>2010-07-19 15:26:28 -0700
commit8e9d08ea7aece54fca7ba6c4898614891440ab71 (patch)
tree90f19252d0d1dc372469f044f70b41132499b867 /usrp2/vrt/vita_rx_tb.v
parented11f715c45ad129600e20849254e3899407002a (diff)
parent33083078546a910268ee404fc592c7df31451ebc (diff)
downloaduhd-8e9d08ea7aece54fca7ba6c4898614891440ab71.tar.gz
uhd-8e9d08ea7aece54fca7ba6c4898614891440ab71.tar.bz2
uhd-8e9d08ea7aece54fca7ba6c4898614891440ab71.zip
Merge branch 'ise12' into u2p
* ise12: move declaration ahead of use put run_tx and run_rx on the displayed LEDs remove warnings add mux and demux to build mux multiple fifo streams into one. Allows priority or round robin split fifo into 2 streams based on first line in each packet fix to stop endless error packets updated tests to match new features error packets are now valid Extension Context packets error packets don't have a trailer any more streamid is now optional on data packets, set by header register trailer now has a bit to indicate successful End-of-burst hard-coded some header bits to correct values to ensure valid packets reload bit for vita rx ctrl
Diffstat (limited to 'usrp2/vrt/vita_rx_tb.v')
-rw-r--r--usrp2/vrt/vita_rx_tb.v11
1 files changed, 8 insertions, 3 deletions
diff --git a/usrp2/vrt/vita_rx_tb.v b/usrp2/vrt/vita_rx_tb.v
index b4fda9622..3e01e2ee2 100644
--- a/usrp2/vrt/vita_rx_tb.v
+++ b/usrp2/vrt/vita_rx_tb.v
@@ -3,8 +3,8 @@
module vita_rx_tb;
localparam DECIM = 8'd4;
- localparam MAXCHAN=4;
- localparam NUMCHAN=4;
+ localparam MAXCHAN=1;
+ localparam NUMCHAN=1;
reg clk = 0;
reg reset = 1;
@@ -94,7 +94,7 @@ module vita_rx_tb;
@(posedge clk);
write_setting(4,32'hDEADBEEF); // VITA header
write_setting(5,32'hF00D1234); // VITA streamid
- write_setting(6,32'h98765432); // VITA trailer
+ write_setting(6,32'hF0000000); // VITA trailer
write_setting(7,8); // Samples per VITA packet
write_setting(8,NUMCHAN); // Samples per VITA packet
queue_rx_cmd(1,0,8,32'h0,32'h0); // send imm, single packet
@@ -111,8 +111,13 @@ module vita_rx_tb;
queue_rx_cmd(0,0,8,32'h0,32'h340); // send at, on time
queue_rx_cmd(0,0,8,32'h0,32'h100); // send at, but late
+ #100000;
+ $display("\nChained, break chain\n");
queue_rx_cmd(1,1,8,32'h0,32'h0); // chained, but break chain
#100000;
+ $display("\nSingle packet\n");
+ queue_rx_cmd(1,0,8,32'h0,32'h0); // send imm, single packet
+ #100000;
$display("\nEnd chain with zero samples, shouldn't error\n");
queue_rx_cmd(1,1,8,32'h0,32'h0); // chained
queue_rx_cmd(0,0,0,32'h0,32'h0); // end chain with zero samples, should keep us out of error