diff options
Diffstat (limited to 'gr-radar-mono/src/fpga/tb')
-rw-r--r-- | gr-radar-mono/src/fpga/tb/radar_tb.sav | 13 | ||||
-rw-r--r-- | gr-radar-mono/src/fpga/tb/radar_tb.v | 11 |
2 files changed, 13 insertions, 11 deletions
diff --git a/gr-radar-mono/src/fpga/tb/radar_tb.sav b/gr-radar-mono/src/fpga/tb/radar_tb.sav index 69e48d218..66289c07e 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 7100000 -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.712532 40200000 -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 @@ -18,13 +18,14 @@ radar_tb.uut.transmitter.freq[31:0] radar_tb.tx_strobe @8420 radar_tb.uut.tx_dac_i_o[13:0] +@8421 radar_tb.uut.tx_dac_q_o[13:0] @200 - @28 +radar_tb.uut.io_tx_ena_o radar_tb.uut.controller.tx_ctrl_o radar_tb.uut.controller.rx_ctrl_o -radar_tb.uut.auto_tr_o @200 - @28 @@ -37,13 +38,5 @@ radar_tb.fifo_q[15:0] - @22 radar_tb.uut.pulse_num[15:0] -radar_tb.uut.receiver.count[15:0] -@28 -radar_tb.uut.receiver.fifo_empty -@22 -radar_tb.uut.receiver.fifo_inp[31:0] -radar_tb.uut.receiver.fifo_out[31:0] -@28 -radar_tb.uut.receiver.state[2:0] @200 - diff --git a/gr-radar-mono/src/fpga/tb/radar_tb.v b/gr-radar-mono/src/fpga/tb/radar_tb.v index cb26abf5e..3583b70e9 100644 --- a/gr-radar-mono/src/fpga/tb/radar_tb.v +++ b/gr-radar-mono/src/fpga/tb/radar_tb.v @@ -178,6 +178,15 @@ module radar_tb; end endtask // set_fincr + // Chirp frequency increment + task set_atrdel; + input [31:0] atrdel; + + begin + write_cfg_register(`FR_RADAR_ATRDEL, atrdel); + end + endtask // set_fincr + // Test transmitter functionality task test_tx; begin @@ -191,7 +200,7 @@ module radar_tb; #20 set_ampl(16'd9946); #20 set_fstart(32'h80000000); // -16 to 16 MHz #20 set_fincr (32'h0199999A); - + #20 set_atrdel(32'h00400046); // 64 TX clks, 70 RX clks #20 set_reset(0); #200000; end |