summaryrefslogtreecommitdiff
path: root/gr-radar-mono/src/fpga/tb
diff options
context:
space:
mode:
authorjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>2007-09-04 03:21:23 +0000
committerjcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>2007-09-04 03:21:23 +0000
commit60d88c4aef7c5c1851028046eb67fdfe162c82c4 (patch)
treee8c742e863f34161acaa3b2f4fe95181233277f3 /gr-radar-mono/src/fpga/tb
parent1ef3a907f1d02d40ddc06f150d0524f01520f902 (diff)
Merged r6045:6116 from jcorgan/radar into trunk. Updates gr-radar-mono with work-in-progress.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6283 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radar-mono/src/fpga/tb')
-rw-r--r--gr-radar-mono/src/fpga/tb/radar_tb.sav10
-rw-r--r--gr-radar-mono/src/fpga/tb/radar_tb.v8
2 files changed, 12 insertions, 6 deletions
diff --git a/gr-radar-mono/src/fpga/tb/radar_tb.sav b/gr-radar-mono/src/fpga/tb/radar_tb.sav
index dbc321fce2..aaf2ffd03a 100644
--- a/gr-radar-mono/src/fpga/tb/radar_tb.sav
+++ b/gr-radar-mono/src/fpga/tb/radar_tb.sav
@@ -1,4 +1,4 @@
-*-24.712317 37100000 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
+*-24.808464 9235000 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
@28
radar_tb.clk
radar_tb.ena
@@ -24,3 +24,11 @@ radar_tb.uut.tx_dac_q_o[13:0]
@28
radar_tb.uut.controller.tx_ctrl_o
radar_tb.uut.controller.rx_ctrl_o
+@200
+-
+@28
+radar_tb.fifo_strobe
+@8025
+radar_tb.fifo_i[15:0]
+@22
+radar_tb.fifo_q[15:0]
diff --git a/gr-radar-mono/src/fpga/tb/radar_tb.v b/gr-radar-mono/src/fpga/tb/radar_tb.v
index 0620582e68..cb26abf5ef 100644
--- a/gr-radar-mono/src/fpga/tb/radar_tb.v
+++ b/gr-radar-mono/src/fpga/tb/radar_tb.v
@@ -41,7 +41,6 @@ module radar_tb;
wire [13:0] tx_dac_q;
// ADC bus
- reg rx_strobe;
reg [15:0] rx_adc_i;
reg [15:0] rx_adc_q;
@@ -56,7 +55,7 @@ module radar_tb;
radar uut
(.clk_i(clk),.saddr_i(saddr),.sdata_i(sdata),.s_strobe_i(s_strobe),
.tx_strobe_o(tx_strobe),.tx_dac_i_o(tx_dac_i),.tx_dac_q_o(tx_dac_q),
- .rx_strobe_i(rx_strobe),.rx_adc_i_i(rx_adc_i),.rx_adc_q_i(rx_adc_q),
+ .rx_adc_i_i(rx_adc_i),.rx_adc_q_i(rx_adc_q),
.rx_strobe_o(fifo_strobe),.rx_ech_i_o(fifo_i),.rx_ech_q_o(fifo_q));
// Start up initialization
@@ -68,7 +67,6 @@ module radar_tb;
saddr = 0;
sdata = 0;
s_strobe = 0;
- rx_strobe = 1;
rx_adc_i = 0;
rx_adc_q = 0;
mode = 0;
@@ -187,8 +185,8 @@ module radar_tb;
#20 set_ton(320-1); // 5us on time
#20 set_tsw(26-1); // 406ns switching time
- #20 set_tlook(320-1); // 5us look time
- #20 set_tidle(3174-1); // 60us pulse period
+ #20 set_tlook(640-1); // 10us look time
+ #20 set_tidle(2854-1); // 60us pulse period
#20 set_ampl(16'd9946);
#20 set_fstart(32'h80000000); // -16 to 16 MHz