CN101800587B - 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
CN101800587B
CN101800587B CN2009103126087A CN200910312608A CN101800587B CN 101800587 B CN101800587 B CN 101800587B CN 2009103126087 A CN2009103126087 A CN 2009103126087A CN 200910312608 A CN200910312608 A CN 200910312608A CN 101800587 B CN101800587 B CN 101800587B
Authority
CN
China
Prior art keywords
data
mode
remote control
state
framing
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.)
Expired - Fee Related
Application number
CN2009103126087A
Other languages
Chinese (zh)
Other versions
CN101800587A (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

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

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 coming expression signal information with code.In satellite pcm stream test, the pcm stream communication is 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, a 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; Said G-RS485 data flow receiver module inside solidification has long frame receiver module of G-RS485 and FIFO; The long frame receiver module of said G-RS485 inside solidification has string and conversion submodule and the long frame receiver module of G-RS485 host state machine, and said string and conversion submodule inside solidification have the long frame receiver module of G-RS485 from state machine; Said mode selection module inside solidification has mode of operation to select host state machine; Said observing and controlling mode module inside solidification has remote control TC framing module and remote measurement TM decoding framing module; Said 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, and concurrent working has constituted observing and controlling pattern host state machine with reception remote measurement TM data mode machine to send remote control TC command status machine; Said central computer mode module inside solidification has remote measurement TM framing module and remote control TC decoding framing module; Said 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, and concurrent working has constituted central computer pattern host state machine with reception remote control TC data mode machine to send remote measurement TM command status 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 converts the byte serial data into parallel data and be 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; Said 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, said 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 said 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 said 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 said 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 said 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 sketch map 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 sketch map of FPGA3; Fig. 4 is a sign indicating number type explanation sketch map of the present invention; Fig. 5 be the long frame receiver module of G-RS485 of the present invention from state machine course of work sketch map, Fig. 6 is the long frame receiver module of a G-RS485 of the present invention host state machine course of work sketch map, Fig. 7 is that mode of operation of the present invention is selected host state machine course of work sketch map; Fig. 8 is a transmission remote control TC command status machine course of work sketch map of the present invention; Fig. 9 is a reception remote measurement TM data mode machine course of work sketch map of the present invention, and Figure 10 is a transmission remote measurement TM command status machine course of work sketch map of the present invention, and Figure 11 is a reception remote control TC data mode machine course of work sketch map of the present invention.
Embodiment
Embodiment one: specify this execution mode with Fig. 3 according to Figure of description 2; The described a kind of pcm stream simulator of this execution mode with two kinds of mode of operations; It is based on, and pcm stream simulator with a kind of mode of operation realizes; Said simulator comprises dispatching first communication interface 1, a 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; Said 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 said 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 said string and conversion submodule 3-111 inside solidification have the long frame receiver module of G-RS485 from state machine 3-1111; Said mode selection module 3-2 inside solidification has mode of operation to select host state machine 3-21; Said 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; Said 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, and concurrent working has constituted observing and controlling pattern host state machine with reception remote measurement TM data mode machine 3-321 to send remote control TC command status machine 3-311; Said 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; Said 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, and concurrent working has constituted central computer pattern host state machine with reception remote control TC data mode machine 3-421 to send remote measurement TM command status machine 3-411; 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 converts the byte serial data into parallel data and be 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; Said 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, said 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 said 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 said 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 said 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 said remote control TC data decode framing is sent to the 2nd RS485 level transferring chip 7.
In this execution mode, 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 this execution mode, central computer communication interface/detection and control terminal communication interface 5 leading indicators are following:
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: this execution mode 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 this execution mode according to Figure of description 5; This execution mode 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, get into 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; Finish when each serial data Bit Significance of byte serial data sends, get into 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 is received complete; The byte serial data is sent with parallel data form,, return idle condition when the byte serial data finishes with the parallel data form transmission.
Embodiment four: specify this execution mode according to Figure of description 6; This execution mode 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, get into 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 get into the version number's state that receives; Simultaneously the follow-up data useful signal is sent to verification and accumulator register, get into 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, get into clear FIFO combinational circuit state;
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 got into the received frame long status, and when version number's mistake, trade edition this shop invalid signals gets into clear FIFO combinational circuit state;
At the received frame long status, the received frame slab is when the received frame slab finishes; Get into 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 invalid signals reception finish, export FIFO and empty signal, return idle condition.
Embodiment five: specify this execution mode according to Figure of description 7; This execution mode 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, when the frame length parameter arrives, getting into and read 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, get into the observing and controlling mode state; When the mode of operation parameter is the central computer mode parameter, get into 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 and wait for the frame length parameter state;
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 and wait for the frame length parameter state.
In this execution mode, 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 this execution mode according to Figure of description 8; This execution mode 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, get into 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, get into 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 the remote control TC command status of wait G-RS485 path.
The G-RS485 Path Protocol of G-RS485 path A is followed successively by synchronous head in this execution mode, protocol version, these frame data length, PCM device number, relevant parameter, at last for verification with.
Embodiment seven: specify this execution mode according to Figure of description 9; This execution mode 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 remote measurement TM data arrives, when remote measurement TM data arrives, get into remote measurement TM data decode framing state;
At remote measurement TM data decode framing state,,, get into 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 through 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 this execution mode according to Figure of description 10; This execution mode 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, get into 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, get into 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 the remote measurement TM command status of wait G-RS485 path.
Embodiment nine: specify this execution mode according to Figure of description 11; This execution mode 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 remote control TC data arrives, when remote control TC data arrives, get into remote control TC data decode framing state;
At remote control TC data decode framing state,,, get into 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 through 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),
Said 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 said 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); Said string and conversion submodule (3-111) inside solidification have the long frame receiver module of G-RS485 from state machine (3-1111)
Said mode selection module (3-2) inside solidification has mode of operation to select host state machine (3-21),
Said 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); Said remote control TC framing module (3-31) inside solidification has the remote control TC command status machine (3-311) of transmission; Remote measurement TM decoding framing module (3-32) inside solidification has the remote measurement TM data mode machine (3-321) of reception; Send remote control TC command status machine (3-311) and receive remote measurement TM data mode machine (3-321) concurrent working and constituted observing and controlling pattern host state machine
Said 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); Said 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 convert the byte serial data into parallel data and be 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; Said 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, said 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 said 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 said 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 said 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 said remote control TC data decode framing is sent to the 2nd RS485 level transferring chip (7).
2. based on FPGA method of work in the described a kind of pcm stream simulator with two kinds of mode of operations of claim 1, it is characterized in that 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.
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, get into 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; Finish when each serial data Bit Significance of byte serial data sends, get into 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 is received complete; The byte serial data is sent with parallel data form,, return idle condition when the byte serial data finishes with the parallel data form transmission.
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, get into 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 get into the version number's state that receives; Simultaneously the follow-up data useful signal is sent to verification and accumulator register, get into 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, get into clear FIFO combinational circuit state;
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 got into the received frame long status, and when version number's mistake, trade edition this shop invalid signals gets into clear FIFO combinational circuit state;
At the received frame long status, the received frame slab is when the received frame slab finishes; Get into 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 invalid signals reception finish, export FIFO and empty signal, return 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, when the frame length parameter arrives, getting into and read 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, get into the observing and controlling mode state; When the mode of operation parameter is the central computer mode parameter, get into 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 and wait for the frame length parameter state;
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 and wait for the frame length parameter state.
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, get into 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, get into 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 the remote control TC command status of wait G-RS485 path.
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 remote measurement TM data arrives, when remote measurement TM data arrives, get into remote measurement TM data decode framing state;
At remote measurement TM data decode framing state,,, get into 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 through 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, get into 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, get into 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 the remote measurement TM command status of wait G-RS485 path.
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 remote control TC data arrives, when remote control TC data arrives, get into remote control TC data decode framing state;
At remote control TC data decode framing state,,, get into 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 through 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 CN101800587A (en) 2010-08-11
CN101800587B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875952B (en) * 2016-12-23 2021-02-26 伟乐视讯科技股份有限公司 Multi-channel audio soft coding mechanism based on FPGA embedded system
CN107947812A (en) * 2017-11-08 2018-04-20 江西洪都航空工业集团有限责任公司 A kind of telemetry reception device
CN108231039B (en) * 2018-01-29 2021-02-09 京东方科技集团股份有限公司 FPGA-based frame start bit dynamic capturing method and device
CN111161524B (en) * 2019-12-11 2022-03-04 北京东方计量测试研究所 Testing device
CN113405409B (en) * 2021-06-30 2023-03-24 航天科工火箭技术有限公司 Mode switching method and system based on rocket measurement and control communication system

Citations (2)

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

Patent Citations (2)

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

Also Published As

Publication number Publication date
CN101800587A (en) 2010-08-11

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
CN105208034B (en) A kind of spi bus and CAN bus protocol conversion circuitry and method
CN108228513A (en) A kind of intelligent serial communication module and control method based on FPGA architecture
CN103248537A (en) FC-AE-1553 based mixed avionics system tester
CN104022828A (en) Fiber data transmission method based on asynchronous communication mode
CN100417224C (en) Optical fiber transmitting and housekeeping method of charge coupled camera image data
CN102619501A (en) Data transmission system in petroleum logging instrument
CN102075397B (en) Direct interfacing method for ARINC429 bus and high-speed intelligent unified bus
CN105137864A (en) Lower computer coordinative control SoC chip for spacecraft
CN103944898B (en) The implementation method of the ARINC429 codec logic based on state machine
CN102035600A (en) Physical interface board of high speed 1553B optical fiber bus
CN102033843B (en) Direct interface method of RS485 bus and high-speed intelligent unified bus
CN113824501A (en) Asynchronous serial signal sampling decoding method based on CPLD
CN102929829A (en) Information transfer device for computer hardware experiment
Laddha et al. A review on serial communication by UART
CN106603442B (en) A kind of cross clock domain high-speed data communication interface circuit of network-on-chip
CN101976216B (en) IEEE1500 standard-based IP core test structure and test method
CN105871655B (en) A kind of baud rate estimation IP kernel system applied to universal serial bus analysis instrument
CN201732367U (en) DSP based data receiving circuit
CN100440266C (en) Method for collecting and transferring current and voltage quantities of feed line of power supply of city railway
CN111026590B (en) Data verification method and platform of interface circuit
CN105634897B (en) A kind of CAN bus protocol-decoding IP kernel applied to universal serial bus analysis instrument
CN204993440U (en) Can protocol conversion device

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