[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9049 - gnuradio/branches/developers/gnychis/fpga/usrp
From: |
gnychis |
Subject: |
[Commit-gnuradio] r9049 - gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches |
Date: |
Tue, 29 Jul 2008 14:43:03 -0600 (MDT) |
Author: gnychis
Date: 2008-07-29 14:43:03 -0600 (Tue, 29 Jul 2008)
New Revision: 9049
Modified:
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
Log:
trying to output to file
Modified:
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
===================================================================
---
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
2008-07-29 20:06:34 UTC (rev 9048)
+++
gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches/tb_timestamps.v
2008-07-29 20:43:03 UTC (rev 9049)
@@ -37,6 +37,7 @@
reg [1:0] tx_underrun;
reg [11:0] signal;
+ integer out_file;
rx_buffer_inband rx_buffer
(.timestamp_clock(timestamp_clock), .usbclk(usbclk), .bus_reset(bus_reset),
@@ -81,6 +82,12 @@
#40 reset = 1'b0;
#40 bus_reset = 1'b0;
+
+ out_file = $fopen("z:/packet_out.dat", "wb");
+ if(!out_file) begin
+ $display("Error opening packet output file\n");
+ end
+
end
always @(posedge rxclk)
@@ -101,4 +108,9 @@
ch_7 <= {signal,4'd7};
end
+ if(have_pkt_rdy == 1'b1)
+ begin
+ $fwrite(out_file, usbdata);
+ end
+
endmodule
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9049 - gnuradio/branches/developers/gnychis/fpga/usrp/fpga/inband_lib/testbenches,
gnychis <=