aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/lib/vita/float_to_iq_tb.v
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-10-07 11:25:20 +0200
committerMartin Braun <martin.braun@ettus.com>2014-10-07 11:25:20 +0200
commitfd3e84941de463fa1a7ebab0a69515b4bf2614cd (patch)
tree3fa721a13d41d2c0451d663a59a220a38fd5e614 /fpga/usrp3/lib/vita/float_to_iq_tb.v
parent3b66804e41891e358c790b453a7a59ec7462dba4 (diff)
downloaduhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.gz
uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.bz2
uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.zip
Removed copy of FPGA source files.
Diffstat (limited to 'fpga/usrp3/lib/vita/float_to_iq_tb.v')
-rw-r--r--fpga/usrp3/lib/vita/float_to_iq_tb.v69
1 files changed, 0 insertions, 69 deletions
diff --git a/fpga/usrp3/lib/vita/float_to_iq_tb.v b/fpga/usrp3/lib/vita/float_to_iq_tb.v
deleted file mode 100644
index 847547e30..000000000
--- a/fpga/usrp3/lib/vita/float_to_iq_tb.v
+++ /dev/null
@@ -1,69 +0,0 @@
-module float_to_iq_tb();
-
-reg clk, reset;
-
-integer x,file;
-reg [31:0] in;
-wire [15:0] out;
-
-initial clk = 0;
-
-always #10 clk = ~clk;
-
-initial $dumpfile("float_to_iq_tb.vcd");
-initial $dumpvars(0,float_to_iq_tb);
-
-initial
- begin
-
- x <= 0;
- reset <= 1;
- in <= 0;
- file = $fopen("float_to_iq_VER.txt");
-
- repeat(65536) @(posedge clk);
- reset <=0;
- repeat(65536) @(posedge clk)
- begin
- in <= data[x];
- x <= x+1;
- $fdisplayh(file,out);
- end
- $fclose(file);
- repeat(65536) @(posedge clk);
- $finish;
- end
-
- float_to_iq #(.BITS_IN(32),.BITS_OUT(16))
- dut
- (
- .in(in), .out(out), .clk(clk), .reset(reset)
- );
-//input
- reg [31:0] data [0:65535];
- initial $readmemh("iq_to_float_output.txt",data);
-//golden output
-//
-/*
- reg [15:0] out_array [0:65535];
- initial $readmemh("my_data.txt",out_array);
- reg fail;
- initial
- fail <= 0;
-//compare golden output with your output
-
- always @(posedge clk) begin
- if (out != out_array[index]) begin
- $display("Line %d : Expected %x, got %x",index,out_array[index],out);
- fail <= 1;
- end
- end
-*/
- end
-
-
-
-
-
- endmodule
-