The present invention provides a method and
system for optimizing DS decoding of a high-speed
SpaceWire bus, including: a synchronous sampling module, a
skew jitter error compensation module, an asynchronous buffer module and a DS decoding module; the synchronous sampling module synchronizes the input DS
signal to the
system sampling
clock after three
signal latches, and transmits the
signal to the
skew jitter error compensation module for data sampling compensation, and transmits the signal to the DS decoding module and the asynchronous buffer module after judging the valid data flag; the asynchronous buffer module shifts the buffer, converts the storage and marks the valid length of the data; the DS decoding module
decodes, performs serial shift operations, and outputs data words and control words. The present invention realizes three-level synchronous sampling, reduces the risk of signal competition and risk; the
bus has a
high rate, and can realize the decoding function of the
bus at 200Mbps~400Mbps; sampling compensation for sampling errors caused by DS signal
jitter and
skew, and at the same time adopts an optimized DS decoding
algorithm to solve decoding errors caused by signal jitter and skew.