Peripheral circuit state management method and system for digital simulation

By dividing the peripheral circuit system into three levels: circuit board, components and pins, and determining the attributes and working functions of each level element through configuration files, dynamic connection and signal transmission management of peripheral circuits are realized, solving the problems of poor integration and reusability in the existing technology, and improving the efficiency and flexibility of development and integration.

CN119598926APending Publication Date: 2025-03-11邹电 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311154667.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-08
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The existing peripheral circuit design methods have problems with poor integration and reusability, and lack universality and unified state management protocols, resulting in complex development and integration.

Method used

The hierarchical division management module is adopted to divide the circuit system into three levels: circuit board, components and pins. The attributes and working functions of each level element are determined through configuration files to realize dynamic connection and signal transmission management between components.

Benefits of technology

System-level optimization of peripheral circuits during connection, disconnection and signal transmission is realized, reusability and flexibility are improved, and development and integration processes are simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598926A_ABST
    Figure CN119598926A_ABST
Patent Text Reader

Abstract

The invention discloses a peripheral circuit state management method and system for digital simulation, and the system comprises a hierarchy division management module which is used for dividing each hierarchy and determining the work function of each hierarchy; the connection state management module is used for matching basic attributes among the components and changing connection states of the components and internal pins of the components; and the signal transmission management module is used for controlling the transmission of the circuit direction and other signal data during excitation triggering in the peripheral circuit. The system is based on the digital simulation technology, and the problems that a peripheral circuit state management method is not high in integration and reusability and has no universality are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital simulation technology, and in particular to a peripheral circuit state management method and system for digital simulation. Background Art

[0002] Digital simulation refers to the process of emulating and modeling physical phenomena, systems or processes in the real world using computer technology and mathematical methods. Digital simulation can obtain a deep understanding and prediction of the actual system by running these models and algorithms on the computer. With the rapid development of computer technology and the improvement of computing power, digital simulation has been widely used in science, engineering, medicine, economy and other fields. At the same time, digital simulation of peripheral circuits provides an important interface between digital and analog systems and plays a key role in many fields. It enables digital systems to interact with analog circuits, sensors, actuators, etc. to achieve powerful and diverse applications. Therefore, the design and selection of peripheral circuits have an important impact on the performance and function of digital analog systems, so the needs and requirements of peripheral circuits need to be comprehensively considered during the design and implementation of digital analog systems.

[0003] However, the current peripheral circuit design methods generally have some potential defects such as poor integration and reusability. The traditional peripheral circuit design method is usually decentralized, that is, different functional modules are designed independently and then combined together. This method may cause the mutual influence between different modules to be ignored, and system-level optimization cannot be performed, thus limiting the improvement of overall performance. In addition, there is a lack of universal and unified peripheral circuit state management protocols on the market. Peripheral circuit state management usually involves communication, configuration and control with external devices, which requires a protocol or interface standard to achieve interoperability between devices. Without a set of universal management protocols, additional development work will be required to adapt and integrate these devices, increasing the workload of developers and the complexity of system integration. As a result, the development and integration of peripheral circuits has become more complicated and time-consuming, lacking flexibility and reusability. Summary of the invention

[0004] Based on this, it is necessary to provide a peripheral circuit state management method and system for digital simulation in response to the above technical problems.

[0005] A peripheral circuit state management method and system for digital simulation, the method comprising:

[0006] Hierarchical division management module, a peripheral circuit state management method and system for digital simulation, which divides the circuit system into three levels: circuit board, components and pins;

[0007] The circuit board is responsible for managing components, determining the position of components on the circuit board and the internal circuit connection relationship. Circuit boards can be nested; components are responsible for managing pins. Each component defines its own electrical characteristics and connects other components through pins; pins are responsible for establishing and releasing connection relationships and transmitting information.

[0008] Elements at each level are connected, disconnected, and transmit signals based on pins;

[0009] Elements at each level can determine their basic and unique properties and working functions through configuration files, including resistors, capacitors, inductors, sensors, diodes, transistors, etc.

[0010] In the connection status management module, components are connected through pins. The five basic properties of interface components (male, female, type, size, organization form, and connection status) must be fully matched to establish a connection.

[0011] When a connection is established between interface components, the connection status automatically changes to connected, and at this time, it cannot be connected to other components again;

[0012] The signal is triggered and transmitted in the form of triggered excitation, which is divided into internal triggering and external triggering;

[0013] Internal trigger refers to the change of the state of components inside the circuit that causes the change of the trigger stimulus, that is, the assignment of pins inside the program, and external trigger refers to the change implemented manually on the outside.

[0014] Signal transmission management module, digital circuit signals start to be transmitted between components and pins, first determine the circuit direction, and then transmit signal data;

[0015] The transmission of current signals is defined from the inside of the components to define the circuit direction, including three directions: no direction, inbound, and outbound, represented by 0, 1, and 2 respectively;

[0016] The direction is based on the perspective of components, and a direction judgment needs to be made for each component.

[0017] The management of transmission rules when the pins are in a connected state includes: when the stimulus comes from the component to which the pin belongs, a direct assignment method is used; when the stimulus comes from other pins connected to the pin, if the pin itself has a direction and the direction is the same as that of other pins, there is no need to change the direction; when the stimulus comes from other pins connected to the pin, if the pin itself has no direction, or its direction is opposite to that of other pins, the state of the pin changes according to the state of the stimulus source pin.

[0018] The management of transmission rules when the pins are disconnected includes: retaining the circuit direction and data information of the pins on the high level side, and transmitting the circuit disconnection information to the low level, and the circuit direction parameter value of the pins on the low level side is reset to zero and the data information is cleared.

[0019] The above-mentioned peripheral circuit state management method and system for digital simulation first formulates protocol specifications so that the peripheral circuit connection, disconnection, signal transmission and other processes are consistent with the real digital circuit effects, so that the control signal of the simulator can be effectively transmitted inside the circuit board, including after the circuit board and external electronic components are dynamically connected to form a new system, they can still be effectively linked within the circuit system to achieve accurate two-way transmission of signals. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0021] Figure 1 Flowchart of the peripheral circuit state management method

[0022] Figure 2 Basic configuration file diagram

[0023] Figure 3 Schematic diagram of the extended configuration file

[0024] Figure 4 Create a connection diagram for the pins

[0025] Figure 5 Schematic diagram for pin disconnect

[0026] Figure 6 Flowchart of the transmission rules when the pins are connected and disconnected

[0027] Figure 7 Establishing and disconnecting connection signal management flow chart for the present invention DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] Peripheral circuits involve different electronic components. Different components have different electronic characteristics, and there are many circuit conditions, such as connection and disconnection. Therefore, signals need to be processed specifically during the transmission process. If each circuit system is processed separately, the workload is large and the reusability is not high. Therefore, it is necessary to design a well-reusable and scalable peripheral circuit mechanism to support simulation needs.

[0030] By formulating protocol specifications, the connection, disconnection, signal transmission and other processes of the peripheral circuit are consistent with the effects of the real digital circuit, so that the control signal of the simulator can be effectively transmitted inside the circuit board. Even after the circuit board and external electronic components are dynamically connected to form a new system, they can still be effectively linked within the circuit system to achieve accurate two-way transmission of signals.

[0031] Specifically, the present invention includes:

[0032] S1 hierarchical division management module, divides each level and determines the work functions of each level;

[0033] S2 connection status management module, which matches the basic properties between components and changes the connection status of components and their internal pins;

[0034] The S3 transmission management module controls the transmission of circuit direction and other signal data when the excitation is triggered in the peripheral circuit.

[0035] Step S1 specifically includes:

[0036] Based on the hierarchical division rules, S11 divides the peripheral circuit into three levels: circuit boards, components, and pins, where pins are indivisible basic units; circuit boards are responsible for managing components, determining the positions of components on the circuit boards and the internal circuit connection relationships; circuit boards can be nested; components are responsible for managing pins, each component defines its own electrical characteristics, and connects other components through pins; pins are responsible for establishing and releasing connection relationships and transmitting information;

[0037] S12 Each level of elements can determine its foundation, unique attributes and job functions through configuration files;

[0038] Specifically, the configuration file contains two types of files, namely the basic configuration file and the extended configuration file. The configuration file is used to configure the types of circuit boards / components / pins contained in the entire peripheral circuit and their basic properties, while the extended configuration file is used to configure the unique properties of all specific circuit boards / components / pins in the entire peripheral circuit.

[0039] We use Figure 1 and Figure 2(For simplicity and clarity, only part of the configuration file is intercepted) can more fully and intuitively understand its working principle. In actual work, the specific device in the peripheral circuit can determine its unique functions and properties through the extended configuration file, and then determine the basic properties according to the category to which it belongs and the corresponding basic configuration file. If the specific device needs to change its experimental settings, it only needs to change its corresponding position in the extended configuration file. This design increases flexibility while greatly improving code reusability and simplifying the complexity of the experiment.

[0040] S13 stipulates that interface components have five basic attributes: gender, type, size, organization form and connection status;

[0041] Step S2 specifically includes:

[0042] S21 components are connected through pins, and the five basic properties of interface components must be fully matched to establish a connection;

[0043] S22 Only the pins of interface components can be dynamically connected and disconnected, and have dynamic connection attributes; the connection relationship between the pins of non-interface components is fixed and does not have dynamic connection attributes;

[0044] S23 pins with dynamic connection attributes can dynamically establish or disconnect connections through the basic attribute matching algorithm (as shown in Table 1, Table 2 and Table 3). It is worth noting that only the three matching formats of Table 1, Table 2 and Table 3 are recorded as successful matches.

[0045] In the matching table, male pins refer to the protruding needle-shaped metal pins on the plug or connector, which are used to insert into the corresponding holes or slots to establish a connection, while female pins are holes or slots on the socket or connector, which are used to accommodate male pins to establish a connection; at the same time, the types of pins include dynamic and fixed-state, among which dynamic pins are pins that can change their functions or uses under certain conditions, while fixed-state pins are pins with fixed functions and their uses cannot be changed; in addition, the consistency of the specifications and organizational forms of the pins in the table means that in different electronic components or devices, the functions, arrangements and sizes of the pins are the same, and only in this way can the two pins have the possibility of matching successfully.

[0046] S24: When a pin with a dynamic connection attribute is not connected to other pins, its connection state is an unconnected state; when a pin with a dynamic connection attribute is connected to other pins, its connection state is a connected state;

[0047] S25 When the connection between interface components is established, the connection status automatically changes to connected, and it cannot be connected to other components again;

[0048] The connection status of the S26 component changes with the connection status of its internal pins;

[0049]

[0050] Table 1 Pin matching successful solution 1

[0051]

[0052] Table 2 Pin matching success solution 2

[0053]

[0054] Table 3 Pin matching successful solution 3

[0055] Step S3 specifically includes:

[0056] S31 excitation signal is the trigger source of all signal transmission (circuit state change). According to the excitation trigger signal, the transmission direction of the signal in the peripheral circuit is controlled;

[0057] S32 Different types of excitation trigger signals;

[0058] During S33 transmission, the management of transmission rules between pins when they are in different states;

[0059] S34 manages and controls the transmission of other signal data to ensure the correct operation of peripheral circuits;

[0060] The different types of excitation trigger signals described in S32 include: signals are triggered and transmitted in the form of triggered excitation, which are divided into internal triggering and external triggering. Internal triggering refers to the change of the state of the components inside the circuit causing the change of the triggered excitation, that is, the assignment of the pin inside the program; external triggering refers to the change implemented externally by humans.

[0061] S33 manages the transmission rules between pins in different states, including connected state and disconnected state.

[0062] When S331 is in connected state:

[0063] When the stimulus comes from the component to which the pin belongs, the direct assignment method is used;

[0064] When the stimulus comes from other pins connected to this pin, if the pin itself has a direction and the direction is the same as that of other pins, there is no need to change the direction;

[0065] When the excitation comes from other pins connected to this pin, if the pin itself has no direction, or its direction is opposite to that of other pins, the state of this pin changes according to the state of the excitation source pin.

[0066] When S331 is disconnected:

[0067] Disconnect from the pin through internal or external trigger;

[0068] If the pin is at a high level, its own on-off flag is set to off, and this off flag is transmitted in the opposite direction of the forward excitation;

[0069] If the pin is at a low level, its own on-off flag is set to off, changing the electrical state of the component to which the pin belongs.

[0070] A peripheral circuit state management method and system for digital simulation, providing digital circuit simulation capabilities: simulating the digital communication capabilities of real circuits, so that control signals can correctly drive virtual components. To this end, a set of targeted standard protocols have been formulated, such as stipulating that the transmission of electrical signals is only established between pins, that electrical signals are divided into two parts, current direction and data information, and transmitted one by one, and that signal transmission can only be promoted when the circuit is stimulated, etc.

[0071] like Figure 6 As shown in the figure, the pin connection process includes:

[0072] 1) Establish connection relationships at the combined connection points respectively;

[0073] 2) adjusting the current direction of the connecting wire pin 2 according to the current direction of the connecting wire pin 1;

[0074] 3) The excitation circuit signal data is conducted with reference to the direction of the current.

[0075] like Figure 7 As shown, the pin disconnection process includes:

[0076] 1) Remove the excitation signal of connection line 2;

[0077] 2) Adjust the current direction of connecting line 2 to non-directional;

[0078] 3) Release the connection relationship at the combined connection points respectively.

[0079] The above are only preferred embodiments of the present invention. It should be noted that the above preferred embodiments should not be regarded as limiting the present invention, and the protection scope of the present invention should be based on the scope defined by the claims. For ordinary technicians in this technical field, several improvements and modifications can be made without departing from the spirit and scope of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. A peripheral circuit state management method and system for digital simulation, characterized in that include: Hierarchy division management module, used to divide each level and determine the job functions of each level; The connection status management module is used to match the basic properties between components and change the connection status of components and their internal pins; A signal transmission management module is used to control the transmission of circuit direction and other signal data when the excitation is triggered in the peripheral circuit; The system is based on digital simulation technology and solves the problems of poor integration, reusability and non-universality of peripheral circuit state management methods.

2. A peripheral circuit state management method and system for digital simulation according to claim 1, wherein the hierarchical division management module is further characterized by: Based on the hierarchical division rules, the peripheral circuit is divided into three levels: circuit board, components, and pins, among which the pins are the basic units that cannot be divided; Elements at each level are connected, disconnected, and transmit signals based on pins; Each level element can determine its basic and unique attributes and job functions through the configuration file; Interface components have five basic attributes: gender, type, size, organization form and connection status.

3. A peripheral circuit state management method and system for digital simulation according to claim 2, wherein the attribute configuration file containing elements of each level is characterized by: Configuration files are divided into basic configuration files and extended configuration files; The basic configuration file is used to configure the types of circuit boards / components / pins and their basic properties contained in the entire peripheral circuit; The extended configuration file is used to configure the unique properties of all specific circuit boards / components / pins in the entire peripheral circuit; Any specific circuit board / component / pin in the extended configuration file must belong to a circuit board / component / pin type involved in the basic configuration file, and its basic properties and work functions are determined by its type.

4. A peripheral circuit state management method and system for digital simulation according to claim 1, wherein the connection state management module is further characterized by: Only the pins of interface components can be dynamically connected and disconnected, and have dynamic connection properties; the connection relationship between the pins of non-interface components is fixed and does not have dynamic connection properties; Pins with dynamic connection attributes can be dynamically connected or disconnected through the basic attribute matching algorithm; When a pin with a dynamic connection attribute is not connected to other pins, its connection state is an unconnected state; when a pin with a dynamic connection attribute is connected to other pins, its connection state is a connected state; A pin in the connected state cannot establish a connection relationship with any other pin again; The connection status of a component changes with the connection status of its internal pins.

5. A peripheral circuit state management method and system for digital simulation according to claim 1, wherein the signal transmission management module is further characterized by: The excitation signal is the trigger source for all circuit state changes and signal transmission; There are multiple excitation trigger signals in the peripheral circuit; For pins, there are two signal transmission rules when they are in the connected state and when they are disconnected; Manage and control the transmission of signal data to ensure the correct operation of peripheral circuits.

6. A peripheral circuit state management method and system for digital simulation according to claim 5, characterized in that The stimulus is the only signal source that triggers the change of circuit state, and further controls the transmission direction of the signal in the peripheral circuit according to the management rules.

7. A peripheral circuit state management method and system for digital simulation according to claim 5, characterized in that The multiple excitation trigger signals include: The signal is triggered and transmitted in the form of triggered excitation, which is divided into internal triggering and external triggering; Internal triggering refers to the change of the state of the components inside the circuit, which leads to the change of the trigger stimulus, that is, the assignment of the pin inside the program; External triggers refer to changes that are artificially implemented externally. Common operations include turning on or off power and circuits.

8. A peripheral circuit state management method and system for digital simulation according to claim 5, characterized in that The management of transmission rules when the pins are in a connected state includes: When the stimulus comes from the component to which the pin belongs, the direct assignment method is used; When the stimulus comes from other pins connected to this pin, if the pin itself has a direction and the direction is the same as that of other pins, there is no need to change the direction; When the excitation comes from other pins connected to this pin, if the pin itself has no direction, or its direction is opposite to that of other pins, the state of this pin changes according to the state of the excitation source pin.

9. A peripheral circuit state management method and system for digital simulation according to claim 5, characterized in that The management of transmission rules when the pins are disconnected includes: The circuit is disconnected from a pair of pins by internal or external triggering; If the disconnect pin is at a high level, its own on-off flag is set to off, and this off flag is transmitted in the opposite direction of the forward excitation; If the disconnect pin is at a low level, its own on-off flag is set to off, changing the electrical state of the component to which the pin belongs.

10. A peripheral circuit state management method and system for digital simulation, characterized in that Achieve unified management of peripheral circuit status and implement the signal transmission management method described in any one of claims 1, 2, 4 and 5.