aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp2/top/u2_rev3_2rx_iad/impulse.v
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-14 17:29:21 -0700
committerJosh Blum <josh@joshknows.com>2011-06-14 17:29:21 -0700
commitdd157937466f3ee18b08712625eba84582a913f3 (patch)
tree6a4eadb148a2c8141032b78d3c521d56c1f34910 /fpga/usrp2/top/u2_rev3_2rx_iad/impulse.v
parenta1f36ebf436fccbb6cc81bb5f32a790d444772c2 (diff)
parentc0fadece89314f3a00892122c28caf187ce1a717 (diff)
downloaduhd-dd157937466f3ee18b08712625eba84582a913f3.tar.gz
uhd-dd157937466f3ee18b08712625eba84582a913f3.tar.bz2
uhd-dd157937466f3ee18b08712625eba84582a913f3.zip
Merge branch 'fpga_next' into uhd_next
Diffstat (limited to 'fpga/usrp2/top/u2_rev3_2rx_iad/impulse.v')
-rw-r--r--fpga/usrp2/top/u2_rev3_2rx_iad/impulse.v68
1 files changed, 0 insertions, 68 deletions
diff --git a/fpga/usrp2/top/u2_rev3_2rx_iad/impulse.v b/fpga/usrp2/top/u2_rev3_2rx_iad/impulse.v
deleted file mode 100644
index fc5e3c1ed..000000000
--- a/fpga/usrp2/top/u2_rev3_2rx_iad/impulse.v
+++ /dev/null
@@ -1,68 +0,0 @@
-module impulse
- (input clk,
- input rst,
- input ena,
-
- input [13:0] dc_offset_a,
- input [13:0] dc_offset_b,
- input [13:0] amplitude,
- input [15:0] impulse_len,
- input [15:0] zero_len,
-
- output [13:0] adc_a,
- output [13:0] adc_b,
- output adc_ovf_a,
- output adc_ovf_b
- );
-
- reg [13:0] adc_a_int = 0;
- reg [13:0] adc_b_int = 0;
-
- reg [15:0] count;
-
- localparam ST_ZERO = 0;
- localparam ST_HIGH = 1;
- reg state;
-
- always @(posedge clk)
- if (rst | ~ena)
- begin
- adc_a_int <= 0;
- adc_b_int <= 0;
- count <= 0;
- state <= ST_ZERO;
- end
- else
- case(state)
- ST_ZERO:
- if (count == zero_len)
- begin
- adc_a_int <= amplitude;
- adc_b_int <= amplitude >> 2;
- state <= ST_HIGH;
- count <= 0;
- end
- else
- count <= count + 1;
-
- ST_HIGH:
- if (count == impulse_len)
- begin
- adc_a_int <= 0;
- adc_b_int <= 0;
- state <= ST_ZERO;
- count <= 0;
- end
- else
- count <= count + 1;
-
- endcase // case (state)
-
- assign adc_a = adc_a_int + dc_offset_a;
- assign adc_b = adc_b_int + dc_offset_b;
-
- // Ignore for now
- assign adc_ovf_a = 0;
- assign adc_ovf_b = 0;
-
-endmodule // impulse