The utility model content
The utility model purpose is the decoder that proposes a kind of variable-rate modems, and the decoder that cooperates transmission rate to change according to channel conditions, can error correction coding and decoding, and the information rate excursion is 8kbps-2Mbps; E
b/ N
0During=8dB, the error rate≤10
-6Especially obtain requiring and decoding complexity, select the decoder of the code check of rational inside and outside sign indicating number according to the error rate of whole system.
Technical solution of the present utility model is: the decoder of modulator-demodulator, it is characterized in that forming by single-chip microcomputer, DDS, single-chip microcomputer, FPGA, DSP device, A/D converter and D/A converter, the clock signal output that DDS produces connects the clock input port of FPGA, DSP device, A/D converter, D/A converter, single-chip microcomputer connects the control interface of the MODEM of FPGA formation, and A/D converter and D/A converter all connect input and the output interface of FPGA.The data-interface of FPGA and DSP device is connected to each other, and coding, shaping filter, matched filtering, symbol timing, frequency offset estimating, Viterbi decoding, RS decoder digital processing function are finished by FPGA and DSP; System platform is finished the processing of different business and different rates, and hardware configuration can dynamic load.
The utility model reads in the data that will transmit from main control computer and writes input buffer cell (ping-pong structure), by the RS encoder data of buffering are read with the channel speed (processing clock only needs to get final product more than or equal to channel speed) of twice then and carry out the RS coding, send into the convolutional encoding unit after data behind the coding and the string conversion and carry out convolutional encoding, then will be through the I after the convolutional encoding, the Q two paths of data is sent into the interleaver I of equivalent construction respectively, Q, at last coded data is sent into the output buffering and with channel speed data are read the modulator unit of sending into the rear end from the output buffering simultaneously, control unit is responsible for all module control signals and is produced.
If (its bandwidth of filtering is π/D) to X but at first use a digital filter
D(e
J ω) carry out filtering, make X
D(e
J ω) in only contain spectrum component (corresponding analog frequency be π f less than π/D
S/ D), carrying out D again and doubly extract, aliasing just can not take place in the frequency spectrum after then extracting.Can get complete D times withdrawal device, the integral multiple interpolation just is meant inserts (I-1) individual null value between two primary sample points, if establishing the primary sample sequence is x (n), then the sequence after the interpolation is x
I(m):
The utility model beneficial effect: be implemented in digital communication rate adaptation embedded software and the MODEM system burst data transmission software and carry out coding and decoding, but extensive use.When signal to noise ratio is hanged down, adopt lower rate transmissions to guarantee the low error rate; Perhaps when certain signal to noise ratio, adopt lower rate transmissions to save power.Especially obtain requiring and decoding complexity, obtain the decoder of the code check of rational inside and outside sign indicating number according to the error rate of whole system.
Embodiment
The multistage realization of multistage realization (b) interpolation that realize to extract according to Fig. 1 flow process in Fig. 2 device is adopted based on FPGA (encode, interweave, deinterleave, decoding etc.), and DSP is the scheme of assisting.
1.1 modulator design
The modulator principle block diagram inserts circuit, mapper, pulse shaper, D/A converter, low pass filter and timing sequence generating circuit etc. by interface circuit, RS encoder, convolution coder, interleaver, decoding, information and forms as shown in Figure 3.
(1) RS coding
The RS sign indicating number that adopts is RS (126, a 112) sign indicating number, and primitive polynomial is
p(x)=x
8+x
7+x
2+x+1
(2) convolutional encoding
The convolution code that adopts is (2,1,7), and its encoder generator polynomial is respectively:
G
1(X)=1+X+X
2+X
3+X
6
G
2(X)=1+X
2+X
3+X
5+X
6
(3) interweave
Convolutional interleave, interleave depth are MB, and be MB (B-1) time of delay.
(4) mapping
The modulation signal of DPSK can be expressed as
S(k)=Acos(2πf
ct+θ
k)
θ wherein
k=θ
K-1+ Δ θ
k
θ
kBe the absolute phase of k symbol, Δ θ
kIt is the phase changing capacity between k symbol and k-1 the symbol.
(5) realization of forming filter
Forming filter is the root-raised cosine filter of rolloff-factor α.
(6) D/A conversion
D/A converter is finished the conversion of digital signal to analog signal, and D/A converter has two data input ports and two outputs, finishes the D/A switch of I (quadrature) branch road and Q (homophase) branch road respectively.
(7) clock generating is shown in Fig. 4 block diagram
Modulator-demodulator needs various clocks, and frequency division obtained after various required clocks produced a unified clock by DDS.
1.2 demodulator design: the input of base band demodulator is from the zero intermediate frequency quadrature detector, catch and symbol timing acquisition through the laggard line frequency difference of mould/number conversion, signal behind frequency offset correction is sent into matched filter, and its output can be done Differential Detection and decoding, as Fig. 5 demodulator principle and flow chart.The A/D conversion: A/D converter is used for the I of zero intermediate frequency input and the mould/number conversion of Q branch road.
(1) frequency offset correction: record multispectral reining in after the frequency deviation, it is transformed into frequency control word, send into digital controlled oscillator, produce orthogonal sine and cosine signal, the input signal after this signal and the A/D conversion carries out conjugate multiplication, can realize frequency offset correction.
(2) matched filtering: matched filter is the root-raised cosine filter of rolloff-factor α, same forming filter.
(3) regularly recover: bit timing recovery adopts " lead-lag detection method ", the lead-lag detection method produces the lead-lag margin of error to M times of symbol rate sampling of input analog baseband signal back by following formula, and this margin of error is by the sampling clock of digital phase-locked loop control A/D converter.
(4) Differential Detection: the signal of establishing matched filter output is x (n), and calculus of differences is output as
y(n)=x(n)·x
*(n-1)
(6) deinterleaving: deinterleave circuit and interleave circuit are similar, and the interleaver input is from I, the synthetic quantitative information of Q two-way alternate group of demodulator.
(7) Viterbi decoding: the Viterbi decoder of convolution code adopts FPGA to realize, shown in the block diagram that Figure 11 decoder adopts the FPGA realization.
(8) RS decoding: RS decoding is realized by FPGA equally.The utility model adopts (2,1,7) Viterbi coding, (126,112) RS coding.Channel cascaded encoding scheme such as Figure 12 of adopting.
1.3 power supply: outside input supply voltage converts the needed various voltages of modulator-demodulator to through power conversion chip.
The utility model adopts the Cyclone device based on a kind of brand-new low-cost framework, has just taken into full account the saving of cost at the beginning of design, so brand-new programmable solution can be provided for the application of Price Sensitive.
Need and have ready conditions to embed second party specialty eda tool if having, we use matlab6.5 and CCS as the debugging and verification platform according to actual conditions.After design content was configured to circuit board EP1C20, the variable that will observe by the interface of DSP and FPGA read in computer, handled with its coding and decoding function result comparing then by matlab, the correctness of checking design.
Device of the present utility model is formed: system is made up of devices such as A/D converter, D/A converter, DDS, single-chip microcomputer, FPGA, DSP, DDS produces needed clock, single-chip microcomputer is finished the interface control with main control computer and MODEM, and digital processing functions such as coding, shaping filter, matched filtering, symbol timing, frequency offset estimating, Viterbi decoding, RS decoder are finished by FPGA and DSP.System platform is finished the processing of different business and different rates, and hardware configuration can dynamic load.There are four kinds of schemes to select, the one, based on FPGA, dsp software is auxilliary; The 2nd, with FPGA and special chip (Viterbi coding and decoding and RS coding and decoding integrated circuit) combination; The 3rd, based on dsp software, FPGA is auxilliary; The 4th, based on dsp software and special chip, FPGA hardware is auxilliary.Consider that system upgrade needs (raisings of system transmissions speed) and system's versatility, flexibility, employing is based on FPGA (encode, interweave, deinterleave, decoding etc.), and DSP is the scheme of assisting.
The FPGA that selects for use in the utility model is that altera corp releases the minimum FPGA device series of products Cyclone of the present cost of industry a few days ago.From 2,910 to 20,060 logical blocks of Cyclone device capacity (240,000 gates or more than 100 ten thousand system doors) and the embedding memory of 288kb nearly.The special interface circuit of each Cyclone device is all integrated single data rate SDRAM and double data rate (DDR) (DDR) SDRAM and FCRAM device is supported multiple single-ended I/O standard, comprises LVTTL, LVCOMS, PCI, SSTL-2 and SSTL-3.And having nearly 129 low-voltage differential signals (LVDS) compatible channels, each channel performance can be up to 311Mbps.Wherein embedding memory has many advantages, not only supports various memory modules, but also support the byte enable operation, based on the error correction of parity check and the port store design that do not wait bit wide.These functions are used for some specific occasion can save designer's design time, as sign indicating number process object difference in the utility model because inside and outside the cascaded code (outer yard is that object, ISN are object with the bit with the byte), so between will be done extra conversion, if but utilize the not equipotential wide port function of Cyclone embedded memory just can finish.Whole system is mainly realized by programming devices such as single-chip microcomputer, DSP, FPGA, is achieved as follows function by single-chip microcomputer, DSP, FPGA are carried out embedded programming:
(1) variable bit rate modulation adopts the digital interpolation filter to realize.
(2) if sampling and Digital Down Convert, many speed filtering technique realize that variable Rate receives.
(3) signal demodulation techniques comprise sign synchronization, carrier synchronization, matched filtering, frequency offset estimating etc.
(4) encoding and decoding technology comprises convolutional encoding, RS coding, Viterbi decoding, RS decoding.
The utility model research has reached re-set target, and promptly the information rate excursion is 8kbps-2Mbps; E
b/ N
0During=8dB, the error rate≤10
-6Development along with radio network technique, become a kind of trend at transmitted over wireless networks video and audio frequency, the utility model can be used for army's military exercises, public security, fire-fighting People's Armed Police floor manager and exploration, and other urgent emergency commading system, it mainly acts on is can be with real time bidirectional transmission lteral data, audio frequency, video between scene and the command centre, to improve commander's accuracy and promptness.The occasions such as real-time monitoring that also are used for urban transportation.
The FPGA of 2 Viterbi decoding realizes
Realize the Viterbi decoding algorithm with FPGA, method commonly used has serial realization, Parallel Implementation and string and combination to realize, serial only utilizes an ACS unit serial to realize the renewal of the path metric value of each state in realizing, realize that so the most outstanding advantage is to save hardware resource, but this method also there is apparent in view shortcoming: the low and complex time of decoder throughput.For example realize the decoder of a constraint length K=7, have 2
K-1=64 states, code word of every like this reception needs 64 master clock cycles just can finish processing procedure at least, because each built-in function unit needs stream treatment in specific implementation, such 64 processing clock cycles are just not much of that, and so realization will make inner sequential quite complicated, need to do accurate control, so just aggravated the workload of hardware designs greatly.
The AD sampling section mainly is made up of two parts among Fig. 6: 1, operational amplifier TL082 adjusts the level of analog input signal, makes the incoming level of AD converter within the scope that requires; 2, high-performance single-ended-differential conversion chip AD8138 is converted to differential signal with single-ended signal, to improve the sampling precision of AD converter; 3, AD9238 samples simultaneously to I, Q two-way analog signal, and the digital signal of sampling is sent into FPGA.The DA conversion portion mainly is made up of three parts: 1, AD9761 converts the digital signal of FPGA output to pulse signal; 2, low pass filter LT1568 pulse signals filtering, filtering image frequency component; 3, operational amplifier TL082 carries out the ratio amplification to filtered baseband signal, to arrive the output signal level of system requirements.
Microprocessor adopts the high-performance single chip computer AT MEGA128L of atmel corp among Fig. 7, this single-chip microcomputer adopts reduced instruction set computer, most of instruction is one-cycle instruction, the efficient height, and sheet contains richs in natural resources such as hardware multiplier, UART, FLASH, EEPROM, hardware watchdog, PWM, ADC.The outside MAX706 that adopts has improved system reliability greatly as resetting chip.
Dsp chip adopts the TMS320VC5410A of TI company among Fig. 8, and the disposal ability of this processor can reach 160MIPS, and inside contains 18 hardware multipliers, and MAC, CSSU, 40 bit accumulators are specially adapted to digital signal processing algorithms such as FFT, FIR.In addition, adopt the ROM of high-capacity FLASH chip SST39VF800A, can store lot of data as TMS320VC5410A.This part adopts DDS special chip AD9851 to produce system clock among Fig. 9.This circuit has output clock flexibility and changeability, and output frequency precision is better than 20mHz.The output clock frequency can accurately be set by microprocessor, is specially adapted to the realization of variable-rate modems.