pulse-凯发k8网页登录
this example shows how to build, simulate, and deploy a pulse-doppler radar system in simulink® using an soc blockset™ implementation targeted on the xilinx® zynq® ultrascale ™ rfsoc evaluation kit. using this example, you can detect and estimate the range and velocity of moving targets. the range-doppler processing is partitioned across a field-programmable gate array (fpga) and a processor. the range processing is handled in the fpga and the doppler processing is handled in the processor. the example also implements a radar target emulator to evaluate the performance of the radar.
supported hardware platforms
xilinx zynq ultrascale rfsoc zcu111 evaluation kit xm500 balun card
design task
target detection is an important part of a radar system. range and doppler estimation improve the detection capabilities. in this example a pulsed radar detects the velocity of the moving targets at specific ranges. the velocity is derived from the doppler shift caused by the moving targets. the pulsed radar identifies the existence of a target at a given range and then uses doppler processing to determine the radial velocity of the target at that range. you can visualize a signal in the range-doppler domain to identify connections among the targets. for more information, see (phased array system toolbox) of pulsed-radar systems. to view a range-response map, see the (phased array system toolbox) system object.
in this example, the design task is to model the complete range-doppler processing system consisting of a transmitter, a receiver, and a radar target emulator in simulink and to implement the system on an rfsoc device.
the transmitter in the range-doppler processing generates a linear fm (lfm) pulse and transmits through one dac channel. the target emulator receives the radar waveform, modifies the signals to emulate one or more targets at a given range and velocity, and retransmits the signal. the receiver receives the target emulated signals and applies the range and doppler processing to extract the range and velocity information. in this example, the range is extracted using a matched filter and the velocity using an fft.
system specifications
the following are the system specifications:
radar signal bandwidth at ka-band = 200 mhz
maximum range per pulse interval = 700 m
maximum range resolution <= 1 m
maximum unambiguous velocity >= 300 m/s
velocity resolution <= 10 m/s
the following figure shows the implementation block diagram of the pulse-doppler radar system.
design using soc blockset
create the soc model soc_range_doppler_top
as the top model and set the hardware board to the xilinx zynq ultrascale rfsoc zcu111 evaluation kit. this model includes fpga model soc_range_doppler_fpga
and processor model soc_range_doppler_proc
, which are instantiated as model references. the top model also includes axi4-stream to software block that share the external memory between the fpga and the processor.
open_system('soc_range_doppler_top')
close_system('soc_range_doppler_top')
rf data converter configuration
rfsoc devices have an rf data converter hardware ip connected to the programmable logic, which needs to be configured as per the application requirements. soc blockset provides an rf data converter (rfdc) block in simulink, which provides an interface to the xilinx rf data converter ip. this block enables you to configure the adc and dac settings of the xilinx rf data converter ip and emulates the programmable logic interface to the converters.
to meet the system requirements of a 200 mhz radar signal bandwidth, design and set the rf data converter block configuration by following these steps.
1. choose the decimation factor and adc sample rate based on the signal bandwidth.
the pass band for decimation filters must be 80 percent of nyquist. to meet this passband requirement, use this condition. (0.8 x fs / d) signal bandwidth
to meet the signal bandwidth of 200 mhz, choose the decimation factor (d) as 8. to calculate the adc sample rate (fs), use this equation. fs (signal bandwidth x d /0.8) = (200 x 8/0.8) = 2000 mhz.
2. choose 2 samples per clock so that the fpga clock rate is 125 mhz. the fpga clock rate is calculated by fs /(d x samples per clock) = 2000/(8 x 2) = 125 mhz.
3. choose the receiver intermediate frequency (if) as 500 mhz.
configure the rf data converter block according to these values. set the nco frequency for the dac and adc mixers to 0.5 ghz and the adc and dac sample rates to 2000 msps. you must set the values of the interpolation mode (xn), decimation mode (xn), and samples per clock cycle parameters such that the effective clock rate for the fpga algorithm is the desirable value for this example, which is 125 mhz. this value is calculated and displayed on the block mask as the stream clock frequency (mhz) parameter after you click apply. set the decimation mode (xn) parameter to 8
, so that the effective sample rate after decimation is 250 msps. to get a clock rate of 125 mhz, in the dac tab, set the samples per clock cycle parameter to 2
. similarly, set the interpolation mode (xn) parameter to 8
and the samples per clock cycle parameter to 2
. these settings imply that the stream clock frequency is 2000/(8 x 2) = 125 mhz.
the zcu111 evaluation board comes with an xm500 eight-channel loopback card. this card has two adc and two dac single-ended channels (adc224_t0_ch0, adc224_t0_ch1, dac229_t1_ch2, and dac229_t1_ch3) for supporting the selected if frequency of 500 mhz. set the rf interface parameter to customize
. then, select these specific channels: adc1 and adc2 in the adc tab and dac7 and dac8 in the dac tab as shown in the following figure.
hardware logic design
the fpga model soc_range_doppler_fpga
contains two subsystems: range doppler tx-rx
and radar target emulator
. the radar target emulator
subsystem acts as a real target.
open_system('soc_range_doppler_fpga')
close_system('soc_range_doppler_fpga')
in the range doppler tx-rx
subsystem, the generate tx signal block generates the pulsed lfm signal and transmits the signal through the dac7 interface in the transmit path. in the receive path, the adc interface block receives the samples and performs the matched filtering for range processing, followed by hamming windowing as the first step in doppler processing. the dma interface sends the estimated range bins to the processor for the remaining doppler processing through the memory. the system controller block synchronizes the radar transmit and receive processes.
the radar target emulator
subsystem receives the emulator configuration from the processor through axi4-lite registers. this subsystem receives the transmitted signal through the adc1 interface and emulates the range delay, doppler shift, and free space path loss of the targets based on the configuration that you have set. this emulated target data is retransmitted through the dac8 interface as the reflected signal from the target.
processor logic design
the software functionality is partitioned across four tasks with characteristics that you can configure using the task manager block.
1. baseratetask
type of task: timer
task period: 0.2 s
function: control the timing execution of the software.
2. datareadtask
type of task: event-based task
function: receive the range bins processed from the fpga through the stream read block, and then send those bins for fft-based doppler processing. the udp write block sends the final computed range-doppler response to the host. the
dmareadfcn
subsystem holds the functionality of this task.
3. udprxtask
type of task: event-based task
function: receive configuration information from the host through the user datagram protocol (udp) interface. the udp packet handler parses the packet to get the configuration information and applies it to the radar system controller in the fpga through the axi4-lite registers. it also passes the radar target emulator configuration to the radartargetupdate task. the
udprxfcn
subsystem holds the functionality of this task.
4. radartargetupdatetask
type of task: timer
task period: 0.01 s
function: configure and update the target emulator registers in the fpga through the axi4-lite interface. the function uses the target emulator information, such as radar cross section (rcs), range, velocity and the enable from the udprxtask, to configure the target emulator. the
radartargetupdatefcn
subsystem holds the functionality of this task.
open_system('soc_range_doppler_proc')
close_system('soc_range_doppler_proc')
simulate
to confirm the basic operation, run the model and observe the estimated range and velocity of the moving targets on the range doppler response and detection map plot. the range doppler response displays the power level for each range and velocity bin. the detection map shows the result of 2-d constant false alarm rate (cfar) detection and density-based spatial clustering of applications with noise (dbscan) clustering on the range-doppler response to extract the distinct targets and their estimated range and velocity. this detection processing is done on the host machine in matlab®.
implement and run on hardware
hardware setup
connect the sma connectors on the xm500 balun card to complete the loopback between the dac and adc channels, according to the connections in this table and figure.
to implement the model on a supported soc board, use the tool. ensure that the hardware board is set to xilinx zynq ultrascale rfsoc zcu111 evaluation kit
on the system on chip tab of the simulink toolstrip.
to open soc builder, click configure, build, & deploy. after the soc builder tool opens, follow these steps.
on the setup screen, select build model. click next.
on the select build action screen, select build and load for external mode. click next.
on the select project folder screen, specify the project folder. click next.
on the review hardware mapping screen, click next.
on the review memory map screen, to view the memory map, click view/edit. click next.
on the validate model screen, to check the compatibility of the model for implementation, click validate. click next.
on the build model screen, to build the model, click build. an external shell opens when fpga synthesis begins. click next.
on the connect hardware screen, to test the connectivity of the host computer with the soc board, click test connection. to go to the run application screen, click next.
the fpga synthesis often takes more than 30 minutes to complete. to save time, you can use the provided pregenerated bitstream by following these steps.
close the external shell to terminate the fpga synthesis.
copy the pregenerated bitstream to your project folder by entering this command at the matlab command prompt.
copyfile(fullfile(matlabshared.supportpkg.getsupportpackageroot, ... 'toolbox','soc','supportpackages','xilinxsoc','xilinxsocexamples', ... 'bitstreams','soc_range_doppler_top-xilinxzynqultrascale_rfsoczcu111evaluationkit.bit'),'./soc_prj');
click load and run to load the pregenerated bitstream and run the model on the soc board. after the bit file is loaded, open the generated software model.
run the model in external mode by clicking monitor & tune. after the model runs on hardware, run the script. ensure that the correct hardware board ip address is specified in the script.
the range doppler response and detection map plot shows the estimated range and velocity of the moving targets.
you can try different range and velocity inputs by updating the target emulator configuration information in the script. this example can emulate up to four targets. you can also try to configure the four targets by updating the target emulator configuration in the script and rerunning it.
conclusion
this example shows how to integrate the pulse-doppler radar system on a xilinx zcu111 evaluation board using the soc blockset product and how to verify the design in simulation and on hardware. the implementation estimates the range and velocity of the moving targets, which are emulated through the target emulator inbuilt in the system.
see also
blocks
- | | | | | | | |