CN106685588B - Adapter, data transmission system and method - Google Patents

Adapter, data transmission system and method Download PDF

Info

Publication number
CN106685588B
CN106685588B CN201611027636.0A CN201611027636A CN106685588B CN 106685588 B CN106685588 B CN 106685588B CN 201611027636 A CN201611027636 A CN 201611027636A CN 106685588 B CN106685588 B CN 106685588B
Authority
CN
China
Prior art keywords
frequency data
data
modules
adapter
target
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.)
Active
Application number
CN201611027636.0A
Other languages
Chinese (zh)
Other versions
CN106685588A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201611027636.0A priority Critical patent/CN106685588B/en
Priority to CN202010078401.4A priority patent/CN111294155B/en
Publication of CN106685588A publication Critical patent/CN106685588A/en
Application granted granted Critical
Publication of CN106685588B publication Critical patent/CN106685588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0067Rate matching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0084Formats for payload data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/10Frequency-modulated carrier systems, i.e. using frequency-shift keying
    • H04L27/16Frequency regulation arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses an adapter, comprising: the access module acquires first frequency data through at least one first port and sends the first frequency data to the exchange module; the exchange module acquires first frequency data from the access module, determines Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, and sends the first frequency data to the Y target adaptation modules; when the first frequency data is received from the exchange module, the adaptation module carries out frequency modulation on the first frequency data to obtain second frequency data, and sends the second frequency data to the target device. The invention also provides a data transmission method and a data transmission system. According to the invention, the purpose of increasing the interfaces is achieved by increasing the number of the adapter modules, if new target equipment needs to transmit data, the data can be transmitted by directly accessing the unused adapter modules, so that the cable switching efficiency is improved, the labor cost is reduced, and hardware faults of the equipment caused by frequently plugging and unplugging cables are reduced.

Description

Adapter, data transmission system and method
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an adapter, a data transmission system, and a data transmission method.
Background
To meet the increasingly complex chip design requirements, the scale of chip design has also grown dramatically. The hardware acceleration simulation (English full name: Emulation) is used as a new technology of chip verification, and has the advantages of high compiling speed, large capacity, strong fault eliminating capability and the like. In the Emulation application, there is a widely used online Emulator (ICE) mode, which can compile a Design to be verified (DUV) into a hardware Emulation tool (evl) and connect with an external target device for verification.
At present, because an Emulator generally operates at a frequency below 4 megahertz (MHz) in an ICE mode, while an operating frequency of an external target device may reach hundreds of MHz, and two sides of the external target device cannot be directly connected with different speeds, a speed adapter is required to convert the speed, specifically, as shown in fig. 1, fig. 1 is a schematic diagram of a hardware simulation tool directly connected with the speed adapter in the prior art, wherein a dedicated cable is adopted between the Emulator S1 and the speed adapter S2, the Emulator cables of different manufacturers may be different, and a connection line between the speed adapter S2 and the external target device S3 may select an optical fiber or a cable according to the difference of the speed adapters.
However, because an Emulator is expensive and scarce in resources, in order to better develop its value, resources of the Emulator may be time-multiplexed by a plurality of items, as shown in fig. 2, fig. 2 is a schematic diagram of a time-multiplexing hardware simulation tool in the prior art, 3 rate adapters shown in the diagram are only one schematic diagram, and the rate adapters may be connected to the Emulator through at least one cable, target devices connected to different items may be different, which requires different rate adapters to be connected to the Emulator. However, the number of parallel cables provided by the Emulator is limited, and each cable outputs at least one set of data, and if a new target device needs two sets of data provided by the Emulator at the same time, the target device needs to be switched by manually plugging and unplugging the cables, that is, the cables corresponding to the two sets of data are unplugged, and then the new target device is plugged in. However, the manual plugging and unplugging of the cables can reduce the switching efficiency and increase the labor cost, and meanwhile, frequent plugging and unplugging of the cables can also cause hardware faults, so that the hardware test automation is difficult to realize.
Disclosure of Invention
The embodiment of the invention provides an adapter, a data transmission system and a data transmission method, which can achieve the purpose of increasing interfaces by increasing the number of adapter modules, and if new target equipment needs to transmit data, the used cables do not need to be plugged and unplugged, but the data can be transmitted by directly accessing through the unused adapter modules, so that the cable switching efficiency is improved, the labor cost is reduced, and hardware faults of the equipment caused by frequently plugging and unplugging cables are reduced, thereby realizing automation.
In view of the above, the first aspect of the present invention provides an adapter, and the functions and operation of the adapter will be described in detail below.
The adapter is usually used for carrying out rate conversion between different devices, and the adapter involved in the method can be arranged between an Emulator and an external target device, and is particularly suitable for transmitting emulation data between the Emulator and the target device. The adapter comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein N is a positive integer greater than or equal to 1, M is a positive integer greater than or equal to 1, the N access modules and the M adaptation modules are respectively connected with the switching module by cables inside the adapter, the Emulator is connected with the N access modules by cables provided by the Emulator, and the adaptation modules are also connected with target equipment by the cables, so that rate adaptation can be performed, and the material of the cables is not limited.
Next, when data is transmitted from the Emulator to the target device, the workflow of the N access modules, the switching module, and the M adaptation modules in the adapter is as follows:
the N access modules can convert Emulator cable data into a data format suitable for being crossed, correspondingly, the N access modules can also convert data transmitted by the interaction module into a data format suitable for being transmitted on the Emulator cable, the access modules are mainly used for acquiring first frequency data through at least one first port and sending the first frequency data to the exchange module, wherein the first frequency data are data to be subjected to frequency modulation, namely the first frequency data can be understood as data output from Emulator and have lower running frequency;
the exchange module can acquire first frequency data from the N access modules, determine Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, and then send the first frequency data to the Y target adaptation modules, wherein Y is a positive integer greater than or equal to 1;
the M adaptation modules are used for carrying out frequency modulation on the first frequency data when the first frequency data are received from the exchange module, obtaining second frequency data, wherein the running speed of the second frequency data is far greater than that of the first frequency data, and then the adaptation modules send the second frequency data to at least one target device.
The embodiment of the invention provides an adapter, which comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein the access modules are used for acquiring first frequency data through the at least one first port and sending the first frequency data to the switching module, the switching module is used for determining Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, the switching module sends the first frequency data to the Y target adaptation modules, and when the adaptation modules receive the first frequency data from the switching module, the adaptation modules can perform frequency modulation on the first frequency data, obtain second frequency data and send the second frequency data to target equipment. Adopt above-mentioned adapter, can reach the purpose that the interface increases through the quantity that increases the adaptation module, if when there is new target device need transmit data, need not the plug and already by the cable that uses, but direct adaptation module access through not yet using can transmit data to promote cable switching efficiency, reduce the human cost, reduce simultaneously because the equipment hardware trouble that frequent plug cable caused, with this realization automation.
With reference to the first aspect of the embodiment of the present invention, in a first possible implementation manner, the switch module includes a control unit and a cross unit;
if the data is sent from Emulator and transmitted to the target device through the adapter, the workflow of the control unit and the cross unit is as follows:
the control unit is mainly used for obtaining a preset corresponding relation, performing function configuration on the N access modules and the M adaptation modules, and performing path configuration on the cross unit, wherein the preset corresponding relation is used for indicating the cross unit to receive and transmit first frequency data;
the crossing unit is mainly used for acquiring first frequency data, then determining Y target adaptation modules in the M adaptation modules according to the preset corresponding relation acquired by the control unit, and then sending the first frequency data to the Y target adaptation modules, wherein Y is not larger than M.
Secondly, in the embodiment of the present invention, a unit included in the switching module in the adapter is introduced, wherein the switching module mainly includes a control unit and a cross unit, and through mutual cooperation between the control unit and the cross unit, a corresponding relationship between different data and different clock cycles is configured in the control unit, so that the corresponding data can be accurately output according to the corresponding relationship, thereby improving reliability of data output and facilitating improvement of efficiency of data simulation.
With reference to the first possible implementation manner of the first aspect of the embodiment of the present invention, in a second possible implementation manner, the interleaving unit includes a clock interleaving subunit, a data interleaving subunit, and a sending subunit;
if the data is sent from Emulator and transmitted to the target device through the adapter, the work flow of the clock crossing subunit, the data crossing subunit and the sending subunit is as follows:
the clock cross subunit is used for acquiring a clock identifier corresponding to the first frequency data and sending the clock identifier corresponding to the first frequency data to the sending subunit, wherein the clock cross subunit comprises a plurality of input ports and a plurality of output ports, and the clock identifier of the first frequency data input from the input ports can be determined from which output port or ports the clock identifier should be output through the configuration of the clock cross subunit by the control unit;
the data cross subunit is used for acquiring first frequency data and sending the first frequency data to the sending subunit, the data cross subunit has similar functions and also comprises a plurality of input ports and a plurality of output ports, and the control unit can know which output port or ports the first frequency data input from the input ports should be output from;
the sending subunit is configured to determine Y target adaptation modules of the M adaptation modules according to a preset correspondence, and send the first frequency data and the clock identifier corresponding to the first frequency data to the Y target adaptation modules, where Y is less than or equal to M.
In the embodiment of the present invention, the sub-units included in the cross unit in the adapter are introduced, where the cross unit mainly includes a clock cross sub-unit, a data cross sub-unit, and a sending sub-unit, and the clock cross sub-unit and the data cross unit can send the first frequency data and the corresponding clock identifier to the sending sub-unit through the preset relationship set in the control unit, so as to ensure accurate output sequence of the data and improve reliability of data transmission.
With reference to the second possible implementation manner of the first aspect of the embodiment of the present invention, in a third possible implementation manner, the adaptation module includes a determining unit, a frequency modulation unit, and a sending unit;
if the data is transmitted from the Emulator and transmitted to the target device through the adapter, the work flows of the determining unit, the frequency modulation unit and the transmitting unit are as follows:
the determining unit is used for determining the data transmission sequence of the current round according to the association relationship between the clock identification and the data when the clock identification corresponding to the first frequency data is received from the clock crossing subunit and the first frequency data is received from the data crossing subunit;
the frequency modulation unit is used for carrying out frequency modulation processing on the received first frequency data to obtain second frequency data with higher frequency;
the sending unit is configured to send the second frequency data to at least one target device according to a transmission order of the data.
Further, in the embodiment of the present invention, a unit included in the adaptation module in the adapter and a unit included in the access module are introduced. The adjusting unit in the adapter can perform frequency modulation on the data, so that the data can be smoothly transmitted between the indicator and the target device, and the practicability and feasibility of the scheme are improved. In addition, for the adaptation module and the access module, the order of data transmission can be determined according to the data sent by the exchange module and the corresponding clock identification thereof, so that the accuracy and consistency of data transmission are further improved.
With reference to the first aspect of the embodiment of the present invention, and any implementation manner of the first to third possible implementation manners of the first aspect, in a fourth possible implementation manner, if data is sent from an indicator and is transmitted to a target device through an adapter, a workflow of a sending subunit is:
the sending subunit is specifically configured to send the first frequency data to the Y target adaptation modules when Y is equal to 1. That is, in the case of only one target adaptation module, the interleaving unit transfers the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, and the sending subunit determines the corresponding receiving object, that is, the adaptation module connected to the target device, and then the interleaving unit sends the first frequency data and the clock identifier thereof to the adaptation module. This is achieved by
Furthermore, the embodiment of the invention solves the problem of limited number of internal pins of the existing adapter, and because some pins can cause that in some cases, multi-bit data has to be uploaded on one pin by using a data compression technology, and the data compression technology can cause the performance of the adapter to be reduced. In the adapter provided by the invention, a plurality of Emulator cables can be accessed into the same adapter module through the access module and the exchange module, correspondingly, a plurality of cables led out from the same adapter module can also be accessed into different access modules through the exchange module, and different access modules are respectively connected with the Emulators through a plurality of Emulator cables.
With reference to the first aspect of the embodiment of the present invention, and any implementation manner of the first to third possible implementation manners of the first aspect, in a fifth possible implementation manner, if data is sent from an indicator and is transmitted to a target device through an adapter, a workflow of a sending subunit is:
the sending subunit is specifically configured to send the first frequency data to the Y target adaptation modules respectively when Y is greater than 1. That is, in the case that there are multiple adaptation modules, the crossing unit transmits the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, and the sending subunit determines the corresponding receiving object, so that the crossing unit sends the first frequency data and the clock identifier thereof to the multiple adaptation modules through different paths, respectively. At this time, the multiple adaptation modules are target adaptation modules, and the paths for the sending subunit to perform data transmission are multiple paths from the sending subunit to the adaptation modules.
Furthermore, in the embodiment of the present invention, the problem of low utilization rate of the pins in the isolator cable is solved, and since the adapter may only need a plurality of pins in all the pins, but needs to connect one isolator cable, most of the remaining pins in the isolator cable are wasted. In the adapter provided by the invention, data of one Emulator cable can be accessed into a plurality of adaptation modules, and correspondingly, data of a plurality of adaptation modules can also be accessed into the Emulator through one Emulator cable, so that a plurality of groups of data can be transmitted in one Emulator cable, but not only one group of data is transmitted by one Emulator cable, thereby improving the utilization rate of pins in the Emulator cable and enhancing the practicability of the scheme.
With reference to the implementation manner of the first aspect of the embodiment of the present invention, in a sixth possible implementation manner, an access module includes an access board and a data unit, where the access board and the data unit are detachably connected;
if the data is sent from Emulator and transmitted to the target device through the adapter, the workflow of the access board and the data unit is as follows:
the access board is used for transmitting the first frequency data, namely transparent transmission, and only takes charge of transmitting the service to be transmitted to a destination node no matter how the service is transmitted, and meanwhile, the transmission quality is ensured, and the transmitted service is not processed;
the data unit is used for receiving the first frequency data and sending the first frequency data to the exchange module.
Secondly, in the embodiment of the invention, the problem that an adapter developed by one manufacturer cannot be applied to an Emulator developed by another manufacturer due to different cable connectors of the emulators produced by different manufacturers is solved, and the access module in the adapter is mainly subjected to splitting processing to obtain the access board and the data unit, wherein the access board only performs physical interface conversion without data processing, so that when the emulators and the adapters between the manufacturers cannot be matched, only the access board with lower cost needs to be replaced, thereby reducing the cost of adapting the adapter and increasing the universality of the scheme.
With reference to the implementation manner of the first aspect of the embodiment of the present invention, in a seventh possible implementation manner, the adapter further includes at least one target device;
the adaptation module is further configured to integrate at least one target device, and each second port is configured to connect the adaptation module with the at least one target device.
Usually, the adaptation modules are in one-to-one correspondence with the target devices, because this makes the data transmission path simpler, and there is no need to configure the transmission path for the adaptation modules or the target devices.
Secondly, in the embodiment of the present invention, a scheme capable of integrating a target device into an adapter is provided, and in practical applications, functions of the target device may also be added to the adapter, and data transmission is performed through the adapter, so that deployment cost of the target device can be greatly reduced, and meanwhile, the target device is modularly processed and is placed in the adapter, so that space occupied by the target device can be saved, and deployment of the whole data transmission system is facilitated.
A second aspect of the present invention provides a data transmission system, which includes at least one source device and at least one adapter, where the adapter is an adapter according to any one of the first aspect and the first to seventh possible implementation manners of the first aspect, and a plurality of target devices may all be connected to a same adapter module.
In the embodiment of the invention, a data transmission system is introduced, which comprises at least one indicator, an adapter combination consisting of at least one adapter and at least one target device, and can achieve the purpose of increasing interfaces by increasing the number of adapter modules, if a new target device needs to transmit data, the new target device can be directly accessed and transmitted through the unused adapter modules, so that the cable switching efficiency is improved, the labor cost is reduced, the hardware fault of the device caused by frequently plugging and unplugging cables is reduced, and the access capacity of the device can be further expanded.
A third aspect of the invention provides an adapter, the function of which and the way in which it operates will be described in more detail below.
The adapter is usually used for carrying out rate conversion between different devices, and the adapter involved in the method can be arranged between an Emulator and an external target device, and is particularly suitable for transmitting emulation data between the Emulator and the target device. The adapter comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein N is a positive integer greater than or equal to 1, M is a positive integer greater than or equal to 1, the N access modules and the M adaptation modules are respectively connected with the switching module by cables inside the adapter, the Emulator is connected with the N access modules by cables provided by the Emulator, and the adaptation modules are also connected with target equipment by the cables, so that rate adaptation can be performed, and the material of the cables is not limited.
Next, the workflow of N access modules, a switching module, and M adaptation modules in the adapter when data is transmitted from the target device to the adapter is described:
the M adaptation modules are used for receiving second frequency data through at least one second port, frequency-modulating the second frequency data into first frequency data and then sending the first frequency data to the exchange module, wherein the first frequency data has lower running frequency, and the running rate of the second frequency data is far greater than that of the first frequency data;
the exchange module is used for receiving the first frequency data sent by the adaptation module, then determining X target access modules in the N access modules according to a preset corresponding relation, and then sending the first frequency data to the X target access modules, wherein X is a positive integer greater than or equal to 1;
the N access modules are configured to send, when receiving the first frequency data sent by the exchange module, the first frequency data to the source device, that is, to the indicator, so as to complete data transmission between the target device and the indicator.
The embodiment of the invention provides an adapter, which comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein the access modules are used for acquiring first frequency data through the at least one first port and sending the first frequency data to the switching module, the switching module is used for determining Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, the switching module sends the first frequency data to the Y target adaptation modules, and when the adaptation modules receive the first frequency data from the switching module, the adaptation modules can perform frequency modulation on the first frequency data, obtain second frequency data and send the second frequency data to target equipment. Adopt above-mentioned adapter, can reach the purpose that the interface increases through the quantity that increases the adaptation module, if when there is new target device need transmit data, need not the plug and already by the cable that uses, but direct adaptation module access through not yet using can transmit data to promote cable switching efficiency, reduce the human cost, reduce simultaneously because the equipment hardware trouble that frequent plug cable caused, with this realization automation.
With reference to the third aspect of the embodiment of the present invention, in a first possible implementation manner, the switch module includes a control unit and a cross unit;
if the data is sent from the target device and transmitted to the Emulator through the adapter, the workflow of the control unit and the intersection unit is as follows:
the control unit is mainly used for obtaining a preset corresponding relation, configuring the work-doing energy of the access module and the adaptation module according to the preset corresponding relation, and configuring a path of the cross unit, wherein the preset corresponding relation is used for indicating the cross unit to receive and transmit first frequency data;
the crossing unit is used for acquiring first frequency data, determining X target access modules in the N access modules according to the preset corresponding relation acquired by the control unit, and sending the first frequency data to the X target access modules, wherein X is a positive integer greater than 1 and X is not greater than N.
Secondly, in the embodiment of the present invention, a unit included in the switching module in the adapter is introduced, wherein the switching module mainly includes a control unit and a cross unit, and through mutual cooperation between the control unit and the cross unit, a corresponding relationship between different data and different clock cycles is configured in the control unit, so that the corresponding data can be accurately output according to the corresponding relationship, thereby improving reliability of data output and facilitating improvement of efficiency of data simulation.
With reference to the first possible implementation manner of the third aspect of the embodiment of the present invention, in a second possible implementation manner, the interleaving unit includes a clock interleaving subunit, a data interleaving subunit, and a sending subunit;
if the data is sent from the target device and transmitted to the Emulator through the adapter, the workflow of the clock crossing subunit, the data crossing subunit and the sending subunit is as follows:
the clock cross subunit is used for acquiring a clock identifier corresponding to the first frequency data and sending the clock identifier corresponding to the first frequency data to the sending subunit, wherein the clock cross subunit comprises a plurality of input ports and a plurality of output ports, and the configuration of the clock cross subunit can be used for knowing which output port or output ports the clock identifier of the first frequency data input from the input ports should be output from through the control unit;
the data cross subunit is used for acquiring first frequency data and sending the first frequency data to the sending subunit, wherein the data cross subunit comprises a plurality of input ports and a plurality of output ports, and the configuration of the data cross subunit can be used for knowing which output port or output ports the first frequency data input from the input ports should be output from;
the sending subunit is configured to determine, according to a preset correspondence, X target access modules from the N access modules, and send the first frequency data and the clock identifier corresponding to the first frequency data to the X target access modules.
In the embodiment of the present invention, the sub-units included in the cross unit in the adapter are introduced, where the cross unit mainly includes a clock cross sub-unit, a data cross sub-unit, and a sending sub-unit, and the clock cross sub-unit and the data cross unit can send the first frequency data and the corresponding clock identifier to the sending sub-unit through the preset relationship set in the control unit, so as to ensure accurate output sequence of the data and improve reliability of data transmission.
With reference to the second possible implementation manner of the third aspect of the embodiment of the present invention, in a third possible implementation manner, the adaptation module includes a determining unit and a sending unit;
if the data is transmitted from the target device and transmitted to the Emulator through the adapter, determining the unit and transmitting the unit; the working process comprises the following steps:
the determining unit is used for determining the data transmission sequence of the current round according to the clock identifier corresponding to the first frequency data and the first frequency data when the clock identifier corresponding to the first frequency data is received from the clock crossing subunit and the first frequency data is received from the data crossing subunit;
the sending unit is used for sending the first frequency data to the source end device indicator according to the transmission sequence of the data.
Further, in the embodiment of the present invention, a unit included in the adaptation module in the adapter and a unit included in the access module are introduced. The adjusting unit in the adapter can perform frequency modulation on the data, so that the data can be smoothly transmitted between the indicator and the target device, and the practicability and feasibility of the scheme are improved. In addition, for the adaptation module and the access module, the order of data transmission can be determined according to the data sent by the exchange module and the corresponding clock identification thereof, so that the accuracy and consistency of data transmission are further improved.
With reference to the third aspect of the embodiment of the present invention, and any implementation manner of the first to third possible implementation manners of the third aspect, in a fourth possible implementation manner, if data is sent from a target device and is transmitted to an indicator through an adapter, a workflow of a sending subunit is:
the sending subunit is specifically configured to send the first frequency data to the X target access modules respectively when X is greater than 1. Specifically, the crossing unit transmits the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, and the sending subunit determines the corresponding receiving object, so that the sending subunit sends the first frequency data and the clock identifier thereof to the plurality of access modules through different paths, respectively.
Furthermore, the embodiment of the invention solves the problem of limited number of internal pins of the existing adapter, and because some pins can cause that in some cases, multi-bit data has to be uploaded on one pin by using a data compression technology, and the data compression technology can cause the performance of the adapter to be reduced. In the adapter provided by the invention, a plurality of Emulator cables can be accessed into the same adapter module through the access module and the exchange module, correspondingly, a plurality of cables led out from the same adapter module can also be accessed into different access modules through the exchange module, and different access modules are respectively connected with the Emulators through a plurality of Emulator cables.
With reference to the third aspect of the embodiment of the present invention, and any implementation manner of the first to third possible implementation manners of the third aspect, in a fifth possible implementation manner, if data is sent from a target device and is transmitted to an Emulator through an adapter, a workflow of a sending subunit is:
the sending subunit is specifically configured to send the first frequency data to the X target access modules when X is equal to 1. That is, when only one access module is provided, the cross unit transfers the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, the sending subunit determines the corresponding receiving object, and then the sending subunit sends the first frequency data and the clock identifier thereof to the access module.
Furthermore, in the embodiment of the present invention, the problem of low utilization rate of the pins in the isolator cable is solved, and since the adapter may only need a plurality of pins in all the pins, but needs to connect one isolator cable, most of the remaining pins in the isolator cable are wasted. In the adapter provided by the invention, data of one Emulator cable can be accessed into a plurality of adaptation modules, and correspondingly, data of a plurality of adaptation modules can also be accessed into the Emulator through one Emulator cable, so that a plurality of groups of data can be transmitted in one Emulator cable, but not only one group of data is transmitted by one Emulator cable, thereby improving the utilization rate of pins in the Emulator cable and enhancing the practicability of the scheme.
With reference to the implementation manner of the third aspect of the embodiment of the present invention, in a sixth possible implementation manner, an access module includes an access board and a data unit, where the access board and the data unit are detachably connected;
if the data is sent from the target device and transmitted to the Emulator through the adapter, the workflow of the access board and the data unit is as follows:
the data unit is used for receiving first frequency data and sending the first frequency data to the access board;
the access board is used for transmitting the first frequency data, namely transparent transmission, and only takes charge of transmitting the service to be transmitted to a destination node no matter how the service is transmitted, and meanwhile, the transmission quality is ensured, and the transmitted service is not processed;
secondly, in the embodiment of the invention, the problem that an adapter developed by one manufacturer cannot be applied to an Emulator developed by another manufacturer due to different cable connectors of the emulators produced by different manufacturers is solved, and the access module in the adapter is mainly subjected to splitting processing to obtain the access board and the data unit, wherein the access board only performs physical interface conversion without data processing, so that when the emulators and the adapters between the manufacturers cannot be matched, only the access board with lower cost needs to be replaced, thereby reducing the cost of adapting the adapter and increasing the universality of the scheme.
With reference to the implementation manner of the third aspect of the embodiment of the present invention, in a seventh possible implementation manner, the adapter further includes at least one target device;
the adaptation module is further configured to integrate at least one target device, and each second port is configured to connect the adaptation module with the at least one target device.
Usually, the adaptation modules are in one-to-one correspondence with the target devices, because this makes the data transmission path simpler, and there is no need to configure the transmission path for the adaptation modules or the target devices.
Secondly, in the embodiment of the present invention, a scheme capable of integrating a target device into an adapter is provided, and in practical applications, functions of the target device may also be added to the adapter, and data transmission is performed through the adapter, so that deployment cost of the target device can be greatly reduced, and meanwhile, the target device is modularly processed and is placed in the adapter, so that space occupied by the target device can be saved, and deployment of the whole data transmission system is facilitated.
A fourth aspect of the present invention provides a data transmission system, which includes at least one source device and at least one adapter, where the adapter is an adapter according to any one of the first aspect and the first to seventh possible implementation manners of the first aspect, and a plurality of target devices may all be connected to a same adapter module.
In the embodiment of the invention, a data transmission system is introduced, which comprises at least one indicator, an adapter combination consisting of at least one adapter and at least one target device, and can achieve the purpose of increasing interfaces by increasing the number of adapter modules, if a new target device needs to transmit data, the new target device can be directly accessed and transmitted through the unused adapter modules, so that the cable switching efficiency is improved, the labor cost is reduced, the hardware fault of the device caused by frequently plugging and unplugging cables is reduced, and the access capacity of the device can be further expanded.
In a fifth aspect, the present invention provides a method for data transmission, and how to perform data transmission by using an adapter will be described in detail below.
The adapter is usually used for carrying out rate conversion between different devices, and the adapter involved in the method can be arranged between an Emulator and an external target device, and is particularly suitable for transmitting emulation data between the Emulator and the target device. The adapter comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein N is a positive integer greater than or equal to 1, M is a positive integer greater than or equal to 1, the N access modules and the M adaptation modules are respectively connected with the switching module by cables inside the adapter, the Emulator is connected with the N access modules by cables provided by the Emulator, and the adaptation modules are also connected with target equipment by the cables, so that rate adaptation can be performed, and the material of the cables is not limited.
When data is transmitted from an Emulator to a target device, the data transmission method specifically includes:
the access module can convert the data of the Emulator cable into a data format suitable for intersection, correspondingly, the access module can also convert the data transmitted by the interaction module into a data format suitable for transmission on the Emulator cable, the access module is mainly used for acquiring first frequency data through at least one first port and sending the first frequency data to the exchange module, wherein the first frequency data is data to be subjected to frequency modulation, namely the first frequency data can be understood as data output from the Emulator and has lower running frequency;
the exchange module can acquire first frequency data from the access module, determine Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, and then send the first frequency data to the Y target adaptation modules, wherein Y is a positive integer greater than or equal to 1;
the adaptation module is used for carrying out frequency modulation on the first frequency data when the first frequency data is received from the exchange module, obtaining second frequency data, wherein the running speed of the second frequency data is far greater than that of the first frequency data, and then the adaptation module sends the second frequency data to at least one target device.
The embodiment of the invention provides a data transmission method, wherein an adapter applied to the data transmission method comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein the access module is used for acquiring first frequency data through the at least one first port and sending the first frequency data to the switching module, the switching module is used for determining Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, the switching module sends the first frequency data to the Y target adaptation modules, and when the adaptation modules receive the first frequency data from the switching module, the adaptation modules can perform frequency modulation on the first frequency data to obtain second frequency data and send the second frequency data to target equipment. Adopt above-mentioned adapter, can reach the purpose that the interface increases through the quantity that increases the adaptation module, if when there is new target device need transmit data, need not the plug and already by the cable that uses, but direct adaptation module access through not yet using can transmit data to promote cable switching efficiency, reduce the human cost, reduce simultaneously because the equipment hardware trouble that frequent plug cable caused, with this realization automation.
With reference to the fifth aspect of the embodiment of the present invention, in a first possible implementation manner, the switch module includes a control unit and a cross unit;
when data is transmitted from an Emulator to a target device, the data transmission method specifically includes:
the exchanging module obtains the first frequency data from the access module, determines Y target adaptation modules in the M adaptation modules according to a preset corresponding relationship, and sends the first frequency data to the Y target adaptation modules, which may include:
the control unit acquires a preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the cross unit acquires first frequency data, determines Y target adaptation modules in the M adaptation modules according to the preset corresponding relation acquired by the control unit, and sends the first frequency data to the Y target adaptation modules.
Secondly, in the embodiment of the present invention, a control unit in the adapter acquires a preset corresponding relationship, where the preset corresponding relationship is used to instruct a cross unit to receive and transmit first frequency data, the cross unit in the adapter acquires the first frequency data, determines Y target adaptation modules in the M adaptation modules according to the preset corresponding relationship acquired by the control unit, and sends the first frequency data to the Y target adaptation modules. Through the mode, the control unit and the cross unit are matched with each other, and the corresponding relations between different data and different clock periods are configured in the control unit, so that the corresponding data can be accurately output according to the corresponding relations, the reliability of data output is improved, and the efficiency of data simulation is improved.
With reference to the first implementation manner of the fifth aspect of the embodiment of the present invention, in a second possible implementation manner, the interleaving unit includes a clock interleaving subunit, a data interleaving subunit, and a sending subunit;
when data is transmitted from an Emulator to a target device, the data transmission method specifically includes:
the acquiring, by the intersection unit, the first frequency data, determining Y target adaptation modules of the M adaptation modules according to the preset correspondence relationship acquired by the control unit, and sending the first frequency data to the Y target adaptation modules may include:
the clock cross subunit acquires a clock identifier corresponding to the first frequency data and sends the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit acquires first frequency data and sends the first frequency data to the sending subunit;
the sending subunit determines Y target adaptation modules in the M adaptation modules according to the preset corresponding relation, and sends the first frequency data and the clock identifier corresponding to the first frequency data to the Y target adaptation modules.
In the embodiment of the present invention, a clock cross subunit inside the adapter acquires a clock identifier corresponding to the first frequency data, and sends the clock identifier corresponding to the first frequency data to the sending subunit, then the data cross subunit acquires the first frequency data, and sends the first frequency data to the sending subunit, and finally the sending subunit determines Y target adaptation modules among the M adaptation modules according to the preset corresponding relationship, and sends the first frequency data and the clock identifier corresponding to the first frequency data to the Y target adaptation modules. By the mode, the accuracy of the output sequence of the data can be ensured, and the reliability of data transmission is improved.
With reference to the second implementation manner of the fifth aspect of the embodiment of the present invention, in a third possible implementation manner, the adaptation module includes a determining unit, a frequency modulating unit, and a sending unit;
when data is transmitted from an Emulator to a target device, the data transmission method specifically includes:
when the first frequency data is received from the switching module, the adapting module performs frequency modulation on the first frequency data to obtain second frequency data, which may include:
when the clock identification corresponding to the first frequency data is received from the clock cross subunit and the first frequency data is received from the data cross subunit, the determining unit determines the transmission sequence of the data according to the clock identification corresponding to the first frequency data and the first frequency data;
the frequency modulation unit modulates the first frequency data into second frequency data;
the transmitting unit transmits the second frequency data to the target device according to the transmission order of the data.
Further, in the embodiment of the present invention, when receiving the clock identifier corresponding to the first frequency data and receiving the first frequency data from the data cross subunit, the determining unit determines a transmission sequence of the data according to the clock identifier corresponding to the first frequency data and the first frequency data, then frequency-modulates the first frequency data into the second frequency data, and finally sends the second frequency data to the target device according to the transmission sequence of the data. Through the mode, data can be smoothly transmitted between the Emulator and the target equipment, so that the practicability and feasibility of the scheme are improved. In addition, for the adapter module and the access module in the adapter, both can determine the sequence of data transmission according to the data sent by the exchange module and the corresponding clock identification thereof, thereby further improving the accuracy and consistency of data transmission.
With reference to the fifth aspect of the embodiment of the present invention and any one implementation manner of the first to third implementation manners of the fifth aspect, in a fourth possible implementation manner, the sending the first frequency data to the Y target adaptation modules may include:
when Y is equal to 1, the transmitting subunit transmits the first frequency data to the Y target adaptation modules.
Furthermore, the embodiment of the invention solves the problem of limited number of internal pins of the existing adapter, and because some pins can cause that in some cases, multi-bit data has to be uploaded on one pin by using a data compression technology, and the data compression technology can cause the performance of the adapter to be reduced. In the adapter provided by the invention, a plurality of Emulator cables can be accessed into the same adapter module through the access module and the exchange module, correspondingly, a plurality of cables led out from the same adapter module can also be accessed into different access modules through the exchange module, and different access modules are respectively connected with the Emulators through a plurality of Emulator cables.
With reference to the fifth aspect of the embodiment of the present invention and any one implementation manner of the first to third implementation manners of the fifth aspect, in a fifth possible implementation manner, the sending the first frequency data to the Y target adaptation modules may include:
and when Y is larger than 1, the sending subunit sends the first frequency data to the Y target adaptation modules respectively.
Furthermore, in the embodiment of the present invention, the problem of low utilization rate of the pins in the isolator cable is solved, and since the adapter may only need a plurality of pins in all the pins, but needs to connect one isolator cable, most of the remaining pins in the isolator cable are wasted. In the adapter provided by the invention, data of one Emulator cable can be accessed into a plurality of adaptation modules, and correspondingly, data of a plurality of adaptation modules can also be accessed into the Emulator through one Emulator cable, so that a plurality of groups of data can be transmitted in one Emulator cable, but not only one group of data is transmitted by one Emulator cable, thereby improving the utilization rate of pins in the Emulator cable and enhancing the practicability of the scheme.
A sixth aspect of the present invention provides a method for data transmission, and how to perform data transmission by using an adapter will be described in detail below.
The adapter is usually used for carrying out rate conversion between different devices, and the adapter involved in the method can be arranged between an Emulator and an external target device, and is particularly suitable for transmitting emulation data between the Emulator and the target device. The adapter comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein N is a positive integer greater than or equal to 1, M is a positive integer greater than or equal to 1, the N access modules and the M adaptation modules are respectively connected with the switching module by cables inside the adapter, the Emulator is connected with the N access modules by cables provided by the Emulator, and the adaptation modules are also connected with target equipment by the cables, so that rate adaptation can be performed, and the material of the cables is not limited.
When data is transmitted from the target device to the Emulator, the data transmission method specifically includes:
the adaptation module receives second frequency data through at least one second port, frequency-modulates the second frequency data into first frequency data, and sends the first frequency data to the exchange module;
the exchange module receives first frequency data sent by the adaptation module, determines X target access modules in the N access modules according to a preset corresponding relation, and sends the first frequency data to the X target access modules, wherein X is a positive integer greater than or equal to 1;
when first frequency data sent by the switching module is received, the access module sends the first frequency data to the source end device.
The embodiment of the invention provides a data transmission method, wherein an adapter applied to the data transmission method comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein the access module is used for acquiring first frequency data through the at least one first port and sending the first frequency data to the switching module, the switching module is used for determining Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, the switching module sends the first frequency data to the Y target adaptation modules, and when the adaptation modules receive the first frequency data from the switching module, the adaptation modules can perform frequency modulation on the first frequency data to obtain second frequency data and send the second frequency data to target equipment. Adopt above-mentioned adapter, can reach the purpose that the interface increases through the quantity that increases the adaptation module, if when there is new target device need transmit data, need not the plug and already by the cable that uses, but direct adaptation module access through not yet using can transmit data to promote cable switching efficiency, reduce the human cost, reduce simultaneously because the equipment hardware trouble that frequent plug cable caused, with this realization automation.
With reference to the sixth aspect of the embodiment of the present invention, in a first possible implementation manner, the switch module includes a control unit and a cross unit;
when data is transmitted from the target device to the Emulator, the data transmission method specifically includes:
the receiving, by the switching module, the first frequency data sent by the adaptation module, determining, according to a preset correspondence, X target access modules in the N access modules, and sending the first frequency data to the X target access modules may include:
the control unit acquires a preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the crossing unit acquires first frequency data, determines X target access modules in the N access modules according to the preset corresponding relation acquired by the control unit, and sends the first frequency data to the X target access modules.
Secondly, in the embodiment of the present invention, a control unit in the adapter first obtains a preset corresponding relationship, where the preset corresponding relationship is used to instruct the cross unit to receive and transmit the first frequency data, then the cross unit obtains the first frequency data, determines X target access modules in the N access modules according to the preset corresponding relationship obtained by the control unit, and sends the first frequency data to the X target access modules. Through the mode, the control unit and the cross unit are matched with each other, and the corresponding relations between different data and different clock periods are configured in the control unit, so that the corresponding data can be accurately output according to the corresponding relations, the reliability of data output is improved, and the efficiency of data simulation is improved.
With reference to the first implementation manner of the sixth aspect of the embodiment of the present invention, in a second possible implementation manner, the interleaving unit includes a clock interleaving subunit, a data interleaving subunit, and a sending subunit;
when data is transmitted from the target device to the Emulator, the data transmission method specifically includes:
the cross unit acquires the first frequency data, determines X target access modules in the N access modules according to the preset corresponding relation acquired by the control unit, and sends the first frequency data to the X target access modules, and the method comprises the following steps:
the clock cross subunit acquires a clock identifier corresponding to the first frequency data and sends the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit acquires first frequency data and sends the first frequency data to the sending subunit;
the sending subunit determines, according to a preset correspondence, X target access modules of the N access modules, and sends the first frequency data and the clock identifier corresponding to the first frequency data to the X target access modules.
In the embodiment of the present invention, a clock cross subunit inside the adapter first obtains a clock identifier corresponding to the first frequency data, sends the clock identifier corresponding to the first frequency data to the sending subunit, then sends the first frequency data to the sending subunit, and finally the sending subunit determines X target access modules among the N access modules according to a preset corresponding relationship, and sends the first frequency data and the clock identifier corresponding to the first frequency data to the X target access modules. By the mode, the accuracy of the output sequence of the data can be ensured, and the reliability of data transmission is improved.
With reference to the second implementation manner of the sixth aspect of the embodiment of the present invention, in a third possible implementation manner, the access module includes a determining unit and a sending unit;
when data is transmitted from the target device to the Emulator, the data transmission method specifically includes:
when receiving the first frequency data sent by the switching module, the sending, by the access module, the first frequency data to the source device may include:
when the clock identification corresponding to the first frequency data is received from the clock cross subunit and the first frequency data is received from the data cross subunit, the determining unit determines the transmission sequence of the data according to the clock identification corresponding to the first frequency data and the first frequency data;
the sending unit sends the first frequency data to the source end device according to the transmission sequence of the data.
Further, in the embodiment of the present invention, a unit included in the adaptation module in the adapter and a unit included in the access module are introduced. The adjusting unit in the adapter can perform frequency modulation on the data, so that the data can be smoothly transmitted between the indicator and the target device, and the practicability and feasibility of the scheme are improved. In addition, for the adaptation module and the access module, the order of data transmission can be determined according to the data sent by the exchange module and the corresponding clock identification thereof, so that the accuracy and consistency of data transmission are further improved.
With reference to the sixth aspect of the embodiment of the present invention, and any one implementation manner of the first to third implementation manners of the sixth aspect, in a fourth possible implementation manner, the sending the first frequency data to the target access module may include:
and when X is larger than 1, the sending subunit sends the first frequency data to the X target access modules respectively.
Furthermore, the embodiment of the invention solves the problem of limited number of internal pins of the existing adapter, and because some pins can cause that in some cases, multi-bit data has to be uploaded on one pin by using a data compression technology, and the data compression technology can cause the performance of the adapter to be reduced. In the adapter provided by the invention, a plurality of Emulator cables can be accessed into the same adapter module through the access module and the exchange module, correspondingly, a plurality of cables led out from the same adapter module can also be accessed into different access modules through the exchange module, and different access modules are respectively connected with the Emulators through a plurality of Emulator cables.
With reference to the sixth aspect of the embodiment of the present invention, and any one implementation manner of the first to third implementation manners of the sixth aspect, in a fifth possible implementation manner, the sending the first frequency data to the target access module may include:
when X equals 1, the transmitting subunit transmits the first frequency data to the X target access modules.
Furthermore, in the embodiment of the present invention, the problem of low utilization rate of the pins in the isolator cable is solved, and since the adapter may only need a plurality of pins in all the pins, but needs to connect one isolator cable, most of the remaining pins in the isolator cable are wasted. In the adapter provided by the invention, data of one Emulator cable can be accessed into a plurality of adaptation modules, and correspondingly, data of a plurality of adaptation modules can also be accessed into the Emulator through one Emulator cable, so that a plurality of groups of data can be transmitted in one Emulator cable, but not only one group of data is transmitted by one Emulator cable, thereby improving the utilization rate of pins in the Emulator cable and enhancing the practicability of the scheme.
According to the technical scheme, the embodiment of the invention has the following advantages:
the embodiment of the invention provides an adapter, which comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein the access modules are used for acquiring first frequency data through the at least one first port and sending the first frequency data to the switching module, the switching module is used for determining Y target adaptation modules in the M adaptation modules according to a preset corresponding relation and sending the first frequency data to the Y target adaptation modules, and when the adaptation modules receive the first frequency data from the switching module, the adaptation modules can perform frequency modulation on the first frequency data, obtain second frequency data and send the second frequency data to target equipment. Adopt above-mentioned adapter, can reach the purpose that the interface increases through the quantity that increases the adaptation module, if when there is new target device need transmit data, need not the plug and already by the cable that uses, but direct adaptation module access through not yet using can transmit data to promote cable switching efficiency, reduce the human cost, reduce simultaneously because the equipment hardware trouble that frequent plug cable caused, with this realization automation.
Drawings
FIG. 1 is a diagram illustrating a prior art hardware emulation tool directly coupled to a rate adapter;
FIG. 2 is a diagram of a prior art time-division multiplexing hardware simulation tool;
FIG. 3 is a schematic diagram of an adapter according to an embodiment of the present invention;
FIG. 4 is another schematic diagram of an adapter according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an embodiment of an internal data transmission path of an adapter in an embodiment of the present invention;
FIG. 6 is a schematic diagram of another embodiment of an internal data transmission path of an adapter in an embodiment of the present invention;
FIG. 7 is a diagram of another embodiment of an internal data transmission path of an adapter in an embodiment of the present invention;
FIG. 8 is a diagram of another embodiment of an internal data transmission path of an adapter in an embodiment of the present invention;
FIG. 9 is a diagram of another embodiment of an internal data transmission path of an adapter in an embodiment of the present invention;
FIG. 10 is a diagram of another embodiment of an internal data transmission path of an adapter in an embodiment of the present invention;
fig. 11 is a schematic diagram of an embodiment of a data transmission system according to an embodiment of the present invention;
FIG. 12 is a diagram of an embodiment of a method for data transmission according to an embodiment of the present invention;
fig. 13 is a schematic diagram of another embodiment of a data transmission method according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an adapter, a data transmission system and a data transmission method, which can achieve the purpose of increasing interfaces by increasing the number of adapter modules, and if new target equipment needs to transmit data, the used cables do not need to be plugged and unplugged, but the data can be transmitted by directly accessing through the unused adapter modules, so that the cable switching efficiency is improved, the labor cost is reduced, and hardware faults of the equipment caused by frequently plugging and unplugging cables are reduced, thereby realizing automation.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that the technical solution of the embodiment of the present invention may be applied to a hardware simulation tool in chip development, that is, an Emulator that needs to transmit simulation data with an external target device, but in an ICE application, the general operating rate of the Emulator is less than the operating rate of the target device, and the two sides of the Emulator cannot be directly connected because the speeds are different, which requires an adapter to convert the operating rates.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an adapter in an embodiment of the present invention, as shown in the figure, an adapter 110 is connected to an Emulator101 and a target device 109, where one Emulator in fig. 3 is only one schematic, and in an actual application, there may be multiple emulators, and the Emulator connects an access module 103 in the adapter 110 by using a cable 102 provided by itself. Inside the adapter 110, the access module 103 and the adaptation module 107 are connected to the switch module 105 by the cable 104 and the cable 106, respectively, and the adaptation module 107 is connected to the target device 109 by the cable 108, so that rate adaptation can be performed.
The access module 103 converts the data of the Emulator cable into a data format suitable for being crossed, and correspondingly, the access module 103 may also convert the data transmitted by the interaction module into a data format suitable for being transmitted on the Emulator cable.
The switch module 105 generally includes a plurality of input ports and a plurality of output ports, and can be configured to transmit data from a designated input port to a designated output port, such data transmission needs to rely on optical signal crossing and electrical signal crossing.
The adaptation module 107 mainly performs rate conversion, so that data can be transmitted between the Emulator and the target device.
The adapter 110 may further include at least one first port and at least one second port, in addition to the switching module 105, N access modules 103 and M adaptation modules 107(N is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1), where the first port is a port where the adapter 110 is connected to the Emulator101, and the second port is a port where the adapter 110 is connected to the target device 109.
The working principle of each module in the adapter 110 will be described separately from the difference of the data transmission directions, and when data is transmitted from the Emulator101 to the target device 109, the working flow of each module in the adapter 110 is as follows:
the access module 103 is configured to obtain first frequency data through at least one first port, and send the first frequency data to the exchange module 105, where the first frequency data is data to be frequency modulated, that is, the first frequency data may be understood as data output from the indicator 101, and has a lower operating frequency, generally below 4 MHz;
the switching module 105 is configured to obtain first frequency data from the access module 103, determine Y target adaptation modules in the M adaptation modules 107 according to a preset correspondence, and send the first frequency data to the Y target adaptation modules, where Y is a positive integer greater than or equal to 1;
the adaptation module 107 is configured to, when receiving the first frequency data from the switching module 105, perform frequency modulation on the first frequency data to obtain second frequency data, where an operation rate of the second frequency data may reach hundreds of MHz, and finally transmit the second frequency data to the at least one target device 109.
When data is transmitted from the target device 109 to the Emulator101, the workflow of each module in the adapter 110 is as follows:
the adaptation module 107 is configured to receive second frequency data through at least one second port, frequency-modulate the second frequency data into first frequency data, where the frequency of the second frequency data is greater than that of the first frequency data, and then send the first frequency data to the switching module 105;
the switching module 105 is configured to receive the first frequency data sent by the adaptation module 107, determine X target access modules in the N access modules 103 according to a preset correspondence, and send the first frequency data to the X target access modules, where X is a positive integer greater than or equal to 1;
the access module 103 is configured to, when receiving the first frequency data sent by the switching module 105, send the first frequency data to the source device, that is, to the Emulator 101.
The embodiment of the invention provides an adapter, which comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein the access modules are used for acquiring first frequency data through the at least one first port and sending the first frequency data to the switching module, the switching module is used for determining Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, the switching module sends the first frequency data to the Y target adaptation modules, and when the adaptation modules receive the first frequency data from the switching module, the adaptation modules can perform frequency modulation on the first frequency data, obtain second frequency data and send the second frequency data to target equipment. Adopt above-mentioned adapter, can reach the purpose that the interface increases through the quantity that increases the adaptation module, if when there is new target device need transmit data, need not the plug and already by the cable that uses, but direct adaptation module access through not yet using can transmit data to promote cable switching efficiency, reduce the human cost, reduce simultaneously because the equipment hardware trouble that frequent plug cable caused, with this realization automation.
Optionally, on the basis of the embodiment corresponding to fig. 3, in a first optional embodiment of the adapter provided in the embodiment of the present invention, the switching module may include a control unit and a crossing unit;
when the data is transmitted from the Emulator to the target device, the control unit is used for acquiring a preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the cross unit is used for acquiring first frequency data, determining Y target adaptation modules in the M adaptation modules according to the preset corresponding relation acquired by the control unit, and sending the first frequency data to the Y target adaptation modules.
Correspondingly, when the data is transmitted from the target equipment to the indicator, the control unit is used for acquiring a preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the crossing unit is used for acquiring first frequency data, determining X target access modules in the N access modules according to the preset corresponding relation acquired by the control unit, and sending the first frequency data to the X target access modules.
In this embodiment, the operation modes of the switching module will be described separately from the difference of the data transmission directions.
Specifically, if data is sent from an Emulator and transmitted to a target device through an adapter, all that needs to be done by the control unit and the cross unit included in the switching module is to determine a target adaptation module required for the data transmission of the current round. The control unit may be specifically a processor, and may configure the access modules and the adaptation modules with work functions, and configure paths of the intersection unit, which is equivalent to the "brain" in the adapter, such as to which target adaptation module or target adaptation modules the data transmitted in the current round should be handed over, and in what transmission sequence and transmission path the data should be sent to the target adaptation modules.
Under the general condition, more adapter modules are deployed in the adapter, only a plurality of adapter modules are needed to be adopted for data transmission, the cross unit also obtains first frequency data at the same time, and then Y adapter modules are determined from M adapter modules according to the preset corresponding relation indicated in the control unit and serve as target adapter modules, wherein Y is a positive integer larger than 1, and Y cannot be larger than M.
If data is sent from the target device and is transmitted to the Emulator through the adapter, all that needs to be done by the control unit and the cross unit included in the switching module is to determine the target access module required for the data transmission in the current round. The control unit can configure the work capability of the access module and the adaptation module, and configure the path of the intersection unit, and the user sets the logic used by the control unit in advance, such as which target access module or target access modules the data transmitted in the current round should be handed to, and in what transmission sequence and transmission path the data should be sent to the target access modules.
Under the general condition, more access modules are also deployed in the adapter, only a plurality of access modules are needed for data transmission in one round, the first frequency data are simultaneously acquired by the cross unit, then X access modules are determined from the N access modules according to the preset corresponding relation indicated in the control unit and serve as target access modules, wherein X is a positive integer greater than 1, and X cannot be greater than N.
Secondly, in the embodiment of the present invention, a unit included in the switching module in the adapter is introduced, wherein the switching module mainly includes a control unit and a cross unit, and through mutual cooperation between the control unit and the cross unit, a corresponding relationship between different data and different clock cycles is configured in the control unit, so that the corresponding data can be accurately output according to the corresponding relationship, thereby improving reliability of data output and facilitating improvement of efficiency of data simulation.
Optionally, on the basis of the first embodiment corresponding to fig. 3, in a second optional embodiment of the adapter provided in the embodiment of the present invention, the crossing unit may include a clock crossing subunit, a data crossing subunit, and a sending subunit;
when data is transmitted to the target device from the Emulator, the clock crossing subunit is configured to acquire a clock identifier corresponding to the first frequency data, and send the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit is used for acquiring first frequency data and sending the first frequency data to the sending subunit;
the sending subunit is configured to determine, according to a preset correspondence, Y target adaptation modules among the M adaptation modules, and send the first frequency data and the clock identifier corresponding to the first frequency data to the Y target adaptation modules.
Correspondingly, when data are transmitted from the target device to the indicator, the clock cross subunit is configured to acquire a clock identifier corresponding to the first frequency data, and send the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit is used for acquiring first frequency data and sending the first frequency data to the sending subunit;
the sending subunit is configured to determine, according to a preset correspondence, X target access modules from the N access modules, and send the first frequency data and the clock identifier corresponding to the first frequency data to the X target access modules.
In this embodiment, components included in the cross unit are further introduced, please refer to fig. 4, and fig. 4 is another schematic structural diagram of the adapter in the embodiment of the present invention, as shown in the figure, the switching module in the figure includes a control unit and a cross unit, where the cross unit further specifically includes a clock cross subunit, a data cross subunit and a sending subunit, it should be noted that the sending subunit may not appear in the cross unit as a separate module, and may be fused with the clock cross subunit and the data cross subunit as a logic function module, in other words, both the clock cross subunit and the data cross subunit may have functions of the sending subunit, and therefore, the structure of the sending subunit is not shown in fig. 4, but this does not cause a limitation to the present solution.
The operation of the interleaving units will be described separately from the difference in the data transmission direction.
Specifically, if data is transmitted from an indicator and is transmitted to a target device through an adapter, all that needs to be done by the clock interleaving subunit, the data interleaving subunit, and the transmitting subunit included in the interleaving unit is that the clock interleaving subunit acquires a clock identifier corresponding to the first frequency data, for example, the clock identifier of the first frequency data is "0101", and then the clock interleaving subunit transmits an identifier "0101" to the transmitting unit, where the clock interleaving subunit includes a plurality of input ports and a plurality of output ports, and the configuration of the clock interleaving subunit can know which output port or ports the clock identifier of the first frequency data input from the input ports should be output from through the control unit. Similarly, the data cross subunit functions similarly, and includes a plurality of input ports and a plurality of output ports, and it can be understood from the configuration of the control unit, from which output port or output ports the first frequency data input from the input ports should be output.
And finally, the sending subunit determines Y target adaptation modules from the M adaptation modules according to the preset corresponding relation configured by the control unit, and sends the first frequency data transmitted by the data cross subunit and the clock identification of the first frequency number transmitted by the clock cross subunit to the Y target adaptation modules.
If data is transmitted from a target device and is transmitted to an Emulator through an adapter, all that needs to be done by a clock cross subunit, a data cross subunit and a transmission subunit included in a cross unit is that the clock cross subunit acquires a clock identifier corresponding to first frequency data, wherein the clock cross subunit includes a plurality of input ports and a plurality of output ports, and the configuration thereof by the control unit can know from which output port or ports the clock identifier of the first frequency data input from the input ports should be output. Similarly, the data cross subunit functions similarly, and includes a plurality of input ports and a plurality of output ports, and it can be understood from the configuration of the control unit, from which output port or output ports the first frequency data input from the input ports should be output.
And finally, the sending subunit determines X target access modules from the N access modules according to the preset corresponding relation configured by the control unit, and sends the first frequency data transmitted by the data cross subunit and the clock identification of the first frequency number transmitted by the clock cross subunit to the X target access modules.
In the embodiment of the present invention, the sub-units included in the cross unit in the adapter are introduced, where the cross unit mainly includes a clock cross sub-unit, a data cross sub-unit, and a sending sub-unit, and the clock cross sub-unit and the data cross unit can send the first frequency data and the corresponding clock identifier to the sending sub-unit through the preset relationship set in the control unit, so as to ensure accurate output sequence of the data and improve reliability of data transmission.
Optionally, on the basis of the second embodiment corresponding to fig. 3, in a third optional embodiment of the adapter provided in the embodiment of the present invention, the adaptation module may include a first determining unit, a frequency modulating unit, and a first transmitting unit;
when data is transmitted from an Emulator to a target device, the first determining unit is configured to determine a transmission sequence of the data according to a clock identifier corresponding to the first frequency data and the first frequency data when the clock identifier corresponding to the first frequency data is received from the clock crossing subunit and the first frequency data is received from the data crossing subunit;
the frequency modulation unit is used for modulating the frequency of the first frequency data into second frequency data;
the first sending unit is used for sending the second frequency data to the target equipment according to the transmission sequence of the data.
Correspondingly, when data are transmitted from the target equipment to the indicator, the access module comprises a second determining unit and a second sending unit;
the second determining unit is used for determining the transmission sequence of the data according to the clock identifier corresponding to the first frequency data and the first frequency data when the clock identifier corresponding to the first frequency data is received from the clock crossing subunit and the first frequency data is received from the data crossing subunit;
the second sending unit is configured to send the first frequency data to the source end device according to the transmission sequence of the data.
In this embodiment, after the switching module determines the clock identifiers of the first frequency data and the first frequency data to be transmitted, the working modes of the adaptation module or the access module may be introduced from different data transmission directions.
Specifically, if data is sent from an indicator and is transmitted to a target device through an adapter, the data enters an adaptation module, and what needs to be done by a first determining unit, a frequency modulation unit and a first sending unit included in the adaptation module is that when the first determining unit receives a clock identifier corresponding to first frequency data sent by a clock cross subunit and receives first frequency data sent by a data cross subunit, the order of data transmission in the current round can be determined according to an association relationship between the clock identifier and the data, then, the frequency modulation unit performs frequency modulation processing on the received first frequency data to obtain second frequency data with higher frequency, and finally, the first sending unit can send the second frequency data to the target device according to the data transmission order.
If the data is sent from the target device and is transmitted to the Emulator through the adapter, the data enters the access module, and what the second determining unit and the second sending unit included in the access module need to do is that, when the second determining unit receives the clock identifier corresponding to the first frequency data sent by the clock cross subunit and receives the first frequency data sent by the data cross subunit, then the sequence of data transmission in the current round can be determined according to the association relationship between the clock identifier and the data, and then the second sending unit sends the first frequency data to the source device, namely the Emulator, according to the data transmission sequence.
Further, in the embodiment of the present invention, a unit included in the adaptation module in the adapter and a unit included in the access module are introduced. The adjusting unit in the adapter can perform frequency modulation on the data, so that the data can be smoothly transmitted between the indicator and the target device, and the practicability and feasibility of the scheme are improved. In addition, for the adaptation module and the access module, the order of data transmission can be determined according to the data sent by the exchange module and the corresponding clock identification thereof, so that the accuracy and consistency of data transmission are further improved.
Optionally, on the basis of the first to third embodiments corresponding to fig. 3 and fig. 3, in a fourth optional embodiment of the adapter provided in the embodiment of the present invention,
the sending subunit is specifically configured to send the first frequency data to the Y target adaptation modules when Y equals 1, when data is transmitted from the Emulator to the target device.
Accordingly, when data is transmitted from the target device to the indicator, the sending subunit is specifically configured to send the first frequency data to the X target access modules respectively when X is greater than 1.
In this embodiment, the Emulator may adopt a plurality of Emulator cables to connect with one adapter at the same time, and may also receive data transmitted from one adapter through the plurality of Emulator cables.
Specifically, if data is sent from an Emulator and is transmitted to a target device through an adapter, please refer to fig. 5, fig. 5 is a schematic diagram of an embodiment of an internal data transmission path of the adapter in an embodiment of the present invention, as shown in the figure, two Emulator cables in an Emulator are simultaneously connected to an access module 2 and an access module N in the adapter, it can be understood that fig. 5 is only a schematic diagram, and in an actual application, the Emulator may further have more Emulator cables connected to the adapter at the same time.
As can be seen from fig. 5, the access module 2 and the access module N are both connected to the cross-over unit in the switching module, respectively, and are capable of transmitting first frequency data synchronously or asynchronously, and these first frequency data are both intended for emulation by the same target device 2. The cross unit transmits the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, the sending subunit determines a corresponding receiving object, namely, the adaptation module 2 connected with the target device 2, and then the cross unit sends the first frequency data and the clock identifier thereof to the adaptation module 2. At this time, the adaptation modules 2 are target adaptation modules, and the number of the adaptation modules is 1. And the path of the sending subunit for data transmission is a path from the sending subunit to the same adaptation module.
If data is sent from a target device and is transmitted to an indicator through an adapter, please refer to fig. 6, where fig. 6 is a schematic diagram of an embodiment of an internal data transmission path of the adapter in an embodiment of the present invention, as shown in the diagram, two cables led out from an adaptation module 2 are connected to a cross unit, and then are respectively connected to an access module 2 and an access module N by the cross unit, and finally, the access module 2 and the access module N are respectively connected to the indicator through an indicator cable.
As can be seen from fig. 5, both the adaptation module 2 and the adaptation module M are connected to the cross-over unit in the switching module, respectively, and are capable of transmitting the first frequency data synchronously or asynchronously. The cross unit transmits the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, the sending subunit determines corresponding receiving objects, namely, the access module 2 and the access module N, and then the sending subunit sends the first frequency data and the clock identifier thereof to the access module 2 and the access module N through different paths respectively. At this time, the access module 2 and the access module N are two target access modules, that is, X is 2.
Furthermore, the embodiment of the invention solves the problem of limited number of internal pins of the existing adapter, and because some pins can cause that in some cases, multi-bit data has to be uploaded on one pin by using a data compression technology, and the data compression technology can cause the performance of the adapter to be reduced. In the adapter provided by the invention, a plurality of Emulator cables can be accessed into the same adapter module through the access module and the exchange module, correspondingly, a plurality of cables led out from the same adapter module can also be accessed into different access modules through the exchange module, and different access modules are respectively connected with the Emulators through a plurality of Emulator cables.
Optionally, on the basis of the first to third embodiments corresponding to fig. 3 and fig. 3, in a fifth alternative embodiment of the adapter provided by the embodiment of the present invention,
when the data is transmitted from the Emulator to the target device, the sending subunit is specifically configured to send the first frequency data to the Y target adaptation modules, respectively, when Y is greater than 1.
Accordingly, when data is transmitted from the target device to the indicator, the transmitting subunit is specifically configured to transmit the first frequency data to the X target access modules when X equals 1.
In this embodiment, the Emulator may adopt one Emulator cable adapter to connect, transmit multiple sets of data through one cable, and receive multiple sets of data transmitted from the adapter through one Emulator cable.
Specifically, if data is sent from an Emulator and is transmitted to a target device through an adapter, please refer to fig. 7, fig. 7 is a schematic diagram of an embodiment of an internal data transmission path of the adapter in an embodiment of the present invention, as shown in the figure, one of the Emulator cables is simultaneously connected to an access module 2 in the adapter, it can be understood that fig. 7 is only a schematic diagram, and in an actual application, the Emulator cable may be connected to other access modules.
As can be seen from fig. 7, the access module 2 may be connected to the cross-over unit in the switching module via at least one path and receive first frequency data, which may be emulated by different target devices. The crossing unit transmits the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, the sending subunit determines corresponding receiving objects, namely the adaptation module 2 and the adaptation module M, and then the crossing unit sends the first frequency data and the clock identifier thereof to the adaptation module 2 and the adaptation module M through different paths respectively. At this time, the adaptation module 2 and the adaptation module M are target adaptation modules, and the number Y is 2. And the paths of the sending subunit for data transmission are two paths from the sending subunit to the adaptation module.
If data is sent from a target device and is transmitted to an Emulator through an adapter, please refer to fig. 8, where fig. 8 is a schematic diagram of an embodiment of an internal data transmission path of the adapter in the embodiment of the present invention, as shown in the drawing, a cable is led out from an adaptation module 2, and a cable is also led out from an adaptation module M, and is respectively connected to a cross unit through different paths, and then is connected to an access module 2 through the cross unit, and finally, the access module 2 is connected to the Emulator through an Emulator cable.
As can be seen from fig. 8, both the adaptation module 2 and the adaptation module M are connected to the cross-over unit in the switching module, respectively, and are capable of transmitting the first frequency data synchronously or asynchronously. The cross unit transmits the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, the sending subunit determines a corresponding receiving object, namely, the receiving object corresponds to the access module 2, and then the sending subunit sends the first frequency data and the clock identifier to the access module 2. In this case, the access module 2 is the target access module, i.e. X is 1.
It should be noted that, in practical applications, a plurality of adaptation modules may also need to transmit the first frequency data to the same access module through the switching module, which is not limited herein,
furthermore, in the embodiment of the present invention, the problem of low utilization rate of the pins in the isolator cable is solved, and since the adapter may only need a plurality of pins in all the pins, but needs to connect one isolator cable, most of the remaining pins in the isolator cable are wasted. In the adapter provided by the invention, data of one Emulator cable can be accessed into a plurality of adaptation modules, and correspondingly, data of a plurality of adaptation modules can also be accessed into the Emulator through one Emulator cable, so that a plurality of groups of data can be transmitted in one Emulator cable, but not only one group of data is transmitted by one Emulator cable, thereby improving the utilization rate of pins in the Emulator cable and enhancing the practicability of the scheme.
Optionally, on the basis of the embodiment corresponding to fig. 3, in a sixth optional embodiment of the adapter provided in the embodiment of the present invention, the access module may include an access board and a data unit, where the access board and the data unit are detachably connected;
the access board is used for transmitting the first frequency data;
when data is transmitted from the Emulator to the target device, the data unit is configured to receive first frequency data and send the first frequency data to the switching module;
accordingly, when data is transmitted from the target device to the indicator, the data unit is configured to receive the first frequency data and transmit the first frequency data to the access board.
In this embodiment, the access module may be specifically formed by combining the access board and the data unit, that is, the access board and the data unit are detachably connected.
Referring to fig. 9, fig. 9 is another embodiment of an internal data transmission path of an adapter according to an embodiment of the present invention, as shown in the figure, an access board is a physical connection board, and mainly is used for transmitting an interface signal, and data does not need to be processed, but a data unit may receive data transmitted by an Emulator or a switch module, and then process the data according to internal logic, for example, the data transmitted from the Emulator is directly input to the data unit through the access board, and the data unit obtains the data and a clock identifier corresponding to the data according to the internal logic, and sends the data and the clock identifier to a specified switch module as required.
The access board is two or more separate structural members, and has a lower cost compared with a data unit because of no logic processing function, and is an integral structural member with a large number of styles including rectangular boards, polygonal boards, special-shaped boards, and the like, and the types of the access board generally include a corner brace connecting board, a tie bar connecting board, a horizontal brace connecting board, and an inter-column brace connecting board.
Secondly, in the embodiment of the invention, the problem that an adapter developed by one manufacturer cannot be applied to an Emulator developed by another manufacturer due to different cable connectors of the emulators produced by different manufacturers is solved, and the access module in the adapter is mainly subjected to splitting processing to obtain the access board and the data unit, wherein the access board only performs physical interface conversion without data processing, so that when the emulators and the adapters between the manufacturers cannot be matched, only the access board with lower cost needs to be replaced, thereby reducing the cost of adapting the adapter and increasing the universality of the scheme.
Optionally, on the basis of the embodiment corresponding to fig. 3, in a seventh optional embodiment of the adapter provided in the embodiment of the present invention, the adapter further includes at least one target device;
the adaptation module is further configured to integrate at least one target device, and each second port is configured to connect the adaptation module with the at least one target device.
In this embodiment, at least one target device may be integrated into the adapter, specifically, the adapter module and the target device are connected through the second port.
Referring to fig. 10, fig. 10 is a schematic diagram of another embodiment of an internal data transmission path of an adapter according to an embodiment of the present invention, as shown in the figure, a target device 1 is connected to an adaptation module 1, a target device 2 is connected to an adaptation module 2, and so on, a target device Q is connected to an adaptation module M, and a connection manner thereof may be a cable connection or a communication connection, which is not limited herein.
Usually, the adaptation modules are in one-to-one correspondence with the target devices, because this makes the data transmission path simpler, and there is no need to configure the transmission path for the adaptation modules or the target devices. Meanwhile, although the target device is represented as a hardware device in fig. 10, this should not be construed as limiting the present adapter, and the target device may also be a module having the same or similar functions as the target device and integrated with the adaptation module.
Secondly, in the embodiment of the present invention, a scheme capable of integrating a target device into an adapter is provided, and in practical applications, functions of the target device may also be added to the adapter, and data transmission is performed through the adapter, so that deployment cost of the target device can be greatly reduced, and meanwhile, the target device is modularly processed and is placed in the adapter, so that space occupied by the target device can be saved, and deployment of the whole data transmission system is facilitated.
Referring to fig. 11, the data transmission system in the embodiment of the present invention includes at least one indicator, an adapter combination composed of at least one adapter, and at least one target device, where a plurality of target devices may all be connected to the same adapter module. The adapter in the data transmission system is the adapter described in any embodiment corresponding to fig. 3, and is not described herein again.
In the embodiment of the invention, a data transmission system is introduced, which comprises at least one indicator, an adapter combination consisting of at least one adapter and at least one target device, and can achieve the purpose of increasing interfaces by increasing the number of adapter modules, if a new target device needs to transmit data, the new target device can be directly accessed and transmitted through the unused adapter modules, so that the cable switching efficiency is improved, the labor cost is reduced, the hardware fault of the device caused by frequently plugging and unplugging cables is reduced, and the access capacity of the device can be further expanded.
With reference to fig. 12, a data transmission method for an adapter and a data transmission system applied by the adapter is described in detail below, taking an example that an Emulator sends data to a target device through the adapter as an example, and an embodiment of the data transmission method provided by the embodiment of the present invention includes:
201. an access module in an adapter acquires first frequency data through at least one first port and sends the first frequency data to a switching module, wherein the first frequency data is data to be subjected to frequency modulation, the adapter comprises at least one first port, at least one second port, the switching module, N access modules and M adaptation modules, N is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1;
in this embodiment, an access module in the adapter acquires first frequency data through at least one first port, and sends the first frequency data to an exchange module in the adapter, where the first frequency data is data to be frequency modulated, that is, the first frequency data may be understood as data output from an Emulator, and has a lower operating frequency, which is generally below 4 MHz.
202. The exchange module acquires first frequency data from the access module and determines Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, wherein Y is a positive integer greater than or equal to 1;
in this embodiment, the switching module in the adapter acquires the first frequency data from the access module in the adapter, and then determines Y target adaptation modules in the M adaptation modules according to a preset correspondence, where Y is a positive integer greater than or equal to 1.
203. The exchange module sends the first frequency data to Y target adaptation modules;
in this embodiment, the switching module in the adapter sends the first frequency data to the Y target adaptation modules.
204. When the first frequency data is received from the exchange module, the adaptation module carries out frequency modulation on the first frequency data to obtain second frequency data, and sends the second frequency data to the target device.
In this embodiment, when the adaptation module in the adapter receives the first frequency data from the switching module 1, the first frequency data may be frequency-modulated to obtain second frequency data, where the operating rate of the second frequency data may reach hundreds of MHz, and finally the second frequency data is sent to at least one target device.
The embodiment of the invention provides a data transmission method, which comprises the steps that firstly, an access module in an adapter acquires first frequency data through at least one first port, the first frequency data are sent to a switching module, then the switching module in the adapter determines Y target adaptation modules in M adaptation modules according to a preset corresponding relation, the switching module sends the first frequency data to the Y target adaptation modules, and when the adaptation modules in the adapter receive the first frequency data from the switching module, the first frequency data can be subjected to frequency modulation, second frequency data are obtained, and the second frequency data are sent to target equipment. Adopt above-mentioned adapter, can reach the purpose that the interface increases through the quantity that increases the adaptation module, if when there is new target device need transmit data, need not the plug and already by the cable that uses, but direct adaptation module access through not yet using can transmit data to promote cable switching efficiency, reduce the human cost, reduce simultaneously because the equipment hardware trouble that frequent plug cable caused, with this realization automation.
Optionally, on the basis of the embodiment corresponding to fig. 12, in a first optional embodiment of the method for data transmission provided in the embodiment of the present invention, the switching module includes a control unit and a crossing unit;
the exchanging module obtains the first frequency data from the access module, determines Y target adaptation modules in the M adaptation modules according to a preset corresponding relationship, and sends the first frequency data to the Y target adaptation modules, which may include:
the control unit acquires a preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the cross unit acquires first frequency data, determines Y target adaptation modules in the M adaptation modules according to the preset corresponding relation acquired by the control unit, and sends the first frequency data to the Y target adaptation modules.
In this embodiment, when data is sent from an Emulator and is transmitted to a target device through an adapter, what the control unit and the cross unit included in the switch module in the adapter need to do is to determine a target adaptation module required for data transmission in the current round. The control unit may be specifically a processor, and may configure the access modules and the adaptation modules with work functions, and configure paths of the intersection unit, which is equivalent to the "brain" in the adapter, such as to which target adaptation module or target adaptation modules the data transmitted in the current round should be handed over, and in what transmission sequence and transmission path the data should be sent to the target adaptation modules.
Under the general condition, more adapter modules are deployed in the adapter, only a plurality of adapter modules are needed to be adopted for data transmission, the cross unit also obtains first frequency data at the same time, and then Y adapter modules are determined from M adapter modules according to the preset corresponding relation indicated in the control unit and serve as target adapter modules, wherein Y is a positive integer larger than 1, and Y cannot be larger than M.
Secondly, in the embodiment of the present invention, a control unit in the adapter acquires a preset corresponding relationship, where the preset corresponding relationship is used to instruct a cross unit to receive and transmit first frequency data, the cross unit in the adapter acquires the first frequency data, determines Y target adaptation modules in the M adaptation modules according to the preset corresponding relationship acquired by the control unit, and sends the first frequency data to the Y target adaptation modules. Through the mode, the control unit and the cross unit are matched with each other, and the corresponding relations between different data and different clock periods are configured in the control unit, so that the corresponding data can be accurately output according to the corresponding relations, the reliability of data output is improved, and the efficiency of data simulation is improved.
Optionally, on the basis of the first embodiment corresponding to fig. 12, in a second optional embodiment of the method for data transmission provided in the embodiment of the present invention, the crossing unit may specifically include a clock crossing subunit, a data crossing subunit, and a sending subunit;
the acquiring, by the intersection unit, the first frequency data, determining Y target adaptation modules of the M adaptation modules according to the preset correspondence relationship acquired by the control unit, and sending the first frequency data to the Y target adaptation modules may include:
the clock cross subunit acquires a clock identifier corresponding to the first frequency data and sends the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit acquires first frequency data and sends the first frequency data to the sending subunit;
the sending subunit determines Y target adaptation modules in the M adaptation modules according to the preset corresponding relation, and sends the first frequency data and the clock identifier corresponding to the first frequency data to the Y target adaptation modules.
In this embodiment, when data is transmitted from an Emulator and is transmitted to a target device through an adapter, what the clock interleaving subunit, the data interleaving subunit, and the transmitting subunit included in the interleaving unit in the adapter need to do is that the clock interleaving subunit acquires a clock identifier corresponding to first frequency data, for example, the clock identifier of the first frequency data is "0101", and then the clock interleaving subunit transmits the identifier "0101" to the transmitting unit, where the clock interleaving subunit includes a plurality of input ports and a plurality of output ports, and the configuration of the clock interleaving subunit can know from which output port or output ports the clock identifier of the first frequency data input from the input ports should be output. Similarly, the data cross subunit functions similarly, and includes a plurality of input ports and a plurality of output ports, and it can be understood from the configuration of the control unit, from which output port or output ports the first frequency data input from the input ports should be output.
And finally, the sending subunit determines Y target adaptation modules from the M adaptation modules according to the preset corresponding relation configured by the control unit, and sends the first frequency data transmitted by the data cross subunit and the clock identification of the first frequency number transmitted by the clock cross subunit to the Y target adaptation modules.
In the embodiment of the present invention, a clock cross subunit inside the adapter acquires a clock identifier corresponding to the first frequency data, and sends the clock identifier corresponding to the first frequency data to the sending subunit, then the data cross subunit acquires the first frequency data, and sends the first frequency data to the sending subunit, and finally the sending subunit determines Y target adaptation modules among the M adaptation modules according to the preset corresponding relationship, and sends the first frequency data and the clock identifier corresponding to the first frequency data to the Y target adaptation modules. By the mode, the accuracy of the output sequence of the data can be ensured, and the reliability of data transmission is improved.
Optionally, on the basis of the second embodiment corresponding to fig. 12, in a third optional embodiment of the method for data transmission provided in the embodiment of the present invention, the adaptation module may include a determining unit, a frequency modulation unit, and a sending unit;
when the first frequency data is received from the switching module, the adapting module performs frequency modulation on the first frequency data to obtain second frequency data, which may include:
when the clock identification corresponding to the first frequency data is received from the clock cross subunit and the first frequency data is received from the data cross subunit, the determining unit determines the transmission sequence of the data according to the clock identification corresponding to the first frequency data and the first frequency data;
the frequency modulation unit modulates the first frequency data into second frequency data;
the transmitting unit transmits the second frequency data to the target device according to the transmission order of the data.
In this embodiment, when data is sent from an indicator and is transmitted to a target device through an adapter, what the first determining unit, the frequency modulating unit, and the first transmitting unit included in the adapter module need to do is that, when the first determining unit receives a clock identifier corresponding to first frequency data sent by the clock cross subunit and receives first frequency data sent by the data cross subunit, the sequence of data transmission in the current round may be determined according to an association relationship between the clock identifier and the data, then, the frequency modulating unit needs to do work to perform frequency modulation processing on the received first frequency data to obtain second frequency data with higher frequency, and finally, the first transmitting unit may send the second frequency data to the target device according to the data transmission sequence.
Further, in the embodiment of the present invention, when receiving the clock identifier corresponding to the first frequency data and receiving the first frequency data from the data cross subunit, the determining unit determines a transmission sequence of the data according to the clock identifier corresponding to the first frequency data and the first frequency data, then frequency-modulates the first frequency data into the second frequency data, and finally sends the second frequency data to the target device according to the transmission sequence of the data. Through the mode, data can be smoothly transmitted between the Emulator and the target equipment, so that the practicability and feasibility of the scheme are improved. In addition, for the adapter module and the access module in the adapter, both can determine the sequence of data transmission according to the data sent by the exchange module and the corresponding clock identification thereof, thereby further improving the accuracy and consistency of data transmission.
Optionally, on the basis of any one of the first to third embodiments corresponding to fig. 12 and fig. 12, in a fourth optional embodiment of the method for data transmission provided in the embodiment of the present invention, sending the first frequency data to the Y target adaptation modules may include:
when Y is equal to 1, the transmitting subunit transmits the first frequency data to the Y target adaptation modules.
In this embodiment, data is sent from the Emulator and transmitted to the target device through the adapter. It is assumed that the access module a and the access module b are connected to the cross-over unit in the switching module, respectively, and are capable of transmitting first frequency data synchronously or asynchronously, and these first frequency data are both intended for emulation by the same target device. The cross unit transmits the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, the sending subunit determines a corresponding receiving object, namely an adaptation module connected with the target device, and then the cross unit sends the first frequency data and the clock identifier thereof to the same adaptation module.
Furthermore, the embodiment of the invention solves the problem of limited number of internal pins of the existing adapter, and because some pins can cause that in some cases, multi-bit data has to be uploaded on one pin by using a data compression technology, and the data compression technology can cause the performance of the adapter to be reduced. In the adapter provided by the invention, a plurality of Emulator cables can be accessed into the same adapter module through the access module and the exchange module, correspondingly, a plurality of cables led out from the same adapter module can also be accessed into different access modules through the exchange module, and different access modules are respectively connected with the Emulators through a plurality of Emulator cables.
Optionally, on the basis of any one of the first to third embodiments corresponding to fig. 12 and fig. 12, in a fifth optional embodiment of the method for data transmission provided by the embodiment of the present invention,
sending the first frequency data to Y target adaptation modules, including:
and when Y is larger than 1, the sending subunit sends the first frequency data to the Y target adaptation modules respectively.
In this embodiment, data is sent from an Emulator and transmitted to the target device through an adapter, the access module may be connected to the cross unit in the switch module through at least one path and receive first frequency data, and the first frequency data may be used for emulation of different target devices. The cross unit transmits the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, the sending subunit determines the corresponding receiving object, assuming as an adaptation module a and an adaptation module b, and then the cross unit sends the first frequency data and the clock identifier thereof to the adaptation module a and the adaptation module b through different paths respectively.
Furthermore, in the embodiment of the present invention, the problem of low utilization rate of the pins in the isolator cable is solved, and since the adapter may only need a plurality of pins in all the pins, but needs to connect one isolator cable, most of the remaining pins in the isolator cable are wasted. In the adapter provided by the invention, data of one Emulator cable can be accessed into a plurality of adaptation modules, and correspondingly, data of a plurality of adaptation modules can also be accessed into the Emulator through one Emulator cable, so that a plurality of groups of data can be transmitted in one Emulator cable, but not only one group of data is transmitted by one Emulator cable, thereby improving the utilization rate of pins in the Emulator cable and enhancing the practicability of the scheme.
Referring to fig. 13, taking an example that a target device sends data to an indicator through an adapter as an example, an embodiment of a method for data transmission according to the present invention includes:
301. an adapter module in the adapter receives second frequency data through at least one second port and frequency-modulates the second frequency data into first frequency data, wherein the adapter comprises at least one first port, at least one second port, a switching module, N access modules and M adapter modules, N is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1;
in this embodiment, the adapter module in the adapter may receive the second frequency data through the at least one second port, and then frequency-modulate the second frequency data into the first frequency data, where the second frequency data is data sent by the target device, an operation rate of the second frequency data may reach hundreds of MHz, and the first frequency data has a lower operation frequency, which is usually below 4 MHz.
302. An adaptation module in the adapter sends first frequency data to a switching module;
in this embodiment, the adaptation module in the adapter sends the first frequency data to the switching module.
303. The exchange module receives the first frequency data sent by the adaptation module and determines X target access modules in the N access modules according to a preset corresponding relation, wherein X is a positive integer greater than or equal to 1;
in this embodiment, an exchange module in the adapter receives the first frequency data sent by the adaptation module, and then determines X target access modules in the N access modules according to a preset corresponding relationship, where X is a positive integer greater than or equal to 1.
304. The exchange module sends the first frequency data to X target access modules;
in this embodiment, the switching module in the adaptor sends the first frequency data to the X target access modules,
305. when first frequency data sent by the switching module is received, the access module sends the first frequency data to the source end device.
In this embodiment, when the access module in the adapter receives the first frequency data sent by the exchange module, the access module sends the first frequency data to the Emulator.
The embodiment of the invention provides a data transmission method, wherein an adapter applied to the data transmission method comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein the access module is used for acquiring first frequency data through the at least one first port and sending the first frequency data to the switching module, the switching module is used for determining Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, the switching module sends the first frequency data to the Y target adaptation modules, and when the adaptation modules receive the first frequency data from the switching module, the adaptation modules can perform frequency modulation on the first frequency data to obtain second frequency data and send the second frequency data to target equipment. Adopt above-mentioned adapter, can reach the purpose that the interface increases through the quantity that increases the adaptation module, if when there is new target device need transmit data, need not the plug and already by the cable that uses, but direct adaptation module access through not yet using can transmit data to promote cable switching efficiency, reduce the human cost, reduce simultaneously because the equipment hardware trouble that frequent plug cable caused, with this realization automation.
Optionally, on the basis of the embodiment corresponding to fig. 13, in a first optional embodiment of the method for data transmission provided in the embodiment of the present invention, the switching module includes a control unit and a cross unit;
the receiving, by the switching module, the first frequency data sent by the adaptation module, determining, according to a preset correspondence, X target access modules in the N access modules, and sending the first frequency data to the X target access modules may include:
the control unit acquires a preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the cross unit acquires first frequency data, determines X target access modules in the N access modules according to the preset corresponding relation acquired by the control unit, and sends the first frequency data to the X target access modules.
In this embodiment, if data is sent from a target device and is transmitted to an Emulator through an adapter, what the control unit and the interleaving unit included in the switching module need to do is to determine a target access module required for data transmission in the current round. The control unit can configure the access module and the adaptation module with work functions, and configure the path of the cross unit, such as which target access module or target access modules the data transmitted in the current round should be handed over to, and in what transmission sequence and transmission path the data should be sent to the target access modules.
Under the general condition, more access modules are also deployed in the adapter, only a plurality of access modules are needed for data transmission in one round, the first frequency data are simultaneously acquired by the cross unit, then X access modules are determined from the N access modules according to the preset corresponding relation indicated in the control unit and serve as target access modules, wherein X is a positive integer greater than 1, and X cannot be greater than N.
Secondly, in the embodiment of the present invention, a control unit in the adapter first obtains a preset corresponding relationship, where the preset corresponding relationship is used to instruct the cross unit to receive and transmit the first frequency data, then the cross unit obtains the first frequency data, determines X target access modules in the N access modules according to the preset corresponding relationship obtained by the control unit, and sends the first frequency data to the X target access modules. Through the mode, the control unit and the cross unit are matched with each other, and the corresponding relations between different data and different clock periods are configured in the control unit, so that the corresponding data can be accurately output according to the corresponding relations, the reliability of data output is improved, and the efficiency of data simulation is improved.
Optionally, on the basis of the first embodiment corresponding to fig. 13, in a second optional embodiment of the method for data transmission provided in the embodiment of the present invention, the crossing unit includes a clock crossing subunit, a data crossing subunit, and a sending subunit;
the acquiring, by the intersection unit, the first frequency data, determining, according to the preset correspondence relationship acquired by the control unit, X target access modules in the N access modules, and sending the first frequency data to the X target access modules may include:
the clock cross subunit acquires a clock identifier corresponding to the first frequency data and sends the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit acquires first frequency data and sends the first frequency data to the sending subunit;
the sending subunit determines, according to a preset correspondence, X target access modules of the N access modules, and sends the first frequency data and the clock identifier corresponding to the first frequency data to the X target access modules.
In this embodiment, if data is transmitted from a target device and is transmitted to an Emulator through an adapter, all that needs to be done by a clock cross subunit, a data cross subunit and a transmission subunit included in a cross unit is that the clock cross subunit acquires a clock identifier corresponding to first frequency data, where the clock cross subunit includes a plurality of input ports and a plurality of output ports, and the configuration of the clock cross subunit by the control unit can know from which output port or output ports the clock identifier of the first frequency data input from the input port should be output. Similarly, the data cross subunit functions similarly, and includes a plurality of input ports and a plurality of output ports, and it can be understood from the configuration of the control unit, from which output port or output ports the first frequency data input from the input ports should be output.
And finally, the sending subunit determines X target access modules from the N access modules according to the preset corresponding relation configured by the control unit, and sends the first frequency data transmitted by the data cross subunit and the clock identification of the first frequency number transmitted by the clock cross subunit to the X target access modules.
In the embodiment of the present invention, a clock cross subunit inside the adapter first obtains a clock identifier corresponding to the first frequency data, sends the clock identifier corresponding to the first frequency data to the sending subunit, then sends the first frequency data to the sending subunit, and finally the sending subunit determines X target access modules among the N access modules according to a preset corresponding relationship, and sends the first frequency data and the clock identifier corresponding to the first frequency data to the X target access modules. By the mode, the accuracy of the output sequence of the data can be ensured, and the reliability of data transmission is improved.
Optionally, on the basis of the second embodiment corresponding to fig. 13, in a third optional embodiment of the method for data transmission provided in the embodiment of the present invention, the access module may specifically include a determining unit and a sending unit;
when receiving the first frequency data sent by the switching module, the sending, by the access module, the first frequency data to the source device may include:
when the clock identification corresponding to the first frequency data is received from the clock cross subunit and the first frequency data is received from the data cross subunit, the determining unit determines the transmission sequence of the data according to the clock identification corresponding to the first frequency data and the first frequency data;
the sending unit sends the first frequency data to the source end device according to the transmission sequence of the data.
In this embodiment, if data is sent from the target device and is transmitted to the Emulator through the adapter, the data enters the access module, and what the second determining unit and the second sending unit included in the access module need to do is, when the second determining unit receives the clock identifier corresponding to the first frequency data sent by the clock cross subunit and receives the first frequency data sent by the data cross subunit, then the order of data transmission in the current round can be determined according to the association relationship between the clock identifier and the data, and then the second sending unit sends the first frequency data to the source device, that is, the Emulator, according to the order of data transmission.
Further, in the embodiment of the present invention, a unit included in the adaptation module in the adapter and a unit included in the access module are introduced. The adjusting unit in the adapter can perform frequency modulation on the data, so that the data can be smoothly transmitted between the indicator and the target device, and the practicability and feasibility of the scheme are improved. In addition, for the adaptation module and the access module, the order of data transmission can be determined according to the data sent by the exchange module and the corresponding clock identification thereof, so that the accuracy and consistency of data transmission are further improved.
Optionally, on the basis of any one of the first to third embodiments corresponding to fig. 13 and fig. 13, in a fourth optional embodiment of the method for data transmission provided in the embodiment of the present invention,
transmitting the first frequency data to the target access module may include:
and when X is larger than 1, the sending subunit sends the first frequency data to the X target access modules respectively.
In this embodiment, data is sent from the target device and transmitted to the Emulator through the adapter, assuming that both the adaptation module c and the adaptation module d are connected to the cross unit in the switching module, respectively, and are capable of transmitting the first frequency data synchronously or asynchronously. The cross unit transmits the received first frequency data and the clock identifier corresponding to the first frequency data to the sending subunit, the sending subunit determines corresponding receiving objects, namely the adaptation module c and the adaptation module d, and then the sending subunit sends the first frequency data and the clock identifier thereof to the adaptation module c and the adaptation module d respectively.
Furthermore, the embodiment of the invention solves the problem of limited number of internal pins of the existing adapter, and because some pins can cause that in some cases, multi-bit data has to be uploaded on one pin by using a data compression technology, and the data compression technology can cause the performance of the adapter to be reduced. In the adapter provided by the invention, a plurality of Emulator cables can be accessed into the same adapter module through the access module and the exchange module, correspondingly, a plurality of cables led out from the same adapter module can also be accessed into different access modules through the exchange module, and different access modules are respectively connected with the Emulators through a plurality of Emulator cables.
Optionally, on the basis of any one of the first to third embodiments corresponding to fig. 13 and fig. 13, in a fifth optional embodiment of the method for data transmission provided in the embodiment of the present invention,
transmitting the first frequency data to the target access module may include:
when X equals 1, the transmitting subunit transmits the first frequency data to the X target access modules.
In this embodiment, data is sent from the target device and transmitted to the Emulator through the adapter, assuming that both the adaptation module c and the adaptation module d are connected to the cross unit in the switching module, respectively, and are capable of transmitting the first frequency data synchronously or asynchronously. The cross unit transmits the received first frequency data and the clock identification corresponding to the first frequency data to the sending subunit, the sending subunit determines the corresponding receiving object, and then the sending subunit sends the first frequency data and the clock identification thereof to the same access module.
It should be noted that, in practical applications, a plurality of adaptation modules may also need to transmit the first frequency data to the same access module through the switching module, which is not limited herein,
furthermore, in the embodiment of the present invention, the problem of low utilization rate of the pins in the isolator cable is solved, and since the adapter may only need a plurality of pins in all the pins, but needs to connect one isolator cable, most of the remaining pins in the isolator cable are wasted. In the adapter provided by the invention, data of one Emulator cable can be accessed into a plurality of adaptation modules, and correspondingly, data of a plurality of adaptation modules can also be accessed into the Emulator through one Emulator cable, so that a plurality of groups of data can be transmitted in one Emulator cable, but not only one group of data is transmitted by one Emulator cable, thereby improving the utilization rate of pins in the Emulator cable and enhancing the practicability of the scheme.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (30)

1. An adapter, characterized in that the adapter comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein N is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1;
the access module is used for acquiring first frequency data through the at least one first port and sending the first frequency data to the exchange module, wherein the first frequency data is data to be subjected to frequency modulation;
the switching module is used for acquiring the first frequency data from the access module, determining Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, and sending the first frequency data to the Y target adaptation modules, wherein Y is a positive integer greater than or equal to 1;
the adaptation module is used for performing frequency modulation on the first frequency data when the first frequency data is received from the exchange module, obtaining second frequency data and sending the second frequency data to target equipment;
the at least one second port is a port to which the adapter is connected to the target device.
2. The adapter according to claim 1, wherein the switching module comprises a control unit and a crossover unit;
the control unit is used for acquiring the preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the crossing unit is used for acquiring the first frequency data, determining Y target adaptation modules in the M adaptation modules according to the preset corresponding relation acquired by the control unit, and sending the first frequency data to the Y target adaptation modules.
3. The adapter of claim 2 wherein the crossover unit comprises a clock crossover subunit, a data crossover subunit, and a transmit subunit;
the clock cross subunit is configured to obtain a clock identifier corresponding to the first frequency data, and send the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit is configured to acquire the first frequency data and send the first frequency data to the sending subunit;
the sending subunit is configured to determine, according to the preset correspondence, Y target adaptation modules in the M adaptation modules, and send the first frequency data and the clock identifier corresponding to the first frequency data to the Y target adaptation modules.
4. The adapter according to claim 3, wherein the adaptation module comprises a determination unit, a frequency modulation unit and a transmission unit;
the determining unit is configured to determine a transmission order of data according to the clock identifier corresponding to the first frequency data and the first frequency data when the clock identifier corresponding to the first frequency data is received from the clock interleaving subunit and the first frequency data is received from the data interleaving subunit;
the frequency modulation unit is used for modulating the frequency of the first frequency data into second frequency data;
the sending unit is configured to send the second frequency data to the target device according to the transmission order of the data.
5. The adapter according to any one of claims 3 to 4,
the sending subunit is specifically configured to send the first frequency data to the Y target adaptation modules when Y is equal to 1.
6. The adapter according to any one of claims 3 to 4,
the sending subunit is specifically configured to send the first frequency data to the Y target adaptation modules respectively when Y is greater than 1.
7. The adapter of claim 1 wherein said access module comprises an access board and a data unit, wherein said access board is detachably connected to said data unit;
the access board is used for transmitting the first frequency data;
the data unit is configured to receive the first frequency data and send the first frequency data to the switching module.
8. The adapter of claim 1, wherein the adapter further comprises at least one target device;
the adaptation module is further configured to integrate the at least one target device, and each of the second ports is configured to connect the adaptation module with the at least one target device.
9. A data transmission system, comprising at least one source device and at least one adapter, wherein the adapter is an adapter according to any one of claims 1 to 8.
10. An adapter, characterized in that the adapter comprises at least one first port, at least one second port, a switching module, N access modules and M adaptation modules, wherein N is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1;
the adaptation module is used for receiving second frequency data through the at least one second port, frequency-modulating the second frequency data into first frequency data, and sending the first frequency data to the exchange module;
the exchange module is used for receiving the first frequency data sent by the adaptation module, determining X target access modules in the N access modules according to a preset corresponding relation, and sending the first frequency data to the X target access modules, wherein X is a positive integer greater than or equal to 1;
the access module is configured to send the first frequency data to a source end device when receiving the first frequency data sent by the switching module;
the at least one first port is a port to which the adapter is connected to the source end device.
11. The adapter of claim 10 wherein the switching module comprises a control unit and a crossover unit;
the control unit is used for acquiring the preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the crossing unit is used for acquiring the first frequency data, determining X target access modules in the N access modules according to the preset corresponding relation acquired by the control unit, and sending the first frequency data to the X target access modules.
12. The adapter of claim 11 wherein the crossover unit comprises a clock crossover subunit, a data crossover subunit, and a transmit subunit;
the clock cross subunit is configured to obtain a clock identifier corresponding to the first frequency data, and send the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit is configured to acquire the first frequency data and send the first frequency data to the sending subunit;
the sending subunit is configured to determine, according to the preset correspondence, X target access modules from the N access modules, and send the first frequency data and the clock identifier corresponding to the first frequency data to the X target access modules.
13. The adapter according to claim 12, wherein the access module comprises a determining unit and a transmitting unit;
the determining unit is configured to determine a transmission order of data according to the clock identifier corresponding to the first frequency data and the first frequency data when the clock identifier corresponding to the first frequency data is received from the clock interleaving subunit and the first frequency data is received from the data interleaving subunit;
the sending unit is configured to send the first frequency data to the source end device according to the transmission sequence of the data.
14. The adapter according to any one of claims 12 to 13,
the sending subunit is specifically configured to send the first frequency data to the X target access modules respectively when X is greater than 1.
15. The adapter according to any one of claims 12 to 13,
the sending subunit is specifically configured to send the first frequency data to the X target access modules when X is equal to 1.
16. The adapter of claim 10 wherein said access module comprises an access board and a data unit, wherein said access board is detachably connected to said data unit;
the data unit is used for receiving the first frequency data and sending the first frequency data to the access board;
the access board is used for transmitting the first frequency data.
17. The adapter as claimed in claim 10 wherein said adapter further comprises said at least one target device;
the adaptation module is further configured to integrate the at least one target device, and each of the second ports is configured to connect the adaptation module with the at least one target device.
18. A data transmission system comprising at least one source device and at least one adapter, said adapter being an adapter according to any of claims 10 to 17.
19. A method for data transmission, wherein the method is applied to an adapter, the adapter includes at least one first port, at least one second port, a switching module, N access modules, and M adaptation modules, where N is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1, and the method includes:
the access module acquires first frequency data through the at least one first port and sends the first frequency data to the exchange module, wherein the first frequency data is data to be subjected to frequency modulation;
the exchange module acquires the first frequency data from the access module, determines Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, and sends the first frequency data to the Y target adaptation modules, wherein Y is a positive integer greater than or equal to 1;
when the first frequency data is received from the exchange module, the adaptation module performs frequency modulation on the first frequency data to obtain second frequency data, and sends the second frequency data to target equipment;
the at least one second port is a port to which the adapter is connected to the target device.
20. The method of claim 19, wherein the switching module comprises a control unit and a crossover unit;
the switching module acquires the first frequency data from the access module, determines Y target adaptation modules in the M adaptation modules according to a preset corresponding relation, and sends the first frequency data to the Y target adaptation modules, and the method comprises the following steps:
the control unit acquires the preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the cross unit acquires the first frequency data, determines Y target adaptation modules in the M adaptation modules according to the preset corresponding relation acquired by the control unit, and sends the first frequency data to the Y target adaptation modules.
21. The method of claim 20, wherein the interleaving unit comprises a clock interleaving subunit, a data interleaving subunit, and a transmitting subunit;
the cross unit acquires the first frequency data, determines Y target adaptation modules in the M adaptation modules according to the preset corresponding relation acquired by the control unit, and sends the first frequency data to the Y target adaptation modules, and the method comprises the following steps:
the clock cross subunit acquires a clock identifier corresponding to the first frequency data and sends the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit acquires the first frequency data and sends the first frequency data to the sending subunit;
and the sending subunit determines Y target adaptation modules in the M adaptation modules according to the preset corresponding relation, and sends the first frequency data and the clock identification corresponding to the first frequency data to the Y target adaptation modules.
22. The method of claim 21, wherein the adaptation module comprises a determination unit, a frequency modulation unit, and a transmission unit;
when the first frequency data is received from the switching module, the adapting module performs frequency modulation on the first frequency data to obtain second frequency data, including:
when the clock identification corresponding to the first frequency data is received from the clock crossing subunit and the first frequency data is received from the data crossing subunit, the determining unit determines the transmission sequence of the data according to the clock identification corresponding to the first frequency data and the first frequency data;
the frequency modulation unit modulates the first frequency data into second frequency data;
the sending unit sends the second frequency data to the target device according to the transmission sequence of the data.
23. The method according to any one of claims 21 to 22, wherein said sending said first frequency data to said Y target adaptation modules comprises:
when the Y is equal to 1, the sending subunit sends the first frequency data to the Y target adaptation modules.
24. The method according to any one of claims 21 to 22, wherein said sending said first frequency data to said Y target adaptation modules comprises:
and when the Y is larger than 1, the sending subunit sends the first frequency data to the Y target adaptation modules respectively.
25. A method for data transmission, wherein the method is applied to an adapter, the adapter includes at least one first port, at least one second port, a switching module, N access modules, and M adaptation modules, where N is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1, and the method includes:
the adaptation module receives second frequency data through the at least one second port, frequency-modulates the second frequency data into first frequency data, and sends the first frequency data to the exchange module;
the exchange module receives the first frequency data sent by the adaptation module, determines X target access modules in the N access modules according to a preset corresponding relation, and sends the first frequency data to the X target access modules, wherein X is a positive integer greater than or equal to 1;
when receiving the first frequency data sent by the switching module, the access module sends the first frequency data to a source end device;
the at least one first port is a port to which the adapter is connected to the source end device.
26. The method of claim 25, wherein the switching module comprises a control unit and a crossover unit;
the receiving, by the switching module, the first frequency data sent by the adaptation module, determining, according to a preset correspondence, X target access modules of the N access modules, and sending the first frequency data to the X target access modules includes:
the control unit acquires the preset corresponding relation, and the preset corresponding relation is used for indicating the cross unit to receive and transmit the first frequency data;
the crossing unit acquires the first frequency data, determines X target access modules in the N access modules according to the preset corresponding relation acquired by the control unit, and sends the first frequency data to the X target access modules.
27. The method of claim 26, wherein the interleaving unit comprises a clock interleaving subunit, a data interleaving subunit, and a transmitting subunit;
the cross unit acquires the first frequency data, determines X target access modules in the N access modules according to the preset corresponding relation acquired by the control unit, and sends the first frequency data to the X target access modules, and the method comprises the following steps:
the clock cross subunit acquires a clock identifier corresponding to the first frequency data and sends the clock identifier corresponding to the first frequency data to the sending subunit;
the data cross subunit acquires the first frequency data and sends the first frequency data to the sending subunit;
and the sending subunit determines X target access modules in the N access modules according to the preset corresponding relation, and sends the first frequency data and the clock identification corresponding to the first frequency data to the X target access modules.
28. The method of claim 27, wherein the access module comprises a determining unit and a transmitting unit;
when receiving the first frequency data sent by the switching module, the accessing module sends the first frequency data to a source end device, including:
when the clock identification corresponding to the first frequency data is received from the clock crossing subunit and the first frequency data is received from the data crossing subunit, the determining unit determines the transmission sequence of the data according to the clock identification corresponding to the first frequency data and the first frequency data;
the sending unit sends the first frequency data to the source end device according to the transmission sequence of the data.
29. The method according to any one of claims 27 to 28, wherein said sending the first frequency data to the target access module comprises:
and when the X is larger than 1, the sending subunit sends the first frequency data to the X target access modules respectively.
30. The method according to any one of claims 27 to 28, wherein said sending the first frequency data to the target access module comprises:
when the X is equal to 1, the sending subunit sends the first frequency data to the X target access modules.
CN201611027636.0A 2016-11-17 2016-11-17 Adapter, data transmission system and method Active CN106685588B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611027636.0A CN106685588B (en) 2016-11-17 2016-11-17 Adapter, data transmission system and method
CN202010078401.4A CN111294155B (en) 2016-11-17 2016-11-17 Adapter, data transmission system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611027636.0A CN106685588B (en) 2016-11-17 2016-11-17 Adapter, data transmission system and method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010078401.4A Division CN111294155B (en) 2016-11-17 2016-11-17 Adapter, data transmission system and method

Publications (2)

Publication Number Publication Date
CN106685588A CN106685588A (en) 2017-05-17
CN106685588B true CN106685588B (en) 2020-02-14

Family

ID=58865935

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201611027636.0A Active CN106685588B (en) 2016-11-17 2016-11-17 Adapter, data transmission system and method
CN202010078401.4A Active CN111294155B (en) 2016-11-17 2016-11-17 Adapter, data transmission system and method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010078401.4A Active CN111294155B (en) 2016-11-17 2016-11-17 Adapter, data transmission system and method

Country Status (1)

Country Link
CN (2) CN106685588B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543105A (en) * 2019-08-21 2019-12-06 成都飞机工业(集团)有限责任公司 general semi-physical simulation system
CN113422756B (en) * 2021-05-26 2022-12-27 鹏城实验室 Verification data transmission method, rate conversion device and verification data transmission system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0838930A3 (en) * 1996-10-25 2003-02-19 Compaq Computer Corporation Pseudo network adapter for frame capture, encapsulation and encryption
CN101340735A (en) * 2008-08-20 2009-01-07 中兴通讯股份有限公司 Apparatus, method and system for signal gathering and degathering
CN101493806A (en) * 2009-03-11 2009-07-29 安徽科大鲁能科技有限公司 Communication adapter and data-transmission method thereof
CN104885369A (en) * 2013-05-22 2015-09-02 瑞典爱立信有限公司 Low complexity digital predistortion for concurrent multi-band transmitters

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466554C (en) * 2007-02-08 2009-03-04 华为技术有限公司 Communication adaptation layer system and method for obtaining the network element information
CN104158791A (en) * 2013-05-14 2014-11-19 北大方正集团有限公司 Safe communication authentication method and system in distributed environment
CN105653409B (en) * 2015-12-25 2019-02-01 北京时代民芯科技有限公司 A kind of hardware emulator verify data extraction system based on data type conversion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0838930A3 (en) * 1996-10-25 2003-02-19 Compaq Computer Corporation Pseudo network adapter for frame capture, encapsulation and encryption
CN101340735A (en) * 2008-08-20 2009-01-07 中兴通讯股份有限公司 Apparatus, method and system for signal gathering and degathering
CN101493806A (en) * 2009-03-11 2009-07-29 安徽科大鲁能科技有限公司 Communication adapter and data-transmission method thereof
CN104885369A (en) * 2013-05-22 2015-09-02 瑞典爱立信有限公司 Low complexity digital predistortion for concurrent multi-band transmitters

Also Published As

Publication number Publication date
CN111294155B (en) 2021-12-31
CN111294155A (en) 2020-06-16
CN106685588A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN115210589B (en) Chip testing device and testing method
CN108475227B (en) Test functional assembly and data debugging method
CN108459982B (en) Communication equipment and switching method of USB and serial port
EP2958358B1 (en) System for base-station testing
CN109902014A (en) A kind of server system shares method, apparatus, controlled terminal and the storage medium of serial ports
CN109885434A (en) A kind of integrated test system and method for FPGA high speed SerDes interface
CN106685588B (en) Adapter, data transmission system and method
CN104219003A (en) Communication device, test system and test method thereof
CN106405165A (en) Test connection device and system and test automatic connection method
CN105071988A (en) Multi-user test system and method
CN109150645B (en) Test method and system for switching chip
CN114510452A (en) SOC (System on chip) integration method and device and electronic equipment
CN102426548A (en) Debugging method, debugger and debugging system for embedded system
CN109327360B (en) Port multiplexing method and device
CN113419983A (en) Serial server and implementation method thereof
CN211123056U (en) Avionics test system
CN109714124B (en) Time synchronization system and method for test system
CN110850128A (en) On-site automatic test system bus for marine instrument
CN112874811B (en) Distributed airplane in-situ test system and method
CN105490874B (en) Blade switch system, the rack network equipment and blade switch test method
CN108562805A (en) A kind of interactive mode break-make electric test device, system and method
CN203104115U (en) Power network instrument expansion device and intelligent power distribution system
CN108055077B (en) Verification device for applied optical fiber bus network and optical fiber bus network
CN114064545A (en) Serial port function identification method and device, main control chip, household appliance and medium
CN104636302A (en) Experimental device, experimental client, experimental system and experimental method of experimental system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant