CN117459276A - Debugging device applied to master-slave communication system - Google Patents
Debugging device applied to master-slave communication system Download PDFInfo
- Publication number
- CN117459276A CN117459276A CN202311403486.9A CN202311403486A CN117459276A CN 117459276 A CN117459276 A CN 117459276A CN 202311403486 A CN202311403486 A CN 202311403486A CN 117459276 A CN117459276 A CN 117459276A
- Authority
- CN
- China
- Prior art keywords
- data
- slave
- module
- bus
- master
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 27
- 238000002347 injection Methods 0.000 claims abstract description 19
- 239000007924 injection Substances 0.000 claims abstract description 19
- 230000005540 biological transmission Effects 0.000 claims abstract description 13
- 238000012795 verification Methods 0.000 claims description 15
- 238000011161 development Methods 0.000 description 12
- 230000004044 response Effects 0.000 description 12
- 238000013461 design Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Abstract
A commissioning device for use in a master-slave communication system, the device comprising: an interface module for establishing network communication between the master device and the slave device; the integrity checking module is used for analyzing the received protocol instruction; the correctness checking module is used for carrying out decryption checking on the received data so as to judge the correctness of the data; a data initialization module for initializing an address space from which data is not written, wherein the data initialization can be configured to be all 0, all 1 or all random, and the data is returned to the bus controller; the data error injection module is used for randomly inserting an error value into the data to be sent by the slave equipment so as to detect whether the master equipment detects the error value; the error feedback module is used for collecting error results of protocol integrity check and data correctness check and returning an error state; and the data transmission control module is used for controlling the format of feedback data of the slave equipment.
Description
Technical field:
the invention relates to a debugging device applied to a master-slave communication system.
The background technology is as follows:
with the rapid development of information technology, a master-slave communication system and an integrated circuit system have become infrastructures widely applied to various fields, such as the Internet of things, industrial automation and the like; in these systems, the master device is responsible for controlling and directing the operation of the slave device, which in turn provides data and responses to the master device according to protocol requirements.
A complex integrated circuit system internally comprises a plurality of master devices and slave devices, wherein how to ensure whether commands sent by the master devices meet bus protocols is an important evaluation index of the system; in practical application, the master device may deviate from the range specified by the protocol, so that the slave device cannot work normally and is prone to failure, and therefore a debugging device needs to be set to check the command of the master device and imitate the data and response of the slave device, so as to ensure that the master device behavior accords with the protocol requirement.
The existing debugging device is too single in application mode, different connection verification modes cannot be adjusted according to different application scenes, the difficulty of verifying master equipment is high, more development time is needed, and therefore stability and reliability of a master-slave communication system cannot be guaranteed; meanwhile, data and response of the slave device cannot be simulated, so that the master device cannot work normally and obtains correct response.
The invention comprises the following steps:
the embodiment of the invention provides a debugging device applied to a master-slave communication system, which has reasonable structural design, can monitor instructions and requests sent by master equipment based on the mutual coordination and data transmission function of a plurality of functional modules so as to judge whether the behavior of the master equipment accords with a preset protocol, can simulate the data and response of slave equipment, so that the master equipment can normally work and obtain correct or wrong response, can test and verify the master equipment under the condition of not depending on the actual slave equipment, reduces the development difficulty and development time of the master equipment, improves the reliability and stability of the communication system, simultaneously realizes analyzing instructions sent by the master equipment, returns data in a designated format according to the instructions of the master equipment, supports the point-to-point data initialization and data error injection of the slave equipment so as to better monitor the behavior of the master equipment, can support the point-to-point verification of a single host, also supports the point-to-point verification of multiple hosts and the effective verification of a bus controller, and solves the problems in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a commissioning device for use in a master-slave communication system, the device comprising:
the interface module is used for establishing network communication between the master equipment and the slave equipment;
the integrity checking module is used for analyzing the received protocol instruction;
the correctness checking module is used for decrypting and checking the received data so as to judge the correctness of the data;
the data initialization module is used for initializing an address space which is not written in, can be configured to be all 0, all 1 or all random, and returns the data to the bus controller;
the data error injection module is used for randomly inserting an error value into data to be sent by the slave equipment so as to detect whether the master equipment detects the error value;
the error feedback module is used for collecting error results of protocol integrity check and data correctness check and returning an error state;
and the data transmission control module is used for controlling the format of feedback data of the slave equipment.
The interface module is a bus slave interface module, and can generate a designated interface according to actual bus protocol configuration, wherein the interface comprises an AXI interface, an AHB interface and an APB interface.
The slave equipment can support various connection verification modes, can perform connection between a single slave and a single host, and performs point-to-point verification, namely, is connected through a single group of APB bus, AHB bus or AXI bus; the slave device can be connected with the multi-master device, and a plurality of groups of bus interfaces are configured on the slave device to be respectively connected with a plurality of master devices so as to correspondingly receive and feed back according to control signals and data sent by the master devices.
A bus controller may be connected between the master device and slave device to verify that the bus controller is in compliance with expectations.
The debugging device is connected with an external bus or external master equipment through a bus slave port, and the bus slave port is divided into a receiving part and a transmitting part;
the integrity checking module and the correctness checking module are connected with the receiving part of the port of the bus slave and are used for analyzing whether the protocol is complete or not and whether the received data is correct or not, and meanwhile, the two modules are connected with the error feedback module and send the analyzed result to the error feedback module; the error feedback module is connected with the port transmitting part of the bus slave machine and transmits a feedback result to the bus or master equipment;
the data error injection module, the data initialization module and the data transmission control module are respectively connected with the sending part of the bus slave port so as to control the data to be sent to achieve the purpose of returning specific data and specific formats.
The data error injection module can replace the data to be sent originally at any position, and can also modify the numerical values of a plurality of places of data at the same time;
when the data to be transmitted is encrypted data, if no error is injected, the data is directly transmitted to the bus, so that the bus can decrypt and obtain correct data; when the data is wrongly annotated, the bus cannot directly obtain the original data, and the accurate position of the data error can be deduced by using a Hamming code algorithm.
The invention adopts the structure, and is used for establishing network communication between master equipment and slave equipment through the interface module, and generating a designated interface according to actual bus protocol configuration; analyzing the received protocol instruction through an integrity checking module, and decrypting and checking the received data through a correctness checking module so as to judge the correctness of the data; initializing an address space which is not written in by a data initializing module, randomly inserting an error value into data to be sent by slave equipment by a data error injection module so as to detect whether the master equipment detects the error value; collecting error results of protocol integrity check and data correctness check through an error feedback module, and returning an error state; has the advantages of stability, reliability, accuracy and practicability.
Description of the drawings:
fig. 1 is a schematic structural view of the present invention.
Fig. 2 is a schematic diagram of the operation of the present invention.
FIG. 3 is a schematic diagram of a single slave interface point-to-point master authentication according to the present invention.
FIG. 4 is a schematic diagram of a multi-slave interface point-to-point host authentication according to the present invention.
FIG. 5 is a schematic diagram illustrating a bus controller according to the present invention.
The specific embodiment is as follows:
in order to clearly illustrate the technical features of the present solution, the present invention will be described in detail below with reference to the following detailed description and the accompanying drawings.
As shown in fig. 1-5, a commissioning device for use in a master-slave communication system, the device comprising:
the interface module is used for establishing network communication between the master equipment and the slave equipment;
the integrity checking module is used for analyzing the received protocol instruction;
the correctness checking module is used for decrypting and checking the received data so as to judge the correctness of the data;
the data initialization module is used for initializing an address space which is not written in, can be configured to be all 0, all 1 or all random, and returns the data to the bus controller;
the data error injection module is used for randomly inserting an error value into data to be sent by the slave equipment so as to detect whether the master equipment detects the error value;
the error feedback module is used for collecting error results of protocol integrity check and data correctness check and returning an error state;
and the data transmission control module is used for controlling the format of feedback data of the slave equipment.
The interface module is a bus slave interface module, and can generate a designated interface according to actual bus protocol configuration, wherein the interface comprises an AXI interface, an AHB interface and an APB interface.
The slave equipment can support various connection verification modes, can perform connection between a single slave and a single host, and performs point-to-point verification, namely, is connected through a single group of APB bus, AHB bus or AXI bus; the slave device can be connected with the multi-master device, and a plurality of groups of bus interfaces are configured on the slave device to be respectively connected with a plurality of master devices so as to correspondingly receive and feed back according to control signals and data sent by the master devices.
A bus controller may be connected between the master device and slave device to verify that the bus controller is in compliance with expectations.
The debugging device is connected with an external bus or external master equipment through a bus slave port, and the bus slave port is divided into a receiving part and a transmitting part;
the integrity checking module and the correctness checking module are connected with the receiving part of the port of the bus slave and are used for analyzing whether the protocol is complete or not and whether the received data is correct or not, and meanwhile, the two modules are connected with the error feedback module and send the analyzed result to the error feedback module; the error feedback module is connected with the port transmitting part of the bus slave machine and transmits a feedback result to the bus or master equipment;
the data error injection module, the data initialization module and the data transmission control module are respectively connected with the sending part of the bus slave port so as to control the data to be sent to achieve the purpose of returning specific data and specific formats.
The data error injection module can replace the data to be sent originally at any position, and can also modify the numerical values of a plurality of places of data at the same time;
when the data to be transmitted is encrypted data, if no error is injected, the data is directly transmitted to the bus, so that the bus can decrypt and obtain correct data; when the data is wrongly annotated, the bus cannot directly obtain the original data, and the accurate position of the data error can be deduced by using a Hamming code algorithm.
The working principle of the debugging device applied to the master-slave communication system in the embodiment of the invention is as follows: based on the mutual coordination and data transmission function of a plurality of functional modules, instructions and requests sent by the master equipment can be monitored to judge whether the behavior of the master equipment accords with a preset protocol, and data and response of the slave equipment can be simulated, so that the master equipment can work normally and obtain correct or wrong response, the master equipment can be tested and verified under the condition of not depending on the actual slave equipment, development difficulty and development time of the master equipment are reduced, reliability and stability of a communication system are improved, meanwhile, the analysis of the instructions sent by the master equipment is realized, data in a designated format is returned according to the instructions of the master equipment, and data initialization and data error injection at the slave equipment end are supported, so that the behavior of the master equipment can be monitored better, point-to-point verification by a single host machine is supported, and effective verification by a bus controller is also supported.
In an overall arrangement, the apparatus comprises: an interface module for establishing network communication between the master device and the slave device; the integrity checking module is used for analyzing the received protocol instruction; the correctness checking module is used for carrying out decryption checking on the received data so as to judge the correctness of the data; a data initialization module for initializing an address space from which data is not written, wherein the data initialization can be configured to be all 0, all 1 or all random, and the data is returned to the bus controller; the data error injection module is used for randomly inserting an error value into the data to be sent by the slave equipment so as to detect whether the master equipment detects the error value; the error feedback module is used for collecting error results of protocol integrity check and data correctness check and returning an error state; and the data transmission control module is used for controlling the format of feedback data of the slave equipment.
The debugging device is connected with an external bus or external master equipment through a bus slave port, and the bus slave port is divided into a receiving part and a transmitting part;
the integrity checking module and the correctness checking module are connected with the receiving part of the port of the bus slave and are used for analyzing whether the protocol is complete or not and whether the received data is correct or not, and meanwhile, the two modules are connected with the error feedback module and send the analyzed result to the error feedback module; the error feedback module is connected with the port transmitting part of the bus slave machine and transmits a feedback result to the bus or master equipment;
the data error injection module, the data initialization module and the data transmission control module are respectively connected with the sending part of the bus slave port so as to control the data to be sent to achieve the purpose of returning specific data and specific formats.
For the data error injection module, the data to be sent originally can be replaced at any position, and the numerical values of a plurality of places of data can be modified at the same time; for example, if the data to be transmitted is a burst, and the burst length is 8, that is, 8 times of data is transmitted, assuming that the original data are {123, 22, 33, 14,5,9, 88, 93}, respectively, the data error injection module may replace any one of the position data with any one of the values, for example, change 9 to 19, that is, the transmitted data become {123, 22, 33, 14,5, 19, 88, 93}. The data error injection module can modify the numerical value of a plurality of data at the same time, and is not limited to one place.
The original data is encrypted and then is to be sent, if no error is injected, the data is directly sent to the bus, the bus can decrypt and obtain correct data, but if the error is injected, the bus cannot directly output the original data, so that whether the decryption process of the bus is normal or not and the error position of the data can be verified, and if the Hamming code algorithm is used, the error position of the data can be deduced; meanwhile, the correctness checking module also adopts the same working principle to decode and check the received encrypted data, and judges whether the data is wrong or not, and the decoding mode is not limited to CRC, hamming code and the like.
The debugging device in the application can be used for on-board debugging in an SOC design flow, is not limited to chip design flows such as power, artificial intelligence, CPU, GPU, consumer electronics and the like, but is only used in a chip design development stage, and is not a device for actual mass production.
The device can verify whether the behavior of the host is correct or not on the board in the chip development stage, thereby ensuring the correctness of the host, accelerating the development process and improving the reliability of the system.
Furthermore, the multiple functional modules can be set in detail according to the specific structural characteristics and the data transmission form of the master-slave communication system, so that each functional module can fully play a corresponding role, whether the behavior of the functional module accords with a preset protocol can be detected in real time by monitoring the instruction and the request sent by the master equipment, and the data and the response of the slave equipment can be simulated, so that the master equipment can work normally and obtain correct or incorrect response, and the master equipment can be tested and verified under the condition of not depending on the actual slave equipment.
In particular, a system includes a plurality of master models and a plurality of slave models, and the bus controller is connected to verify whether the bus controller meets the expectations. The user can select a proper connection mode according to the complexity of the actual system so as to better verify the master equipment behavior and accelerate the development process of the whole system.
In summary, the debugging device applied to the master-slave communication system in the embodiment of the invention can monitor the instruction and the request sent by the master device based on the mutual coordination and the data transmission function of a plurality of functional modules, so as to determine whether the behavior of the master device accords with a preset protocol, simulate the data and the response of the slave device, enable the master device to normally work and obtain correct or incorrect response, test and verify the master device without depending on the actual slave device, reduce the development difficulty and development time of the master device, improve the reliability and the stability of the communication system, simultaneously realize analyzing the instruction sent by the master device, return the data in a specified format according to the instruction of the master device, support the point-to-point verification of the slave device and the data error injection of the slave device, so as to better monitor the behavior of the master device, support the point-to-point verification of a single host and also support the effective verification of a multi-host and the bus controller.
The above embodiments are not to be taken as limiting the scope of the invention, and any alternatives or modifications to the embodiments of the invention will be apparent to those skilled in the art and fall within the scope of the invention.
The present invention is not described in detail in the present application, and is well known to those skilled in the art.
Claims (6)
1. A commissioning device for use in a master-slave communication system, the device comprising:
the interface module is used for establishing network communication between the master equipment and the slave equipment;
the integrity checking module is used for analyzing the received protocol instruction;
the correctness checking module is used for decrypting and checking the received data so as to judge the correctness of the data;
the data initialization module is used for initializing an address space which is not written in, can be configured to be all 0, all 1 or all random, and returns the data to the bus controller;
the data error injection module is used for randomly inserting an error value into data to be sent by the slave equipment so as to detect whether the master equipment detects the error value;
the error feedback module is used for collecting error results of protocol integrity check and data correctness check and returning an error state;
and the data transmission control module is used for controlling the format of feedback data of the slave equipment.
2. A debugging device for a master-slave communication system according to claim 1, wherein: the interface module is a bus slave interface module, and can generate a designated interface according to actual bus protocol configuration, wherein the interface comprises an AXI interface, an AHB interface and an APB interface.
3. A debugging device for a master-slave communication system according to claim 2, wherein: the slave equipment can support various connection verification modes, can perform connection between a single slave and a single host, and performs point-to-point verification, namely, is connected through a single group of APB bus, AHB bus or AXI bus; the slave device can be connected with the multi-master device, and a plurality of groups of bus interfaces are configured on the slave device to be respectively connected with a plurality of master devices so as to correspondingly receive and feed back according to control signals and data sent by the master devices.
4. A debugging device for a master-slave communication system according to claim 3, wherein: a bus controller may be connected between the master device and slave device to verify that the bus controller is in compliance with expectations.
5. A debugging device for a master-slave communication system according to claim 1, wherein: the debugging device is connected with an external bus or external master equipment through a bus slave port, and the bus slave port is divided into a receiving part and a transmitting part;
the integrity checking module and the correctness checking module are connected with the receiving part of the port of the bus slave and are used for analyzing whether the protocol is complete or not and whether the received data is correct or not, and meanwhile, the two modules are connected with the error feedback module and send the analyzed result to the error feedback module; the error feedback module is connected with the port transmitting part of the bus slave machine and transmits a feedback result to the bus or master equipment;
the data error injection module, the data initialization module and the data transmission control module are respectively connected with the sending part of the bus slave port so as to control the data to be sent to achieve the purpose of returning specific data and specific formats.
6. A debugging device for a master-slave communication system according to claim 1, wherein: the data error injection module can replace the data to be sent originally at any position, and can also modify the numerical values of a plurality of places of data at the same time;
when the data to be transmitted is encrypted data, if no error is injected, the data is directly transmitted to the bus, so that the bus can decrypt and obtain correct data; when the data is wrongly annotated, the bus cannot directly obtain the original data, and the accurate position of the data error can be deduced by using a Hamming code algorithm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311403486.9A CN117459276A (en) | 2023-10-26 | 2023-10-26 | Debugging device applied to master-slave communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311403486.9A CN117459276A (en) | 2023-10-26 | 2023-10-26 | Debugging device applied to master-slave communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117459276A true CN117459276A (en) | 2024-01-26 |
Family
ID=89582957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311403486.9A Pending CN117459276A (en) | 2023-10-26 | 2023-10-26 | Debugging device applied to master-slave communication system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117459276A (en) |
-
2023
- 2023-10-26 CN CN202311403486.9A patent/CN117459276A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103853639A (en) | System integrated on chip and method for self-testing functional logic module on chip | |
CN114444422A (en) | Chip verification system, method and storage medium | |
CN103530211A (en) | PCIE loop back self-test method based on UVM platform | |
CN109634256B (en) | Board level verification system of general CAN controller chip | |
CN102147831A (en) | Logic verification method and device | |
US20030236644A1 (en) | Methods and systems for enhanced automated system testing | |
CN111443338A (en) | Active phased array radar array surface fault injection equipment and method | |
WO2016184170A1 (en) | Smi interface device debugging apparatus and method, and storage medium | |
CN101267350B (en) | Debugging method and debugging system | |
CN111008102B (en) | FPGA accelerator card high-speed interface SI test control device, system and method | |
JP5060021B2 (en) | A universal approach to simulate, emulate and test various serial bus types | |
CN115904849B (en) | PCIE link signal testing method, system, computer equipment and medium | |
CN117459276A (en) | Debugging device applied to master-slave communication system | |
CN104484257A (en) | Universal 1553B bus communication simulation testing system and method | |
CN116049015A (en) | Universal debugger, debugging system and debugging method of computing equipment | |
CN208110030U (en) | A kind of communication test plate of ammeter communication module | |
CN113177388B (en) | Device, system and method for testing and verifying IP (Internet protocol) core | |
US7721260B2 (en) | Embedded Test I/O Engine | |
CN113986600B (en) | Test method and device for chip serial interface and chip | |
CN106019021B (en) | The universal test tooling and its test method of testing for electrical equipment device | |
CN112987690B (en) | Espi controller verification system and method | |
RU72772U1 (en) | MAIN CONTROLLER MODULE OF THE SERIAL INTERFACE | |
CN117112447B (en) | Data transmission method and device, electronic equipment and readable storage medium | |
CN113934192B (en) | Simulation debugging system and method for vehicle information system | |
CN116566627A (en) | Method, system, device, equipment and readable storage medium for testing key learning |
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 |