CN101800587A - PCM code stream simulator with two working modes and FPGA working method in simulator - Google Patents

PCM code stream simulator with two working modes and FPGA working method in simulator Download PDF

Info

Publication number
CN101800587A
CN101800587A CN200910312608A CN200910312608A CN101800587A CN 101800587 A CN101800587 A CN 101800587A CN 200910312608 A CN200910312608 A CN 200910312608A CN 200910312608 A CN200910312608 A CN 200910312608A CN 101800587 A CN101800587 A CN 101800587A
Authority
CN
China
Prior art keywords
data
mode
remote control
framing
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910312608A
Other languages
Chinese (zh)
Other versions
CN101800587B (en
Inventor
赵光权
彭宇
马云彤
郑博
彭喜元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology
Original Assignee
Harbin Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN2009103126087A priority Critical patent/CN101800587B/en
Publication of CN101800587A publication Critical patent/CN101800587A/en
Application granted granted Critical
Publication of CN101800587B publication Critical patent/CN101800587B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a PCM code stream simulator with two working modes and FPGA working method in simulator, relating to the satellite test field. The invention solves the problems that the existing satellite PCM code stream simulator is single in function and can not have two working modes of satellite PCM code stream simulator and utilization rate of satellite PCM code stream simulator is low. The FPGA interior of the invention is solidified with a G-RS485 data stream receiving module, a mode selection module, a measurement and control mode module and a central computer model module. The FPGA working method of the invention includes seven working processes. The invention is applicable to small satellite PCM code stream test.

Description

FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations and the simulator
Technical field
The present invention relates to the satellite test field, be specifically related to FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations and the simulator.
Background technology
Pulse code modulation (Pulse-coded Modulation PCM) is a kind of particular modulation scheme of representing signal message with code.In satellite pcm stream test, the pcm stream communication as shown in Figure 1, on the star central computer earthward detection and control terminal send remote measurement TM data, ground observing and controlling terminal central computer on star sends remote control TC data.Present satellite pcm stream simulator, a kind of mode of operation be on the simulation star central computer earthward detection and control terminal send remote measurement TM data, another kind of mode of operation is that simulation ground observing and controlling terminal central computer on star sends remote control TC data, but present satellite pcm stream simulator function singleness, can not have two kinds of mode of operations of satellite pcm stream simulator concurrently, this makes that satellite pcm stream simulator utilance is low, has also improved the testing equipment cost simultaneously.
Summary of the invention
In order to solve existing satellite pcm stream simulator function singleness, can not to have two kinds of mode of operations of satellite pcm stream simulator concurrently and cause the low problem of satellite pcm stream simulator utilance, the invention provides FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations and the simulator.
A kind of pcm stream simulator of the present invention with two kinds of mode of operations, it comprises dispatching first communication interface, the one RS485 level transferring chip, FPGA, the first pcm stream level transferring chip, central computer communication interface/detection and control terminal communication interface, the second pcm stream level transferring chip, the 2nd RS485 level transferring chip and dispatching second communication interface, the signal output part of dispatching first communication interface is connected to the signal input part of a RS485 level transferring chip through the G-RS485 path, the signal output part of the one RS485 level transferring chip is connected to first signal input part of FPGA, first signal output part of FPGA is connected to the signal input part of the first pcm stream level transferring chip, the signal output part of the first pcm stream level transferring chip is connected to the signal input part of central computer communication interface/detection and control terminal communication interface through the TC/TM path, the signal output part of central computer communication interface/detection and control terminal communication interface is connected to the signal input part of the second pcm stream level transferring chip through the TM/TC path, the signal output part of the second pcm stream level transferring chip is connected to the secondary signal input of FPGA, the secondary signal output of FPGA leads to the signal input part of receiving the 2nd RS485 level transferring chip, the signal output part of the 2nd RS485 level transferring chip is connected to the signal input part of dispatching second communication interface through the P-RS485 path, the FPGA inside solidification has G-RS485 data flow receiver module, mode selection module, observing and controlling mode module and central computer mode module, described G-RS485 data flow receiver module inside solidification has long frame receiver module of G-RS485 and FIFO, the long frame receiver module of described G-RS485 inside solidification has string and conversion submodule and the long frame receiver module of G-RS485 host state machine, and described string and conversion submodule inside solidification have the long frame receiver module of G-RS485 from state machine; Described mode selection module inside solidification has mode of operation to select host state machine; Described observing and controlling mode module inside solidification has remote control TC framing module and remote measurement TM decoding framing module, described remote control TC framing inside modules is solidified with the remote control TC command status machine that sends, remote measurement TM decoding framing inside modules is solidified with and receives remote measurement TM data mode machine, sends remote control TC command status machine and receive the concurrent working of remote measurement TM data mode machine to have constituted observing and controlling pattern host state machine; Described central computer mode module inside solidification has remote measurement TM framing module and remote control TC decoding framing module, described remote measurement TM framing inside modules is solidified with the remote measurement TM command status machine that sends, remote control TC decoding framing inside modules is solidified with and receives remote control TC data mode machine, sends remote measurement TM command status machine and receive the concurrent working of remote control TC data mode machine to have constituted central computer pattern host state machine;
The long frame receiver module of G-RS485 is from state machine, is used to receive the byte serial data of RS485 level transferring chip output, and the byte serial data is converted to parallel data is sent to the long frame receiver module of G-RS485 host state machine; The long frame receiver module of G-RS485 host state machine, be used to receive the parallel data of the long frame receiver module of G-RS485 from state machine output, described parallel data is carried out the adding up and judge of the reading of interpretation, frame length, verification of frame head, and send frame length parameter to mode of operation and select host state machine; Mode of operation is selected host state machine, is used for the received frame long parameter, described frame length parameter is carried out the frame length parameter read and the judgment task pattern, and send the mode of operation parameter to observing and controlling pattern host state machine or central computer pattern host state machine; Transmission remote control TC command status machine in the observing and controlling pattern host state machine, be used for receiving mode of operation and select the remote control TC instruction of the mode of operation parameter of host state machine output, and the data framing of described remote control TC instruction encoded be sent to the first pcm stream level transferring chip; Reception remote measurement TM data mode machine in the observing and controlling pattern host state machine is used to receive the remote measurement TM data that the second pcm stream level transferring chip is exported, and described remote measurement TM data decode framing is sent to the 2nd RS485 level transferring chip; Transmission remote measurement TM command status machine in the central computer pattern host state machine, be used for receiving mode of operation and select the remote measurement TM instruction of the mode of operation parameter of host state machine output, and the data framing of described remote measurement TM instruction encoded be sent to the first pcm stream level transferring chip; Reception remote control TC data mode machine in the central computer pattern host state machine is used to receive the remote control TC data that the second pcm stream level transferring chip is exported, and described remote control TC data decode framing is sent to the 2nd RS485 level transferring chip.
FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations of the present invention, it comprises that seven long frame receiver modules of the logic state machine course of work: G-RS485 select the host state machine course of work, send the remote control TC command status machine course of work, receive the remote measurement TM data mode machine course of work, send the remote measurement TM command status machine course of work and receive the remote control TC data mode machine course of work from the state machine course of work, the long frame receiver module of the G-RS485 host state machine course of work, mode of operation.
Beneficial effect of the present invention: the invention provides a kind of pcm stream simulator that has two kinds of mode of operations concurrently, can either simulate pcm stream on the star, can simulate ground observing and controlling terminal pcm stream again, improve the utilance of pcm stream simulator, reduce the testing equipment cost simultaneously.
Description of drawings
Fig. 1 is a pcm stream communication schematic diagram in the test of satellite pcm stream, Fig. 2 is existing principle schematic with pcm stream simulator of a kind of mode of operation, Fig. 3 is the theory structure schematic diagram of FPGA3, Fig. 4 is a sign indicating number type explanation schematic diagram of the present invention, Fig. 5 is that the long frame receiver module of G-RS485 of the present invention is from state machine course of work schematic diagram, Fig. 6 is the long frame receiver module of a G-RS485 of the present invention host state machine course of work schematic diagram, Fig. 7 is that mode of operation of the present invention is selected host state machine course of work schematic diagram, Fig. 8 is a transmission remote control TC command status machine course of work schematic diagram of the present invention, Fig. 9 is a reception remote measurement TM data mode machine course of work schematic diagram of the present invention, Figure 10 is a transmission remote measurement TM command status machine course of work schematic diagram of the present invention, and Figure 11 is a reception remote control TC data mode machine course of work schematic diagram of the present invention.
Embodiment
Embodiment one: specify present embodiment according to Figure of description 2 and Fig. 3, the described a kind of pcm stream simulator of present embodiment with two kinds of mode of operations, it is based on, and pcm stream simulator with a kind of mode of operation realizes, described simulator comprises dispatching first communication interface 1, the one RS485 level transferring chip 2, FPGA3, the first pcm stream level transferring chip 4, central computer communication interface/detection and control terminal communication interface 5, the second pcm stream level transferring chip 6, the 2nd RS485 level transferring chip 7 and dispatching second communication interface 8, the signal output part of dispatching first communication interface 1 is connected to the signal input part of a RS485 level transferring chip 2 through G-RS485 path A, the signal output part of the one RS485 level transferring chip 2 is connected to first signal input part of FPGA3, first signal output part of FPGA3 is connected to the signal input part of the first pcm stream level transferring chip 4, the signal output part of the first pcm stream level transferring chip 4 is connected to the signal input part of central computer communication interface/detection and control terminal communication interface 5 through TC/TM path B, the signal output part of central computer communication interface/detection and control terminal communication interface 5 is connected to the signal input part of the second pcm stream level transferring chip 6 through TM/TC path C, the signal output part of the second pcm stream level transferring chip 6 is connected to the secondary signal input of FPGA3, the secondary signal output of FPGA3 leads to the signal input part of receiving the 2nd RS485 level transferring chip 7, the signal output part of the 2nd RS485 level transferring chip 7 is connected to the signal input part of dispatching second communication interface 8 through P-RS485 path D, the FPGA3 inside solidification has G-RS485 data flow receiver module 3-1, mode selection module 3-2, observing and controlling mode module 3-3 and central computer mode module 3-4, described G-RS485 data flow receiver module 3-1 inside solidification has G-RS485 long frame receiver module 3-11 and FIFO3-12, the long frame receiver module of described G-RS485 3-11 inside solidification has string and conversion submodule 3-111 and the long frame receiver module of G-RS485 host state machine 3-112, and described string and conversion submodule 3-111 inside solidification have the long frame receiver module of G-RS485 from state machine 3-1111; Described mode selection module 3-2 inside solidification has mode of operation to select host state machine 3-21; Described observing and controlling mode module 3-3 inside solidification has remote control TC framing module 3-31 and remote measurement TM decoding framing module 3-32, described remote control TC framing module 3-31 inside solidification has the remote control of transmission TC command status machine 3-311, remote measurement TM decoding framing module 3-32 inside solidification has the remote measurement of reception TM data mode machine 3-321, sends remote control TC command status machine 3-311 and receive remote measurement TM data mode machine 3-321 concurrent working to have constituted observing and controlling pattern host state machine; Described central computer mode module 3-4 inside solidification has remote measurement TM framing module 3-41 and remote control TC decoding framing module 3-42, described remote measurement TM framing module 3-41 inside solidification has the remote measurement of transmission TM command status machine 3-411, remote control TC decoding framing module 3-42 inside solidification has the remote control of reception TC data mode machine 3-421, sends remote measurement TM command status machine 3-411 and receive remote control TC data mode machine 3-421 concurrent working to have constituted central computer pattern host state machine; The long frame receiver module of G-RS485 is from state machine 3-1111, is used to receive the byte serial data of a RS485 level transferring chip 2 outputs, and the byte serial data is converted to parallel data is sent to the long frame receiver module of G-RS485 host state machine 3-112; The long frame receiver module of G-RS485 host state machine 3-112, be used to receive the parallel data of the long frame receiver module of G-RS485 from state machine 3-1111 output, described parallel data is carried out the adding up and judge of the reading of interpretation, frame length, verification of frame head, and send frame length parameter to mode of operation and select host state machine 3-21; Mode of operation is selected host state machine 3-21, is used for the received frame long parameter, described frame length parameter is carried out the frame length parameter read and the judgment task pattern, and send the mode of operation parameter to observing and controlling pattern host state machine or central computer pattern host state machine; Transmission remote control TC command status machine 3-311 in the observing and controlling pattern host state machine, be used for receiving mode of operation and select the remote control TC instruction of the mode of operation parameter of host state machine 3-21 output, and the data framing of described remote control TC instruction encoded be sent to the first pcm stream level transferring chip 4; Reception remote measurement TM data mode machine 3-321 in the observing and controlling pattern host state machine is used to receive the remote measurement TM data that the second pcm stream level transferring chip 6 is exported, and described remote measurement TM data decode framing is sent to the 2nd RS485 level transferring chip 7; Transmission remote measurement TM command status machine 3-411 in the central computer pattern host state machine, be used for receiving mode of operation and select the remote measurement TM instruction of the mode of operation parameter of host state machine 3-21 output, and the data framing of described remote measurement TM instruction encoded be sent to the first pcm stream level transferring chip 4; Reception remote control TC data mode machine 3-421 in the central computer pattern host state machine is used to receive the remote control TC data that the second pcm stream level transferring chip 6 is exported, and described remote control TC data decode framing is sent to the 2nd RS485 level transferring chip 7.
In the present embodiment, central computer communication interface/detection and control terminal communication interface 5 both can be connected with central computer, also can be connected with detection and control terminal.
In the present embodiment, central computer communication interface/detection and control terminal communication interface 5 leading indicators are as follows:
1) PCM sign indicating number type: NRZ-L (non-return-to-zero level sign indicating number), NRZ-M (the non-return-to-zero mark code is changed to 1, is not changed to 0), per 8 bits are formed 1 byte, and are high-order preceding, low level after, for long word, pass upper byte earlier, the back passes low byte;
PCM sign indicating number type explanation: as shown in Figure 4, non-return-to-zero level sign indicating number (NRZ-L), the digital code position is represented with low level during for " 0 ", the sign indicating number position is represented with high level during for " 1 ", perhaps conversely also can, can freely define by the designer; NRZM non-return-to-zero mark sign indicating number (NRZ-M) rule change is: when the sign indicating number position was " 1 ", level had a transition; When the sign indicating number position is " 0 ", the level no change.
Embodiment two: present embodiment is the FPGA method of work in the described a kind of pcm stream simulator with two kinds of mode of operations of embodiment one, and it comprises that seven long frame receiver modules of the course of work: G-RS485 select the host state machine course of work, send the remote control TC command status machine course of work, receive the remote measurement TM data mode machine course of work, send the remote measurement TM command status machine course of work and receive the remote control TC data mode machine course of work from the state machine course of work, the long frame receiver module of the G-RS485 host state machine course of work, mode of operation.
Embodiment three: specify present embodiment according to Figure of description 5, present embodiment is that the long frame receiver module of the G-RS485 described in the embodiment two comprises three states from the state machine course of work to the further specifying of embodiment two: Idle state, judge valid data position state and byte string and transition status;
In idle condition, wait for that the byte serial data arrives, when the byte serial data arrives, enter and judge valid data position state;
Judging valid data position state, each bits of serial data of byte serial data is carried out three times samples and at least twice identical logical value in the sampling results is sent as effective value, when each serial data Bit Significance of byte serial data sends completely, enter byte string and transition status;
At byte string and transition status, receive each bits of serial data of byte serial data, when each serial data Bit Significance of byte serial data receives, the byte serial data is sent with parallel data form, finish when the byte serial data sends with parallel data form, return idle condition.
Embodiment four: specify present embodiment according to Figure of description 6, present embodiment is that the long frame receiver module of the G-RS485 described in the embodiment two host state machine course of work comprises seven states to the further specifying of embodiment two: idle condition, judge synchronous head state, verification and cumulative data state, receive version number's state, the received frame long status, receive parameter and deposit fifo status and clear FIFO combinational circuit state in;
In idle condition, wait for that parallel data arrives, when parallel data arrives, enter to judge the synchronous head state;
Judging the synchronous head state, judge whether synchronous head is correct, when synchronous head is correct, send synchronous head frame head valid data, and wait for the follow-up data useful signal, if the follow-up data useful signal arrives, then enter the version number's state that receives, simultaneously the follow-up data useful signal is sent to verification and accumulator register, enter verification and cumulative data state; When the synchronous head mistake, send the synchronous head invalid signals, finish when sending the synchronous head invalid signals, return idle condition;
At verification and cumulative data state, receive the follow-up data useful signal and carry out verification and add up, when the verification of follow-up data useful signal frame length is effective, return idle condition, when the verification of follow-up data useful signal frame length is invalid, send the verification invalid signals, enter FIFO combinational circuit state clearly;
Receiving version number's state, receiving version number and judge whether version number is correct, when version number was correct, trade edition this shop useful signal entered the received frame long status, and when version number's mistake, trade edition this shop invalid signals enters FIFO combinational circuit state clearly;
At the received frame long status, the received frame slab is when the received frame slab finishes, enter the reception parameter and deposit fifo status in, deposit fifo status in, will deposit FIFO in about the frame length parameter of frame length number in the reception parameter, finish when the frame length parameter deposits FIFO in, return idle condition;
At clear FIFO combinational circuit state, receive verification invalid signals and version number's invalid signals, when verification invalid signals and version number's invalid signals receive, output FIFO empties signal, returns idle condition.
Embodiment five: specify present embodiment according to Figure of description 7, present embodiment is to the further specifying of embodiment two, and the mode of operation described in the embodiment two selects the host state machine course of work to comprise one of four states: wait for the frame length parameter state, read frame length parameter state, observing and controlling mode state and central computer mode state;
Waiting for the frame length parameter state, waiting for that the frame length parameter arrives, and when the frame length parameter arrives, enters and reads the frame length parameter state;
Reading the frame length parameter state, read frame length parameter and judgment task mode parameter, when the mode of operation parameter is default or is the observing and controlling mode parameter, enter the observing and controlling mode state, when the mode of operation parameter is the central computer mode parameter, enter the central computer mode state;
At the observing and controlling mode state, send remote control TC instruction and receive remote measurement TM data, finish when sending remote control TC instruction and receiving remote measurement TM data, return idle condition;
At the central computer mode state, send remote measurement TM instruction and receive remote control TC data, finish when sending remote measurement TM instruction and receiving remote control TC data, return idle condition.
In the present embodiment, the agreement of PCM data injection parameter is the frame length that the one or two byte parameter is represented this frame, and the 3rd byte parameter represented the work at present pattern, and the 4th is relevant parameter later on.
Embodiment six: specify present embodiment according to Figure of description 8, present embodiment is that the transmission remote control TC command status machine course of work described in the embodiment two comprises three states to the further specifying of embodiment two: wait for the G-RS485 path remote control TC command status, extract remote control TC director data framing state and coding sends remote control TC command status;
In the remote control TC command status of waiting for the G-RS485 path, wait for the arrival of remote control TC instruction, when remote control TC instruction arrives, enter the remote control TC director data framing state that extracts;
Extracting remote control TC director data framing state, extract the data framing of remote control TC instruction, when the data framing that extracts remote control TC instruction finishes, enter coding and send remote control TC command status;
Send remote control TC command status at coding, with transmissions of encoding of the data framing of remote control TC instruction, encoding to send when the data framing of remote control TC instruction finishes, and returns wait remote control TC command status.
The G-RS485 Path Protocol of G-RS485 path A is followed successively by synchronous head in the present embodiment, protocol version, these frame data length, PCM device number, relevant parameter, at last for verification and.
Embodiment seven: specify present embodiment according to Figure of description 9, present embodiment is that the reception remote measurement TM data mode machine course of work described in the embodiment two comprises three states to the further specifying of embodiment two: wait for remote measurement TM data mode, the remote measurement TM data decode framing state of TM/TC path and send remote measurement TM data decode framing state;
In the remote measurement TM data mode of waiting for the TM/TC path, wait for that remote measurement TM data arrive, and when remote measurement TM data arrive, enter remote measurement TM data decode framing state;
At remote measurement TM data decode framing state,,, enter the remote measurement TM data decode framing state that sends when remote measurement TM data decode framing finishes to the remote measurement TM data framing of decoding;
Sending remote measurement TM data decode framing state, send remote measurement TM data decode framing by P-RS485 path D, when sending, remote measurement TM data decode framing finishes, return the remote measurement TM data mode of waiting for the TM/TC path.
Embodiment eight: specify present embodiment according to Figure of description 10, present embodiment is that the transmission remote measurement TM command status machine course of work described in the embodiment two comprises three states to the further specifying of embodiment two: wait for the G-RS485 path remote measurement TM command status, extract remote measurement TM director data framing state and coding sends remote measurement TM command status;
In the remote measurement TM command status of waiting for the G-RS485 path, wait for the arrival of remote measurement TM instruction, when remote measurement TM instruction arrives, enter the remote measurement TM director data framing state that extracts;
Extracting remote measurement TM director data framing state, extract the data framing of remote measurement TM instruction, when the data framing that extracts remote measurement TM instruction finishes, enter coding and send remote measurement TM command status;
Send remote measurement TM command status at coding, with transmissions of encoding of the data framing of remote measurement TM instruction, encoding to send when the data framing of remote measurement TM instruction finishes, and returns wait remote measurement TM command status.
Embodiment nine: specify present embodiment according to Figure of description 11, present embodiment is that the reception remote control TC data mode machine course of work described in the embodiment two comprises three states to the further specifying of embodiment two: wait for remote control TC data mode, the remote control TC data decode framing state of TM/TC path and send remote control TC data decode framing state;
In the remote control TC data mode of waiting for the TM/TC path, wait for that remote control TC data arrive, and when remote control TC data arrive, enter remote control TC data decode framing state;
At remote control TC data decode framing state,,, enter the remote control TC data decode framing state that sends when remote control TC data decode framing finishes to the remote control TC data framing of decoding;
Sending remote control TC data decode framing state, send remote control TC data decode framing by P-RS485 path D, when sending, remote control TC data decode framing finishes, return the remote control TC data mode of waiting for the TM/TC path.

Claims (9)

1. pcm stream simulator with two kinds of mode of operations, it comprises dispatching first communication interface (1), the one RS485 level transferring chip (2), FPGA (3), the first pcm stream level transferring chip (4), central computer communication interface/detection and control terminal communication interface (5), the second pcm stream level transferring chip (6), the 2nd RS485 level transferring chip (7) and dispatching second communication interface (8), the signal output part of dispatching first communication interface (1) is connected to the signal input part of a RS485 level transferring chip (2) through G-RS485 path (A), the signal output part of the one RS485 level transferring chip (2) is connected to first signal input part of FPGA (3), first signal output part of FPGA (3) is connected to the signal input part of the first pcm stream level transferring chip (4), the signal output part of the first pcm stream level transferring chip (4) is connected to the signal input part of central computer communication interface/detection and control terminal communication interface (5) through TC/TM path (B), the signal output part of central computer communication interface/detection and control terminal communication interface (5) is connected to the signal input part of the second pcm stream level transferring chip (6) through TM/TC path (C), the signal output part of the second pcm stream level transferring chip (6) is connected to the secondary signal input of FPGA (3), the secondary signal output of FPGA (3) leads to the signal input part of receiving the 2nd RS485 level transferring chip (7), the signal output part of the 2nd RS485 level transferring chip (7) is connected to the signal input part of dispatching second communication interface (8) through P-RS485 path (D)
It is characterized in that FPGA (3) inside solidification has G-RS485 data flow receiver module (3-1), mode selection module (3-2), observing and controlling mode module (3-3) and central computer mode module (3-4),
Described G-RS485 data flow receiver module (3-1) inside solidification has long frame receiver module of G-RS485 (3-11) and FIFO (3-12), the long frame receiver module of described G-RS485 (3-11) inside solidification has string and conversion submodule (3-111) and the long frame receiver module of G-RS485 host state machine (3-112), described string and conversion submodule (3-111) inside solidification have the long frame receiver module of G-RS485 from state machine (3-1111)
Described mode selection module (3-2) inside solidification has mode of operation to select host state machine (3-21),
Described observing and controlling mode module, (3-3) inside solidification has remote control TC framing module, (3-31) with remote measurement TM decoding framing module, (3-32), described remote control TC framing module, (3-31) inside solidification has the remote control of transmission TC command status machine, (3-311), remote measurement TM decoding framing module, (3-32) inside solidification has the remote measurement of reception TM data mode machine, (3-321), send remote control TC command status machine, (3-311) with reception remote measurement TM data mode machine, (3-321) concurrent working has constituted observing and controlling pattern host state machine
Described central computer mode module (3-4) inside solidification has remote measurement TM framing module (3-41) and remote control TC decoding framing module (3-42), described remote measurement TM framing module (3-41) inside solidification has the remote measurement TM command status machine (3-411) of transmission, remote control TC decoding framing module (3-42) inside solidification has the remote control TC data mode machine (3-421) of reception, sends remote measurement TM command status machine (3-411) and receive remote control TC data mode machine (3-421) concurrent working to have constituted central computer pattern host state machine;
The long frame receiver module of G-RS485 is from state machine (3-1111), be used to receive the byte serial data of a RS485 level transferring chip (2) output, and the byte serial data is converted to parallel data is sent to the long frame receiver module of G-RS485 host state machine (3-112);
The long frame receiver module of G-RS485 host state machine (3-112), be used to receive the parallel data of the long frame receiver module of G-RS485 from state machine (3-1111) output, described parallel data is carried out the adding up and judge of the reading of interpretation, frame length, verification of frame head, and send frame length parameter to mode of operation and select host state machine (3-21);
Mode of operation is selected host state machine (3-21), is used for the received frame long parameter, described frame length parameter is carried out the frame length parameter read and the judgment task pattern, and send the mode of operation parameter to observing and controlling pattern host state machine or central computer pattern host state machine;
Transmission remote control TC command status machine (3-311) in the observing and controlling pattern host state machine, be used for receiving mode of operation and select the remote control TC instruction of the mode of operation parameter of host state machine (3-21) output, and the data framing of described remote control TC instruction encoded be sent to the first pcm stream level transferring chip (4);
Reception remote measurement TM data mode machine (3-321) in the observing and controlling pattern host state machine, be used to receive the remote measurement TM data of the second pcm stream level transferring chip (6) output, and described remote measurement TM data decode framing is sent to the 2nd RS485 level transferring chip (7);
Transmission remote measurement TM command status machine (3-411) in the central computer pattern host state machine, be used for receiving mode of operation and select the remote measurement TM instruction of the mode of operation parameter of host state machine (3-21) output, and the data framing of described remote measurement TM instruction encoded be sent to the first pcm stream level transferring chip (4);
Reception remote control TC data mode machine (3-421) in the central computer pattern host state machine, be used to receive the remote control TC data of the second pcm stream level transferring chip (6) output, and described remote control TC data decode framing is sent to the 2nd RS485 level transferring chip (7).
2. have FPGA method of work in the pcm stream simulator of two kinds of mode of operations based on the described a kind of pcm stream simulator with two kinds of mode of operations of claim 1 a kind of, it is characterized in that it comprises that seven long frame receiver modules of the logic state machine course of work: G-RS485 are from the state machine course of work, the long frame receiver module of the G-RS485 host state machine course of work, mode of operation is selected the host state machine course of work, send the remote control TC command status machine course of work, receive the remote measurement TM data mode machine course of work, send the remote measurement TM command status machine course of work and receive the remote control TC data mode machine course of work.
3. FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations according to claim 2 is characterized in that the long frame receiver module of G-RS485 comprises three states from the state machine course of work: Idle state, judge valid data position state and byte string and transition status;
In idle condition, wait for that the byte serial data arrives, when the byte serial data arrives, enter and judge valid data position state;
Judging valid data position state, each bits of serial data of byte serial data is carried out three times samples and at least twice identical logical value in the sampling results is sent as effective value, when each serial data Bit Significance of byte serial data sends completely, enter byte string and transition status;
At byte string and transition status, receive each bits of serial data of byte serial data, when each serial data Bit Significance of byte serial data receives, the byte serial data is sent with parallel data form, finish when the byte serial data sends with parallel data form, return idle condition.
4. FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations according to claim 2 is characterized in that the long frame receiver module of the G-RS485 host state machine course of work comprises seven states: idle condition, judge synchronous head state, verification and cumulative data state, receive version number's state, the received frame long status, receive parameter and deposit fifo status and clear FIFO combinational circuit state in;
In idle condition, wait for that parallel data arrives, when parallel data arrives, enter to judge the synchronous head state;
Judging the synchronous head state, judge whether synchronous head is correct, when synchronous head is correct, send synchronous head frame head valid data, and wait for the follow-up data useful signal, if the follow-up data useful signal arrives, then enter the version number's state that receives, simultaneously the follow-up data useful signal is sent to verification and accumulator register, enter verification and cumulative data state; When the synchronous head mistake, send the synchronous head invalid signals, finish when sending the synchronous head invalid signals, return idle condition;
At verification and cumulative data state, receive the follow-up data useful signal and carry out verification and add up, when the verification of follow-up data useful signal frame length is effective, return idle condition, when the verification of follow-up data useful signal frame length is invalid, send the verification invalid signals, enter FIFO combinational circuit state clearly;
Receiving version number's state, receiving version number and judge whether version number is correct, when version number was correct, trade edition this shop useful signal entered the received frame long status, and when version number's mistake, trade edition this shop invalid signals enters FIFO combinational circuit state clearly;
At the received frame long status, the received frame slab is when the received frame slab finishes, enter the reception parameter and deposit fifo status in, deposit fifo status in, will deposit FIFO in about the frame length parameter of frame length number in the reception parameter, finish when the frame length parameter deposits FIFO in, return idle condition;
At clear FIFO combinational circuit state, receive verification invalid signals and version number's invalid signals, when verification invalid signals and version number's invalid signals receive, output FIFO empties signal, returns idle condition.
5. FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations according to claim 2 is characterized in that mode of operation selects the host state machine course of work to comprise one of four states: wait for the frame length parameter state, read frame length parameter state, observing and controlling mode state and central computer mode state;
Waiting for the frame length parameter state, waiting for that the frame length parameter arrives, and when the frame length parameter arrives, enters and reads the frame length parameter state;
Reading the frame length parameter state, read frame length parameter and judgment task mode parameter, when the mode of operation parameter is default or is the observing and controlling mode parameter, enter the observing and controlling mode state, when the mode of operation parameter is the central computer mode parameter, enter the central computer mode state;
At the observing and controlling mode state, send remote control TC instruction and receive remote measurement TM data, finish when sending remote control TC instruction and receiving remote measurement TM data, return idle condition;
At the central computer mode state, send remote measurement TM instruction and receive remote control TC data, finish when sending remote measurement TM instruction and receiving remote control TC data, return idle condition.
6. FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations according to claim 2 is characterized in that sending the remote control TC command status machine course of work comprises three states: wait for the G-RS485 path remote control TC command status, extract remote control TC director data framing state and coding sends remote control TC command status;
In the remote control TC command status of waiting for the G-RS485 path, wait for the arrival of remote control TC instruction, when remote control TC instruction arrives, enter the remote control TC director data framing state that extracts;
Extracting remote control TC director data framing state, extract the data framing of remote control TC instruction, when the data framing that extracts remote control TC instruction finishes, enter coding and send remote control TC command status;
Send remote control TC command status at coding, with transmissions of encoding of the data framing of remote control TC instruction, encoding to send when the data framing of remote control TC instruction finishes, and returns wait remote control TC command status.
7. FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations according to claim 2 is characterized in that receiving the remote measurement TM data mode machine course of work comprises three states: wait for remote measurement TM data mode, the remote measurement TM data decode framing state of TM/TC path and send remote measurement TM data decode framing state;
In the remote measurement TM data mode of waiting for the TM/TC path, wait for that remote measurement TM data arrive, and when remote measurement TM data arrive, enter remote measurement TM data decode framing state;
At remote measurement TM data decode framing state,,, enter the remote measurement TM data decode framing state that sends when remote measurement TM data decode framing finishes to the remote measurement TM data framing of decoding;
Sending remote measurement TM data decode framing state, send remote measurement TM data decode framing by P-RS485 path D, when sending, remote measurement TM data decode framing finishes, return the remote measurement TM data mode of waiting for the TM/TC path.
8. FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations according to claim 2 is characterized in that sending the remote measurement TM command status machine course of work comprises three states: wait for the G-RS485 path remote measurement TM command status, extract remote measurement TM director data framing state and coding sends remote measurement TM command status;
In the remote measurement TM command status of waiting for the G-RS485 path, wait for the arrival of remote measurement TM instruction, when remote measurement TM instruction arrives, enter the remote measurement TM director data framing state that extracts;
Extracting remote measurement TM director data framing state, extract the data framing of remote measurement TM instruction, when the data framing that extracts remote measurement TM instruction finishes, enter coding and send remote measurement TM command status;
Send remote measurement TM command status at coding, with transmissions of encoding of the data framing of remote measurement TM instruction, encoding to send when the data framing of remote measurement TM instruction finishes, and returns wait remote measurement TM command status.
9. FPGA method of work in a kind of pcm stream simulator with two kinds of mode of operations according to claim 2 is characterized in that receiving the remote control TC data mode machine course of work comprises three states: wait for remote control TC data mode, the remote control TC data decode framing state of TM/TC path and send remote control TC data decode framing state;
In the remote control TC data mode of waiting for the TM/TC path, wait for that remote control TC data arrive, and when remote control TC data arrive, enter remote control TC data decode framing state;
At remote control TC data decode framing state,,, enter the remote control TC data decode framing state that sends when remote control TC data decode framing finishes to the remote control TC data framing of decoding;
Sending remote control TC data decode framing state, send remote control TC data decode framing by P-RS485 path D, when sending, remote control TC data decode framing finishes, return the remote control TC data mode of waiting for the TM/TC path.
CN2009103126087A 2009-12-30 2009-12-30 PCM code stream simulator with two working modes and FPGA working method in simulator Expired - Fee Related CN101800587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009103126087A CN101800587B (en) 2009-12-30 2009-12-30 PCM code stream simulator with two working modes and FPGA working method in simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009103126087A CN101800587B (en) 2009-12-30 2009-12-30 PCM code stream simulator with two working modes and FPGA working method in simulator

Publications (2)

Publication Number Publication Date
CN101800587A true CN101800587A (en) 2010-08-11
CN101800587B CN101800587B (en) 2012-12-26

Family

ID=42596102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009103126087A Expired - Fee Related CN101800587B (en) 2009-12-30 2009-12-30 PCM code stream simulator with two working modes and FPGA working method in simulator

Country Status (1)

Country Link
CN (1) CN101800587B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875952A (en) * 2016-12-23 2017-06-20 伟乐视讯科技股份有限公司 The soft encoding mechanism of MCVF multichannel voice frequency based on FPGA embedded systems
CN107947812A (en) * 2017-11-08 2018-04-20 江西洪都航空工业集团有限责任公司 A kind of telemetry reception device
CN108231039A (en) * 2018-01-29 2018-06-29 京东方科技集团股份有限公司 A kind of start of frame bits dynamic method for catching and device based on FPGA
CN111161524A (en) * 2019-12-11 2020-05-15 北京东方计量测试研究所 Testing device
CN113405409A (en) * 2021-06-30 2021-09-17 航天科工火箭技术有限公司 Mode switching method and system based on rocket measurement and control communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370827C (en) * 2005-01-12 2008-02-20 吉林大学 FPGA based four way audio-video multiplexing method
CN101345053B (en) * 2008-08-21 2011-11-16 中国电子科技集团公司第七研究所 Speech signal processing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875952A (en) * 2016-12-23 2017-06-20 伟乐视讯科技股份有限公司 The soft encoding mechanism of MCVF multichannel voice frequency based on FPGA embedded systems
CN107947812A (en) * 2017-11-08 2018-04-20 江西洪都航空工业集团有限责任公司 A kind of telemetry reception device
CN108231039A (en) * 2018-01-29 2018-06-29 京东方科技集团股份有限公司 A kind of start of frame bits dynamic method for catching and device based on FPGA
CN111161524A (en) * 2019-12-11 2020-05-15 北京东方计量测试研究所 Testing device
CN111161524B (en) * 2019-12-11 2022-03-04 北京东方计量测试研究所 Testing device
CN113405409A (en) * 2021-06-30 2021-09-17 航天科工火箭技术有限公司 Mode switching method and system based on rocket measurement and control communication system

Also Published As

Publication number Publication date
CN101800587B (en) 2012-12-26

Similar Documents

Publication Publication Date Title
CN101800587B (en) PCM code stream simulator with two working modes and FPGA working method in simulator
CN106612141B (en) A kind of fiber channel protocol common simulation test card and its data interactive method
CN104468035B (en) A kind of distribution POS data reliability transmission system and method
CN108228513A (en) A kind of intelligent serial communication module and control method based on FPGA architecture
CN110471880A (en) A kind of ARINC429 bus module and its data transmission method for supporting No. Label screening based on FPGA
CN104022828A (en) Fiber data transmission method based on asynchronous communication mode
CN105137864A (en) Lower computer coordinative control SoC chip for spacecraft
CN103944898B (en) The implementation method of the ARINC429 codec logic based on state machine
CN113824501B (en) Asynchronous serial signal sampling decoding method based on CPLD
CN102075397B (en) Direct interfacing method for ARINC429 bus and high-speed intelligent unified bus
CN107346298A (en) The method and system of protocol conversion between a kind of parallel bus and UART bus
Laddha et al. A review on serial communication by UART
CN102033843B (en) Direct interface method of RS485 bus and high-speed intelligent unified bus
CN106603442B (en) A kind of cross clock domain high-speed data communication interface circuit of network-on-chip
CN102929829A (en) Information transfer device for computer hardware experiment
CN103279442A (en) Message filtering system and message filtering method of high-speed interconnection bus
CN107066419A (en) Expansible adaptive N × N channel data communication system
CN105871655B (en) A kind of baud rate estimation IP kernel system applied to universal serial bus analysis instrument
CN100440266C (en) Method for collecting and transferring current and voltage quantities of feed line of power supply of city railway
CN110095973A (en) Time synchronization tester based on multi signal general-purpose interface
CN204993440U (en) Can protocol conversion device
CN111026590B (en) Data verification method and platform of interface circuit
CN101751115A (en) Method for solving data transmission matching of DSP and low-speed output device
CN202167017U (en) Data receiving circuit based on management control DSP in the internet of things
CN103926861B (en) A kind of aircraft ammunition general purpose test equipment intelligence interface adapter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121226

Termination date: 20131230