[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r6444 - gnuradio/branches/developers/matt/u2f/control_
From: |
matt |
Subject: |
[Commit-gnuradio] r6444 - gnuradio/branches/developers/matt/u2f/control_lib |
Date: |
Fri, 14 Sep 2007 13:10:09 -0600 (MDT) |
Author: matt
Date: 2007-09-14 13:10:08 -0600 (Fri, 14 Sep 2007)
New Revision: 6444
Modified:
gnuradio/branches/developers/matt/u2f/control_lib/buffer_int.v
gnuradio/branches/developers/matt/u2f/control_lib/buffer_int_tb.v
Log:
minor fix,, much more verification
Modified: gnuradio/branches/developers/matt/u2f/control_lib/buffer_int.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/control_lib/buffer_int.v
2007-09-14 14:05:06 UTC (rev 6443)
+++ gnuradio/branches/developers/matt/u2f/control_lib/buffer_int.v
2007-09-14 19:10:08 UTC (rev 6444)
@@ -88,6 +88,7 @@
rd_sop_o <= 0;
rd_eop_o <= 0;
wr_ready_o <= 0;
+ wr_full_o <= 0;
end
else
case(state)
Modified: gnuradio/branches/developers/matt/u2f/control_lib/buffer_int_tb.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/control_lib/buffer_int_tb.v
2007-09-14 14:05:06 UTC (rev 6443)
+++ gnuradio/branches/developers/matt/u2f/control_lib/buffer_int_tb.v
2007-09-14 19:10:08 UTC (rev 6444)
@@ -152,6 +152,15 @@
@(posedge clk);
ResetBuffer;
+ SetBufferRead(0,511);
+ $display("Testing full read, start to end of the buffer.");
+ while(!rd_sop_o)
+ @(posedge clk);
+ ReadLines(512,0);
+ repeat (10)
+ @(posedge clk);
+
+ ResetBuffer;
SetBufferRead(505,3);
$display("Testing full read, wraparound");
while(!rd_sop_o)
@@ -243,7 +252,7 @@
ResetBuffer;
SetBufferRead(506,10);
- $display("Testing wraparound write");
+ $display("Reading wraparound write");
while(!rd_sop_o)
@(posedge clk);
ReadLines(17,0);
@@ -251,6 +260,60 @@
@(posedge clk);
ResetBuffer;
+ SetBufferWrite(0,511);
+ $display("Testing Whole Buffer write");
+ while(!wr_ready_o)
+ @(posedge clk);
+ WriteLines(512,0,1000);
+ repeat (10)
+ @(posedge clk);
+
+ ResetBuffer;
+ SetBufferRead(0,511);
+ $display("Reading Whole Buffer write");
+ while(!rd_sop_o)
+ @(posedge clk);
+ ReadLines(512,0);
+ repeat (10)
+ @(posedge clk);
+
+ ResetBuffer;
+ SetBufferWrite(5,10);
+ $display("Testing Write Too Many");
+ while(!wr_ready_o)
+ @(posedge clk);
+ WriteLines(12,0,2000);
+ repeat (10)
+ @(posedge clk);
+
+ ResetBuffer;
+ SetBufferRead(0,15);
+ $display("Reading back Write Too Many");
+ while(!rd_sop_o)
+ @(posedge clk);
+ ReadLines(16,0);
+ repeat (10)
+ @(posedge clk);
+
+ ResetBuffer;
+ SetBufferWrite(15,20);
+ $display("Testing Write One Less Than Full");
+ while(!wr_ready_o)
+ @(posedge clk);
+ WriteLines(5,0,2000);
+ repeat (10)
+ @(posedge clk);
+
+ ResetBuffer;
+ SetBufferRead(13,22);
+ $display("Reading back Write One Less Than Full");
+ while(!rd_sop_o)
+ @(posedge clk);
+ ReadLines(10,0);
+ repeat (10)
+ @(posedge clk);
+
+ ResetBuffer;
repeat(100)
@(posedge clk);
$finish;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r6444 - gnuradio/branches/developers/matt/u2f/control_lib,
matt <=