Aviation audio coding and decoding system and coding and decoding method based on FPGA (Field Programmable Gate Array)
Through the aerial audio encoding and decoding system based on FPGA, the FPGA processing unit and interface module are used to realize efficient audio encoding and decoding, solving the problems of high power consumption and high cost of audio encoding and decoding in the prior art, and improving audio quality and voice Clarity.
Patent Information
- Application Number
- CN202411228601.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-11-22
AI Technical Summary
Existing aviation airborne equipment consumes high power and costs during audio encoding and decoding, especially when multiple audio is encoded and decoding simultaneously.
Adopt an aerial audio encoding and decoding system based on FPGA, and the audio filtering, encoding and decoding is realized through the FPGA processing unit. The AD/DA circuit conversion module is connected by SPI and ARINC429 interfaces, and incoherent demodulation, hard limiting and ITUG.711U rate are used. The rule table is compressed and decompressed to form a 32-bit ARINC429 transmission data.
It realizes low-latency and high-efficiency audio encoding and decoding, saves additional power consumption, volume and cost, improves audio quality and voice clarity, and meets the requirements of airborne equipment for low code rates and high efficiency.
Smart Images

Figure CN119007735A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of aviation airborne equipment, relates to an aviation audio coding and decoding system based on FPGA, and also relates to an aviation audio coding and decoding method based on FPGA. Background Art
[0002] With the development of aviation technology, aviation airborne equipment has higher requirements for the transmission and quality of real-time voice, and audio encoding and decoding has received more and more attention. At present, aviation airborne equipment encodes and decodes audio through application-specific integrated circuits (ASICs), but application-specific integrated circuits require additional hardware, require dedicated SDK development kit support, and require additional power consumption, volume and cost. When multiple audio channels are encoded and decoded at the same time, the cost is even higher. The use of FPGA (field programmable gate array) can encode and decode multiple audio channels for aviation airborne equipment at the same time, and can save additional power consumption, volume and cost. Therefore, it has received more and more attention in recent years. Summary of the invention
[0003] The purpose of the present invention is to provide an aviation audio codec system based on FPGA, which solves the problem of high power consumption and high cost in the prior art for coding and decoding the audio of aviation airborne equipment.
[0004] Another object of the present invention is to provide an aviation audio coding and decoding method based on FPGA.
[0005] The first technical solution adopted by the present invention is an aviation audio codec system based on FPGA, including an FPGA processing unit, the FPGA processing unit includes an audio filter module, an encoding module, and a data packaging module that are sequentially communicatively connected, the FPGA processing unit also includes an SPI interface and an ARINC429 interface, the audio filter module is electrically connected to an AD circuit conversion module through the SPI interface, the AD circuit conversion module is electrically connected to a Volt extension, a heading extension, and a compass extension, the FPGA processing unit also includes a decoding module, the decoding module is electrically connected to a processor through an SPI interface, and the decoding module is electrically connected to a DA circuit conversion module through an ARINC429 interface.
[0006] The first technical solution of the present invention is also characterized in that:
[0007] The audio filter module includes a bandpass filter, which is electrically connected to the AD circuit conversion module and communicatively connected to the encoding module. The sampling rate of the bandpass filter is 20KHz, the passband is 300Hz-2500Hz, the in-band attenuation is 1dB, and the out-of-band attenuation is 40dB.
[0008] The encoding module includes a first symbol extraction module, a hard limiting module, a compression module, and a first inversion module which are communicatively connected in sequence. The first symbol extraction module is communicatively connected to a bandpass filter, and the first inversion module is communicatively connected to a data packaging module.
[0009] The decoding module includes a second inversion module, a second symbol extraction module, and a decompression module which are sequentially communicatively connected. The second inversion module is electrically connected to the processor, and the decompression module is electrically connected to the DA circuit conversion module.
[0010] The second technical solution adopted by the present invention is an aviation audio coding and decoding method based on FPGA, including a coding method, which includes the following steps:
[0011] Step 1, obtain one channel of original audio of aviation airborne equipment through the Vol extension, the heading extension, and the compass extension, and perform amplitude modulation demodulation on the original audio to obtain three channels of analog audio, and input the three channels of analog audio into the AD circuit conversion module for analog-to-digital conversion to obtain three channels of digital audio;
[0012] Step 2: Input the three-channel digital audio into the audio filtering module for filtering, retain the audio signal of 200Hz-2700Hz, filter out the rest of the audio signal, input the retained audio signal into the encoding module for encoding, and obtain three channels of 8-bit audio;
[0013] Step 3: Input the three 8-bit audios into the data packing module for packing processing to form 32-bit ARINC429 transmission data.
[0014] The second technical solution of the present invention is also characterized in that:
[0015] In step 1, the amplitude modulation demodulation adopts the non-coherent demodulation method, and the absolute value of the AM signal of the original audio is taken through envelope detection, thereby mixing the input AM signal, and then demodulating the signal through low-pass filtering; when the three-channel analog audio is respectively input into the AD circuit conversion module for analog-to-digital conversion, if the sampling rate of the AD circuit conversion module is 14 bits, 14-bit audio is obtained; if the sampling rate of the AD circuit conversion module is not 14 bits, the three-channel digital audio obtained is normalized to 14-bit audio.
[0016] The encoding process in step 2 is:
[0017] In the encoding module, the sign bit of the digital audio is taken out by the first sign extraction module, and the numerical part of the digital audio is retained; the numerical part of the digital audio is hard-limited by the hard limiting module. For signals greater than 8159, the amplitude is unified to 8191, and the values of other signals are added with 33; the compression module compresses the numerical part of the digital audio according to the ITUG.711U rate rule table. The compression method is as follows:
[0018]
[0019] Wherein x represents the value of the digital audio, F(x) represents the value of the digital audio after the G.711U transformation, and u is 255; a compressed value is obtained, and the compressed value and the sign bit are concatenated into a compressed code; the compressed code is bitwise inverted through the first inversion module to obtain three channels of 8-bit audio.
[0020] The packaging process in step 3 is:
[0021] The three channels of 8-bit audio are packaged at a rate of 8K respectively. First, a 32-bit empty frame is prepared for the 8-bit audio, the first bit of the 32 bits is assigned to 1, and the compression code is assigned to the 9th to 2nd bits; then the compression code is assigned to the 17th to 10th bits; then the compression code is assigned to the 25th to 18th bits; finally, the 29th to 26th bits are spliced into a half byte. If the 8th to 5th bits are assigned to the 29th to 26th bits, the 29th bit is 1, and the half byte is the high half byte. If the 4th to 1st bits are assigned to the 29th to 26th bits, the 29th bit is 0, and the half byte is the low half byte; repeat the operation until 32-bit ARINC429 transmission data is formed.
[0022] The third technical solution adopted by the present invention is an aviation audio coding and decoding method based on FPGA, including a decoding method, which includes the following steps:
[0023] Step a, obtaining three channels of 8-bit compressed audio from external aviation equipment through a processor and inputting the three channels of 8-bit compressed audio into a decoding module for decoding respectively, taking out the sign bits of the three channels of 8-bit compressed audio during the decoding process, and obtaining three channels of original values after decoding;
[0024] Step b: input the three original values into the DA circuit conversion module respectively through the decoding module, and splice the original values with the corresponding sign bits to obtain three original audios.
[0025] The third technical solution of the present invention is also characterized in that:
[0026] The decoding process in step a is:
[0027] In the decoding module, the second inversion module is used to invert the bit, the sign bit of the 8-bit compressed audio is taken out by the second sign extraction module, and the numerical part of the 8-bit compressed audio is retained; the numerical part of the 8-bit compressed audio is decompressed by the decompression module according to the ITUG.711U rate rule table, and the decompression method is:
[0028]
[0029] Where y represents the numerical part of 8-bit compressed audio, F-1 (y) represents the original value after decompression, and u is 255; three original values are obtained.
[0030] The beneficial effects of the present invention are:
[0031] The invention utilizes the parallel processing capability of an FPGA processing unit to filter, encode and decode three-channel audio at the same time, with low delay and high efficiency. The FPGA processing unit is used to implement audio encoding and decoding of aviation airborne equipment, thereby saving extra power consumption, volume and cost, and facilitating system formation with an MCU or a DSP. The method of checking an ITU G.711 U rate rule table is used for compression and decompression, thereby improving resource utilization and efficiency of the FPGA processing unit. The audio signal is filtered before compression, retaining the sound frequency (200 Hz-2700 Hz) that can be heard by human ears, filtering out non-audio signals, and improving audio quality. Hard-limiting processing makes the audio smoother at the peak, thereby improving audio quality. The G.711 U rate is used to encode and decode the audio, an 8-bit sampling rate and a fixed bit rate of 64 kbps are used to compress 14-bit audio into 8-bit compressed audio, and nonlinear compression and quantization technology is used to achieve compression and transmission of audio data while ensuring sound quality, thereby effectively reducing the size of data, providing better sound quality and voice clarity under limited bandwidth, and meeting the requirements of aviation airborne equipment for low bit rate and high efficiency of audio. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a structural diagram of the aviation audio codec system based on FPGA of the present invention;
[0033] Figure 2 It is a working diagram of the SPI interface and the ARINC429 interface in the present invention.
[0034] In the figure, 1. Volt extension, 2. Heading extension, 3. Compass extension, 4. FPGA processing unit, 41. SPI interface, 42. Audio filtering module, 421. Bandpass filter, 43. Decoding module, 431. Second inversion module, 432. Second symbol extraction module, 433. Compression module, 44. Encoding module, 441. First symbol extraction module, 442. Hard limiting module, 443. Compression module, 444. First inversion module, 45. Data packaging module, 46. ARINC429 interface, 5. AD circuit conversion module, 6. Processor, 7. DA circuit conversion module. DETAILED DESCRIPTION
[0035] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0036] FPGA-based aviation audio codec system, refer to Figure 1, including an FPGA processing unit 4, the FPGA processing unit 4 includes an audio filtering module 42, an encoding module 44, and a data packaging module 45 which are sequentially connected in communication, the audio filtering module 42 is used to filter out out-of-band signals, the encoding module 44 is used to compress the filtered 8-bit audio, the data packaging module 45 is used to combine the 8-bit audio into ARINC429 transmission data, ARINC429 is a bus protocol for avionics transmission, the FPGA processing unit 4 also includes an SPI interface 41 and an ARINC429 interface 46, the ARINC429 interface is used to transmit the ARINC429 audio data to the audio processing unit of the aviation airborne equipment, the ARINC429 interface is a digital information transmission system DITS, adopts a bipolar return-to-zero three-state code method, two signal lines transmit a signal with opposite polarity, the system sampling rate is 8bit, the fixed bit rate is 64kbps, and the speed is 100k bps, the audio filtering module 42 is electrically connected to the AD circuit conversion module 5 through the SPI interface 41, the AD circuit conversion module 5 is used to convert analog audio into digital audio, the AD circuit conversion module 5 is electrically connected to the Vol extension 1, the heading extension 2, and the compass extension 3 respectively, the Vol extension 1 is used to solve the Vol direction and the original audio, the heading extension 2 is used to solve the heading deviation and the original audio, the compass extension 3 is used to solve the compass direction and the original audio, the FPGA processing unit 4 also includes an audio G.711U rate decoding module 43, the decoding module 43 is used to decode the 8-bit compressed audio into the original audio value, the decoding module 43 is electrically connected to the processor 6 through the SPI interface 41, the processor 6 is used to transmit the 8-bit compressed audio, the decoding module 43 is electrically connected to the DA circuit conversion module 7 through the ARINC429 interface 46, the DA circuit conversion module 7 is used to splice the original audio value with the sign bit to form an analog audio.
[0037] The audio filtering module 42 includes a bandpass filter 421, which is electrically connected to the AD circuit conversion module 5. The bandpass filter 421 is communicatively connected to the encoding module 44. The sampling rate of the bandpass filter 421 is 20KHz, the passband is 300Hz-2500Hz, the in-band attenuation is 1dB, and the out-of-band attenuation is 40dB. It has a strict linear phase-frequency characteristic, which can ensure the stable amplitude-frequency characteristic of the audio and provide speech with high clarity and naturalness; the encoding module 44 includes a first symbol extraction module 441, a hard limiting module 442, a compression module 443, and a first inversion module 444, which are communicatively connected in sequence. The first symbol extraction module 441 is communicatively connected to the bandpass filter 421, and the first inversion module 444 is communicatively connected to the data packaging module 45; the decoding module 43 includes a second inversion module 431, a second symbol extraction module 432, and a decompression module 433, which are communicatively connected in sequence. The second inversion module 431 is electrically connected to the processor 6, and the decompression module 433 is electrically connected to the DA circuit conversion module 7.
[0038] The aviation audio coding and decoding method based on FPGA includes a coding method, and the coding method includes the following steps:
[0039] Step 1, obtain one channel of original audio of aviation airborne equipment through Vol extension 1, heading extension 2, and compass extension 3, and demodulate the original audio by non-coherent demodulation method, take the absolute value of the AM signal of the original audio through envelope detection, thereby mixing the input AM signal, and then demodulate the signal through low-pass filtering to obtain three channels of analog audio, and input the three channels of analog audio into AD circuit conversion module 5 respectively for analog-to-digital conversion. If the sampling rate of AD circuit conversion module 5 is 14 bits, 14-bit audio is obtained; if the sampling rate of AD circuit conversion module 5 is not 14 bits, the obtained three channels of digital audio are normalized to 14-bit audio to obtain three channels of digital audio;
[0040] Step 2: Input the three channels of digital audio to the audio filter module 42 for filtering, retain the audio signal of 200Hz-2700Hz, filter out the rest of the audio signals, input the retained audio signal to the encoding module 44, extract the sign bit of the digital audio through the first sign extraction module 441 in the encoding module 44, and retain the numerical part of the digital audio; perform hard limiting on the numerical part of the digital audio through the hard limiting module 442, unify the amplitude to 8191 for signals greater than 8159, and add 33 to the values of other signals; compress the numerical part of the digital audio according to the ITUG.711U rate rule table by the compression module 443, and the compression method is as follows:
[0041]
[0042] Wherein x represents the value of the digital audio, F(x) represents the value of the digital audio after the G.711U transformation, and u is 255; a compressed value is obtained, and the compressed value and the sign bit are spliced into a compressed code; the compressed code is bitwise inverted by the first inversion module 444 to obtain three channels of 8-bit audio;
[0043] Step 3, input the three 8-bit audios into the data packing module 45 respectively, pack the three 8-bit audios at a rate of 8K respectively, first prepare a 32-bit empty frame for the 8-bit audio, assign the first bit of the 32 bits to 1, and assign the compression code to the 9th to 2nd bits; then assign the compression code to the 17th to 10th bits; then assign the compression code to the 25th to 18th bits; finally, splice the 29th to 26th bits into a half byte, if the 8th to 5th bits are assigned to the 29th to 26th bits, the 29th bit is 1, and the half byte is the high half byte, if the 4th to 1st bits are assigned to the 29th to 26th bits, the 29th bit is 0, and the half byte is the low half byte; repeat the operation, refer to Table 1, until 32-bit ARINC429 transmission data is formed.
[0044]
[0045] Table 1
[0046] In the table, LSB is the least significant bit of 8 bits, MSB is the most significant bit of 8 bits, N, N+1, N+2 are continuous 8-bit data, N+3 is half-byte data, Audio Bit is the first bit, and Low / Hi 1 / 2SampleIndication is a half-byte indication.
[0047] The aviation audio coding and decoding method based on FPGA includes a decoding method, and the decoding method includes the following steps:
[0048] Step a, obtain three channels of 8-bit compressed audio from external aviation equipment through the processor 6 and input the three channels of 8-bit compressed audio into the decoding module 43 respectively, in the decoding module 43, the second inversion module 431 performs bitwise inversion, the second sign extraction module 432 takes out the sign bit of the 8-bit compressed audio, and retains the numerical part of the 8-bit compressed audio; the decompression module 433 decompresses the numerical part of the 8-bit compressed audio according to the ITUG.711U rate rule table, and the decompression method is:
[0049]
[0050] Where y represents the numerical part of 8-bit compressed audio, F -1 (y) represents the original value after decompression, and u is 255; three original values are obtained;
[0051] Step b: input the three original values into the DA circuit conversion module 7 respectively through the decoding module 43, and splice the original values with the corresponding sign bits to obtain three original audios.
[0052] Embodiment 1:
[0053] The aviation audio codec system based on FPGA includes an FPGA processing unit 4, which includes an audio filter module 42, an encoding module 44, and a data packaging module 45 that are sequentially connected in communication. The FPGA processing unit 4 also includes an SPI interface 41 and an ARINC429 interface 46. The audio filter module 42 is electrically connected to an AD circuit conversion module 5 through the SPI interface 41. The AD circuit conversion module 5 is electrically connected to a Volt extension 1, a heading extension 2, and a compass extension 3, respectively. The FPGA processing unit 4 also includes a decoding module 43. The decoding module 43 is electrically connected to a processor 6 through the SPI interface 41. The decoding module 43 is electrically connected to a DA circuit conversion module 7 through the ARINC429 interface 46. The audio filter module 42 includes a bandpass filter 421 The bandpass filter 421 is electrically connected to the AD circuit conversion module 5, and the bandpass filter 421 is communicatively connected to the encoding module 44. The sampling rate of the bandpass filter 421 is 20KHz, the passband is 300Hz, the in-band attenuation is 1dB, and the out-of-band attenuation is 40dB; the encoding module 44 includes a first symbol extraction module 441, a hard limiting module 442, a compression module 443, and a first inversion module 444, which are communicatively connected in sequence. The first symbol extraction module 441 is communicatively connected to the bandpass filter 421, and the first inversion module 444 is communicatively connected to the data packaging module 45; the decoding module 43 includes a second inversion module 431, a second symbol extraction module 432, and a decompression module 433, which are communicatively connected in sequence. The second inversion module 431 is electrically connected to the processor 6, and the decompression module 433 is electrically connected to the DA circuit conversion module 7.
[0054] Embodiment 2:
[0055] The aviation audio codec system based on FPGA includes an FPGA processing unit 4, which includes an audio filter module 42, an encoding module 44, and a data packaging module 45 that are sequentially connected in communication. The FPGA processing unit 4 also includes an SPI interface 41 and an ARINC429 interface 46. The audio filter module 42 is electrically connected to an AD circuit conversion module 5 through the SPI interface 41. The AD circuit conversion module 5 is electrically connected to a Volt extension 1, a heading extension 2, and a compass extension 3, respectively. The FPGA processing unit 4 also includes a decoding module 43. The decoding module 43 is electrically connected to a processor 6 through the SPI interface 41. The decoding module 43 is electrically connected to a DA circuit conversion module 7 through an ARINC429 interface 46, the audio filter module 42 includes a bandpass filter 421, the bandpass filter 421 is electrically connected to the AD circuit conversion module 5, the bandpass filter 421 is communicatively connected to the encoding module 44, the sampling rate of the bandpass filter 421 is 20KHz, the passband is 1400Hz, the in-band attenuation is 1dB, and the out-of-band attenuation is 40dB; the decoding module 43 includes a second negation module 431, a second symbol extraction module 432, and a decompression module 433, which are communicatively connected in sequence, the second negation module 431 is electrically connected to the processor 6, and the decompression module 433 is electrically connected to the DA circuit conversion module 7.
[0056] Embodiment 3:
[0057] The aviation audio codec system based on FPGA includes an FPGA processing unit 4, which includes an audio filter module 42, an encoding module 44, and a data packaging module 45 that are sequentially connected in communication. The FPGA processing unit 4 also includes an SPI interface 41 and an ARINC429 interface 46. The audio filter module 42 is electrically connected to an AD circuit conversion module 5 through the SPI interface 41. The AD circuit conversion module 5 is electrically connected to a Volt extension 1, a heading extension 2, and a compass extension 3, respectively. The FPGA processing unit 4 also includes a decoding module 43. The decoding module 43 is electrically connected to a processor 6 through the SPI interface 41. The decoding module 43 is electrically connected to a processor 6 through the ARINC429 interface 46. The C429 interface 46 is electrically connected to the DA circuit conversion module 7, the audio filter module 42 includes a bandpass filter 421, the bandpass filter 421 is electrically connected to the AD circuit conversion module 5, the bandpass filter 421 is communicatively connected to the encoding module 44, the sampling rate of the bandpass filter 421 is 20KHz, the passband is 2500Hz, the in-band attenuation is 1dB, and the out-of-band attenuation is 40dB; the encoding module 44 includes a first symbol extraction module 441, a hard limiting module 442, a compression module 443, and a first inversion module 444, which are communicatively connected in sequence, the first symbol extraction module 441 is communicatively connected to the bandpass filter 421, and the first inversion module 444 is communicatively connected to the data packaging module 45.
[0058] Embodiment 4:
[0059] The aviation audio coding and decoding method based on FPGA includes a coding method, and the coding method includes the following steps:
[0060] Step 1, obtain one channel of original audio of aviation airborne equipment through Vol extension 1, heading extension 2, and compass extension 3, and demodulate the original audio by non-coherent demodulation method, take the absolute value of the AM signal of the original audio through envelope detection, thereby mixing the input AM signal, and then demodulate the signal through low-pass filtering to obtain three channels of analog audio, and input the three channels of analog audio into AD circuit conversion module 5 for analog-to-digital conversion respectively. The sampling rate of AD circuit conversion module 5 is 14 bits, and three channels of digital audio are obtained;
[0061] Step 2: Input the three channels of digital audio to the audio filter module 42 for filtering, retain the audio signal of 200Hz-2700Hz, filter out the rest of the audio signals, input the retained audio signal to the encoding module 44, extract the sign bit of the digital audio through the first sign extraction module 441 in the encoding module 44, and retain the numerical part of the digital audio; perform hard limiting on the numerical part of the digital audio through the hard limiting module 442, unify the amplitude to 8191 for signals greater than 8159, and add 33 to the values of other signals; compress the numerical part of the digital audio according to the ITUG.711U rate rule table by the compression module 443, and the compression method is as follows:
[0062]
[0063] Wherein x represents the value of the digital audio, F(x) represents the value of the digital audio after the G.711U transformation, and u is 255; a compressed value is obtained, and the compressed value and the sign bit are spliced into a compressed code; the compressed code is bitwise inverted by the first inversion module 444 to obtain three channels of 8-bit audio;
[0064] Step 3, input the three 8-bit audios into the data packing module 45 respectively, pack the three 8-bit audios at a rate of 8K respectively, first prepare a 32-bit empty frame for the 8-bit audio, assign the first bit of the 32 bits to 1, and assign the compression code to the 9th to 2nd bits; then assign the compression code to the 17th to 10th bits; then assign the compression code to the 25th to 18th bits; finally, splice the 29th to 26th bits into a half byte, if the 8th to 5th bits are assigned to the 29th to 26th bits, the 29th bit is 1, and the half byte is the high half byte, if the 4th to 1st bits are assigned to the 29th to 26th bits, the 29th bit is 0, and the half byte is the low half byte; repeat the operation until 32-bit ARINC429 transmission data is formed.
[0065] Embodiment 5:
[0066] The aviation audio coding and decoding method based on FPGA includes a decoding method, and the decoding method includes the following steps:
[0067] Step a, obtain three channels of 8-bit compressed audio from external aviation equipment through the processor 6 and input the three channels of 8-bit compressed audio into the decoding module 43 respectively, in the decoding module 43, the second inversion module 431 performs bitwise inversion, the second sign extraction module 432 takes out the sign bit of the 8-bit compressed audio, and retains the numerical part of the 8-bit compressed audio; the decompression module 433 decompresses the numerical part of the 8-bit compressed audio according to the ITUG.711U rate rule table, and the decompression method is:
[0068]
[0069] Where y represents the numerical part of 8-bit compressed audio, F -1 (y) represents the original value after decompression, and u is 255; three original values are obtained;
[0070] Step b: input the three original values into the DA circuit conversion module 7 respectively through the decoding module 43, and splice the original values with the corresponding sign bits to obtain three original audios.
Claims
1. The aviation audio codec system based on FPGA is characterized by: The invention comprises an FPGA processing unit (4), wherein the FPGA processing unit (4) comprises an audio filter module (42), an encoding module (44), and a data packaging module (45) which are sequentially communicatively connected. The FPGA processing unit (4) further comprises an SPI interface (41) and an ARINC429 interface (46). The audio filter module (42) is electrically connected to an AD circuit conversion module (5) via the SPI interface (41). The AD circuit conversion module (5) is electrically connected to a Volt extension unit (1), a heading extension unit (2), and a compass extension unit (3). The FPGA processing unit (4) further comprises a decoding module (43). The decoding module (43) is electrically connected to a processor (6) via the SPI interface (41). The decoding module (43) is electrically connected to a DA circuit conversion module (7) via the ARINC429 interface (46).
2. The FPGA-based aviation audio codec system according to claim 1, characterized in that: The audio filter module (42) comprises a bandpass filter (421), the bandpass filter (421) is electrically connected to the AD circuit conversion module (5), the bandpass filter (421) is communicatively connected to the encoding module (44), the sampling rate of the bandpass filter (421) is 20 kHz, the passband is 300 Hz-2500 Hz, the in-band attenuation is 1 dB, and the out-of-band attenuation is 40 dB.
3. The FPGA-based aviation audio codec system according to claim 2, characterized in that: The encoding module (44) comprises a first symbol extraction module (441), a hard limiting module (442), a compression module (443), and a first inversion module (444) which are communicatively connected in sequence, wherein the first symbol extraction module (441) is communicatively connected to a bandpass filter (421), and the first inversion module (444) is communicatively connected to a data packaging module (45).
4. The FPGA-based aviation audio codec system according to claim 1, characterized in that: The decoding module (43) comprises a second negation module (431), a second symbol extraction module (432), and a decompression module (433) which are communicatively connected in sequence, the second negation module (431) is electrically connected to the processor (6), and the decompression module (433) is electrically connected to the DA circuit conversion module (7).
5. The aviation audio encoding and decoding method based on FPGA is characterized in that: The FPGA-based aviation audio codec system according to claim 3 includes a coding method, which includes the following steps: Step 1, obtaining one channel of original audio from an aviation airborne device through the Vol extension (1), the heading extension (2), and the compass extension (3), and performing amplitude modulation demodulation on the original audio to obtain three channels of analog audio, and inputting the three channels of analog audio into an AD circuit conversion module (5) for analog-to-digital conversion to obtain three channels of digital audio; Step 2, input the three channels of digital audio to the audio filtering module (42) for filtering, retain the audio signals of 200 Hz-2700 Hz, filter out the remaining audio signals, input the retained audio signals to the encoding module (44) for encoding, and obtain three channels of 8-bit audio; Step 3: input the three 8-bit audios into the data packing module (45) for packing processing to form 32-bit ARINC429 transmission data.
6. The aviation audio encoding and decoding method based on FPGA according to claim 5, characterized in that: In step 1, the AM demodulation adopts a non-coherent demodulation method, and the absolute value of the AM signal of the original audio is taken through envelope detection, thereby mixing the input AM signal, and then demodulating the signal through low-pass filtering; when the three-channel analog audio is respectively input into the AD circuit conversion module (5) for analog-to-digital conversion, if the sampling rate of the AD circuit conversion module (5) is 14 bits, 14-bit audio is obtained; if the sampling rate of the AD circuit conversion module (5) is not 14 bits, the obtained three-channel digital audio is normalized to 14-bit audio.
7. The aviation audio encoding and decoding method based on FPGA according to claim 5, characterized in that: The encoding process in step 2 is: In the encoding module (44), the sign bit of the digital audio is extracted by the first sign extraction module (441), and the numerical part of the digital audio is retained; the numerical part of the digital audio is hard-limited by the hard limiting module (442), and the amplitude of the signal greater than 8159 is unified to 8191, and the values of other signals are increased by 33; the compression module (443) compresses the numerical part of the digital audio according to the ITUG.711U rate rule table, and the compression method is as follows: Wherein x represents the value of the digital audio, F(x) represents the value of the digital audio after the G.711U transformation, and u takes the value of 255; a compressed value is obtained, and the compressed value and a sign bit are spliced into a compressed code; and the compressed code is bitwise inverted by a first inversion module (444) to obtain three channels of 8-bit audio.
8. The aviation audio encoding and decoding method based on FPGA according to claim 7, characterized in that: The packaging process in step 3 is: The three channels of 8-bit audio are packaged at a rate of 8K respectively. First, a 32-bit empty frame is prepared for the 8-bit audio, the first bit of the 32 bits is assigned to 1, and the compression code is assigned to the 9th to 2nd bits; then the compression code is assigned to the 17th to 10th bits; then the compression code is assigned to the 25th to 18th bits; finally, the 29th to 26th bits are spliced into a half byte. If the 8th to 5th bits are assigned to the 29th to 26th bits, the 29th bit is 1, and the half byte is the high half byte. If the 4th to 1st bits are assigned to the 29th to 26th bits, the 29th bit is 0, and the half byte is the low half byte; repeat the operation until 32-bit ARINC429 transmission data is formed.
9. The aviation audio encoding and decoding method based on FPGA is characterized in that: The FPGA-based aviation audio codec system according to claim 4 includes a decoding method, which includes the following steps: Step a, obtaining three channels of 8-bit compressed audio from external aviation equipment through a processor (6) and inputting the three channels of 8-bit compressed audio into a decoding module (43) for decoding respectively, taking out the sign bits of the three channels of 8-bit compressed audio during the decoding process, and obtaining three channels of original values after decoding; Step b, respectively inputting the three-channel original numerical values into the DA circuit conversion module (7) through the decoding module (43), splicing the original numerical values with the corresponding sign bits, and obtaining three channels of original audio.
10. The aviation audio encoding and decoding method based on FPGA according to claim 9, characterized in that: The decoding process in step a is: In the decoding module (43), the second inversion module (431) performs bitwise inversion, the second sign extraction module (432) extracts the sign bit of the 8-bit compressed audio, and retains the numerical part of the 8-bit compressed audio; the decompression module (433) decompresses the numerical part of the 8-bit compressed audio according to the ITUG.711U rate rule table, and the decompression method is: Where y represents the numerical part of 8-bit compressed audio, F -1 (y) represents the original value after decompression, and u is 255; three original values are obtained.
